| | |
| | | <tmpl_if name="is_admin"> |
| | | <div class="pnl_toolsarea"> |
| | | <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> |
| | | <div class="buttons"> |
| | | <button class="positive iconstxt icoAdd" type="button" value="{tmpl_var name='add_additional_template_txt'}" onClick="addAdditionalTemplate();"><span>{tmpl_var name='add_additional_template_txt'}</span></button> |
| | | <button class="negative iconstxt icoDelete" type="button" value="{tmpl_var name='delete_additional_template_txt'}" onClick="delAdditionalTemplate();"><span>{tmpl_var name='delete_additional_template_txt'}</span></button> |
| | | <div class="buttons topbuttons"> |
| | | <button class="positive iconstxt icoAdd" type="button" value="{tmpl_var name='add_additional_template_txt'}" onclick="addAdditionalTemplate();"><span>{tmpl_var name='add_additional_template_txt'}</span></button> |
| | | <button class="negative iconstxt icoDelete" type="button" value="{tmpl_var name='delete_additional_template_txt'}" onclick="delAdditionalTemplate();"><span>{tmpl_var name='delete_additional_template_txt'}</span></button> |
| | | </div> |
| | | </fieldset> |
| | | </div> |
| | |
| | | <select name="tpl_add_select" id="tpl_add_select" class="selectInput"> |
| | | {tmpl_var name='tpl_add_select'} |
| | | </select> |
| | | <div id="template_additional_list"><br /><br />{tmpl_var name='template_additional_list'}</div> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <p class="label">{tmpl_var name='active_template_additional_txt'}</p> |
| | | <div id="template_additional_list" class="multiField"> |
| | | <ul> |
| | | {tmpl_var name='template_additional_list'} |
| | | </ul> |
| | | </div> |
| | | <input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}"> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="subsectiontoggle"><span></span>{tmpl_var name='aps_limits_txt'}<em></em></div> |
| | | <div style="display:none;"> |
| | | <div class="ctrlHolder"> |
| | | <label for="limit_aps">{tmpl_var name='limit_aps_txt'}</label> |
| | | <input name="limit_aps" id="limit_aps" value="{tmpl_var name='limit_aps'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> |
| | | </div> |
| | | </div> |
| | | </fieldset> |
| | | |
| | | <input type="hidden" name="id" value="{tmpl_var name='id'}"> |
| | | |
| | | <div class="buttonHolder buttons"> |
| | | <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/client_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> |
| | | <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/client_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> |
| | | <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onclick="submitForm('pageForm','client/client_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> |
| | | <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onclick="loadContent('client/client_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <script type="text/javascript"> |
| | | <!-- |
| | | function custom_template_selected() { |
| | | return ($('#template_master').val() == '0' ? true : false); |
| | | } |
| | | |
| | | jQuery('div.panel_client') |
| | | .find('div.pnl_formsarea') |
| | | .find('fieldset') |
| | | .find('input,select,button') |
| | | .not('#template_master,#template_additional') |
| | | .click(function(e) { |
| | | if(custom_template_selected()) return true; |
| | | e.preventDefault(); |
| | | alert('{tmpl_var name="err_msg_master_tpl_set"}'); |
| | | }) |
| | | .focus(function() { |
| | | if(custom_template_selected()) return true; |
| | | $(this).blur(); |
| | | }); |
| | | |
| | | //--> |
| | | </script> |