Ignore:
Timestamp:
Aug 29, 2014, 2:19:11 PM (10 years ago)
Author:
mistic100
Message:

Add allow_send_admin parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/template/collection_edit.tpl

    r25678 r29317  
    130130  });
    131131
     132  jQuery('#mail_form [name=to]').on('change', function() {
     133    $('.recipient-input').toggle(jQuery(this).val() == 'email');
     134    jQuery.colorbox.resize();
     135  });
    132136
    133137  jQuery('#mail_form').css('background-color', bg_color);
     
    258262        </td>
    259263      </tr>
    260       <tr>
     264      {if $UC_CONFIG.allow_send_admin && !$UC_CONFIG.allow_mails}
     265      <tr>
     266        <td class="title">{'To'|translate}</td>
     267        <td>{'Administrator'|translate}</td>
     268      </tr>
     269      {/if}
     270      <tr {if !$UC_CONFIG.allow_send_admin || !$UC_CONFIG.allow_mails}style="display:none"{/if}>
     271        <td class="title">{'To'|translate}</td>
     272        <td>
     273          <label><input type="radio" name="to" value="admin" checked> {'Administrator'|translate}</label>
     274          <label><input type="radio" name="to" value="email"> {'Someone else'|translate}</label>
     275        </td>
     276      </tr>
     277      <tr style="display:none" class="recipient-input">
    261278        <td class="title"><label for="recipient_name">{'Recipient name'|translate}</label></td>
    262279        <td>
     
    264281        </td>
    265282      </tr>
    266       <tr>
     283      <tr style="display:none" class="recipient-input">
    267284        <td class="title"><label for="recipient_email">{'Recipient e-mail'|translate}</label></td>
    268285        <td>
Note: See TracChangeset for help on using the changeset viewer.