Changeset 3358


Ignore:
Timestamp:
10/14/10 15:52:18 (11 years ago)
Author:
valmir.sena
Message:

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

Location:
trunk/expressoAdmin1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/js/jscode/shared_accounts.js

    r3354 r3358  
    200200                Element('em_input_writeAcl').checked = false; 
    201201                Element('em_input_sendAcl').checked = false; 
     202                Element('em_input_saveAcl').checked = false; 
     203                Element('em_input_folderAcl').checked = false; 
    202204        Element('em_input_sendAcl').disabled = true; 
    203205        select_owners = Element('ea_select_owners'); 
     
    305307                Element('em_input_sendAcl').disabled = true; 
    306308                Element('em_input_saveAcl').disabled = true; 
     309                Element('em_input_folderAcl').disabled = true; 
    307310            } 
    308311 
     
    432435                Element('em_input_saveAcl').checked = false; 
    433436                Element('em_input_saveAcl').disabled = true; 
     437                Element('em_input_folderAcl').checked = false; 
    434438                 
    435439                if (this.ownersAcl[user] != "false" && this.ownersAcl[user].indexOf('lrs',0) >= 0) 
     
    459463                        Element('em_input_saveAcl').checked = true; 
    460464                } 
     465                if (this.ownersAcl[user] != "false" && this.ownersAcl[user].indexOf('c',0) >= 0) 
     466                { 
     467                        Element('em_input_folderAcl').checked = true; 
     468                } 
    461469                if( this.ownersAcl[user] != "false" && Element('em_input_writeAcl').checked && Element('em_input_sendAcl').checked ){ 
    462470                        Element('em_input_saveAcl').disabled = false; 
     
    492500                if (Element('em_input_sendAcl').checked) 
    493501                        acl += 'a'; 
     502                 
     503                if (Element('em_input_folderAcl').checked) 
     504                        acl += 'c'; 
    494505                                 
    495506                if (Element('em_input_sendAcl').checked && Element('em_input_writeAcl').checked){ 
     
    563574                Element('em_input_sendAcl').checked = false; 
    564575                Element('em_input_saveAcl').checked = false; 
     576                Element('em_input_folderAcl').checked = false; 
    565577        } 
    566578         
  • trunk/expressoAdmin1_2/templates/default/shared_accounts_modal.tpl

    r1991 r3358  
    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.