tbrehm
2009-03-10 a9b8a7b6da1f6b497ba124b49c0e56f08ca37f53
Fixed master and addon templates for clients.
3 files modified
22 ■■■■ changed files
interface/web/client/lib/lang/en_client.lng 4 ●●●● patch | view | raw | blame | history
interface/web/client/templates/client_edit_limits.htm 9 ●●●●● patch | view | raw | blame | history
interface/web/js/scrigo.js.php 9 ●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_client.lng
@@ -79,8 +79,8 @@
$wb["limit_database_txt"] = 'Max. number of Databases';
$wb["limit_database_error_notint"] = 'The database limit must be a number.';
$wb["username_error_regex"] = 'The Username contains invalid chracaters.';
$wb["template_master_txt"] = 'Master';
$wb["template_additional_txt"] = 'Addon';
$wb["template_master_txt"] = 'Master template';
$wb["template_additional_txt"] = 'Addon template';
$wb["ssh_chroot_txt"] = 'SSH-Chroot Options';
$wb["web_php_options_txt"] = 'PHP Options';
?>
interface/web/client/templates/client_edit_limits.htm
@@ -3,6 +3,7 @@
<div class="panel panel_client">
<tmpl_if name="is_admin">
  <div class="pnl_toolsarea">
    <fieldset><legend>Tools</legend>
      <div class="buttons">
@@ -11,9 +12,11 @@
      </div>
    </fieldset>
  </div>
</tmpl_if>
  
  <div class="pnl_formsarea">
    <fieldset class="inlineLabels"><legend>Limits</legend>
<tmpl_if name="is_admin">
      <div class="ctrlHolder">
          <label for="template_master">{tmpl_var name='template_master_txt'}</label>
        <select name="template_master" id="template_master" class="selectInput">
@@ -25,8 +28,14 @@
        <select name="tpl_add_select" id="tpl_add_select" class="selectInput">
                    {tmpl_var name='tpl_add_select'}
                </select>
          <span id="template_additional_list">{tmpl_var name='template_additional_list'}</span>
            <input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}">
      </div>
      <div class="ctrlHolder">
        &nbsp;
      </div>
</tmpl_if>
      <div class="ctrlHolder">
          <label for="default_mailserver">{tmpl_var name='default_mailserver_txt'}</label>
        <select name="default_mailserver" id="default_mailserver" class="selectInput">
                    {tmpl_var name='default_mailserver'}
interface/web/js/scrigo.js.php
@@ -412,6 +412,7 @@
function addAdditionalTemplate(){
    var tpl_add = document.getElementById('template_additional').value;
    if(tpl_add != '') {
    var tpl_list = document.getElementById('template_additional_list').innerHTML;
    var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
    var addTplId = addTemplate[0];
@@ -423,6 +424,9 @@
    document.getElementById('template_additional').value = newVal;
    document.getElementById('template_additional_list').innerHTML = newList;
    alert('additional template ' + addTplText + ' added to customer');
    } else {
      alert('no additional template selcted');
    }
}
function delAdditionalTemplate(){
@@ -439,6 +443,9 @@
        newList = newList.replace('<br><br>', '<br>');
        document.getElementById('template_additional').value = newVal;
        document.getElementById('template_additional_list').innerHTML = newList;
  }
  alert('additional template ' + addTplText + ' deleted from customer');
  } else {
      alert('no additional template selcted');
  }
}