Changeset 3356


Ignore:
Timestamp:
10/14/10 15:25:47 (10 years ago)
Author:
valmir.sena
Message:

Ticket #1375 - Criar ACL para permirtir gerenciar pastas na conta compartilhada

Location:
branches/2.2/expressoAdmin1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoAdmin1_2/js/jscode/shared_accounts.js

    r3353 r3356  
    196196                Element('em_input_writeAcl').checked = false; 
    197197                Element('em_input_sendAcl').checked = false; 
     198                Element('em_input_saveAcl').checked = false; 
     199                Element('em_input_folderAcl').checked = false; 
    198200        Element('em_input_sendAcl').disabled = true; 
    199201        select_owners = Element('ea_select_owners'); 
     
    296298                Element('em_input_sendAcl').disabled = true; 
    297299                Element('em_input_saveAcl').disabled = true; 
     300                Element('em_input_folderAcl').disabled = true; 
    298301            } 
    299302 
     
    415418                Element('em_input_saveAcl').checked = false; 
    416419                Element('em_input_saveAcl').disabled = true; 
     420                Element('em_input_folderAcl').checked = false; 
    417421                 
    418422                if (this.ownersAcl[user] != "false" && this.ownersAcl[user].indexOf('lrs',0) >= 0) 
     
    442446                        Element('em_input_saveAcl').checked = true; 
    443447                } 
     448                if (this.ownersAcl[user] != "false" && this.ownersAcl[user].indexOf('c',0) >= 0) 
     449                { 
     450                        Element('em_input_folderAcl').checked = true; 
     451                } 
    444452                if( this.ownersAcl[user] != "false" && Element('em_input_writeAcl').checked && Element('em_input_sendAcl').checked ){ 
    445453                        Element('em_input_saveAcl').disabled = false; 
     
    475483                if (Element('em_input_sendAcl').checked) 
    476484                        acl += 'a'; 
     485                 
     486                if (Element('em_input_folderAcl').checked) 
     487                        acl += 'c'; 
    477488                                 
    478489                if (Element('em_input_sendAcl').checked && Element('em_input_writeAcl').checked){ 
     
    541552                                select_users.options[i--] = null; 
    542553                                 
    543                 Element('em_input_readAcl').checked = false; 
     554                Element('em_input_readAcl').checked = false;             
    544555                Element('em_input_deleteAcl').checked = false; 
    545556                Element('em_input_writeAcl').checked = false; 
    546557                Element('em_input_sendAcl').checked = false; 
    547558                Element('em_input_saveAcl').checked = false; 
     559                Element('em_input_folderAcl').checked = false; 
    548560        } 
    549561         
  • branches/2.2/expressoAdmin1_2/templates/default/shared_accounts_modal.tpl

    r1991 r3356  
    3131                        <input type="text" id="mailquota" name="mailquota" autocomplete="off" value="{mailquota}" {changequote_disabled} {disabled} size=16><br> 
    3232                        <div  id='quota_used_field' name='quota_used_field' style="display:{display_quota_used}">{lang_quota_used_in_mb}: 
    33                         <input type="text" name="mailquota_used" id="mailquota_used" value="{mailquota_used}" disabled size=10><br></div> 
    34                         <div id='display_empty_inbox' name='display_empty_inbox' style="display:none"><input type='button' {disabled} {disabled_empty_inbox} value='{lang_empty_inbox}' onclick="javascript:empty_inbox(anchor.value);"><br></div> 
     33                        <input type="text" name="mailquota_used" id="mailquota_used" value="{mailquota_used}" disabled size=10></div> 
     34                        <div id='display_empty_inbox' name='display_empty_inbox' style="display:none"><input type='button' {disabled} {disabled_empty_inbox} value='{lang_empty_inbox}' onclick="javascript:empty_inbox(anchor.value);"></div> 
    3535                                                         
    3636                        {lang_is_account_active}: <input type="checkbox" id="accountStatus" name="accountStatus" checked><br> 
     
    3939                        <b>{lang_owners}:</b><br> 
    4040                        <select style="width:350px; height:170px" id="ea_select_owners" onchange="sharemailbox.getaclfromuser(this.value);" name="owners[]" multiple size="13"></select> 
    41                         <span style="position:absolute;top:250;left:410"><table><tbody><tr><td colspan="2"><b>{lang_Rights}:</b></td></tr> 
     41                        <span style="position:absolute;top:240;left:410"><table><tbody><tr><td colspan="2"><b>{lang_Rights}:</b></td></tr> 
    4242                        <tr><td>{lang_read}:</td><td><input id="em_input_readAcl" onclick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="{lang_others_users_will_can_read_your_messages}." src="./expressoAdmin1_2/templates/default/images/ajuda.jpg"></td></tr> 
    4343                        <tr><td>{lang_exclusion}:</td><td><input id="em_input_deleteAcl" onclick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="{lang_others_users_will_can_delete/move_your_messages}." src="./expressoAdmin1_2/templates/default/images/ajuda.jpg"></td></tr> 
    4444                        <tr><td>{lang_creation}:</td><td><input id="em_input_writeAcl" onclick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="{lang_others_users_will_can_create/add_your_messages}." src="./expressoAdmin1_2/templates/default/images/ajuda.jpg"></td></tr> 
    45                         <tr><td>{lang_send}:</td><td><input disabled="disabled" id="em_input_sendAcl" onclick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="{lang_others_users_will_can_send_messages_as_you}." src="./expressoAdmin1_2/templates/default/images/ajuda.jpg"></td> 
     45                        <tr><td>{lang_send}:</td><td><input disabled="disabled" id="em_input_sendAcl" onclick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="{lang_others_users_will_can_send_messages_as_you}." src="./expressoAdmin1_2/templates/default/images/ajuda.jpg"></td></tr> 
    4646                        <tr><td>{lang_save}:</td><td><input disabled="disabled" id="em_input_saveAcl" onclick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="{lang_other_users_will_save_the_sent_messages_as_you_in_this_mailbox}." src="./expressoAdmin1_2/templates/default/images/ajuda.jpg"></td></tr> 
     47                        <tr><td>{lang_folder}:</td><td><input id="em_input_folderAcl" onclick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="{lang_allow_create_or_delete_folders_on_this_mailbox}." src="./expressoAdmin1_2/templates/default/images/ajuda.jpg"></td></tr> 
    4748                        </span></tbody></table> 
    4849                </td> 
Note: See TracChangeset for help on using the changeset viewer.