Configuration page - mobile compatibility improvement.

This commit is contained in:
jerome 2014-04-09 02:19:09 +02:00
parent 9ca387861a
commit 046fd62878
11 changed files with 91 additions and 34 deletions

View File

@ -179,6 +179,9 @@ $sm_lang = array(
'log_email' => 'Да се пази ли лог на изпратените имейли от системата?',
'log_sms' => 'Да се пази ли лог на изпратените SMS съобщения от системата?',
'updated' => 'Настройките са обновени успешно.',
'tab_email' => 'Имейл',
'tab_sms' => 'SMS',
'tab_log' => 'логовете',
'settings_email' => 'Имейл настройки',
'settings_sms' => 'SMS настройки',
'settings_notification' => 'Настройки на известията',

View File

@ -179,6 +179,9 @@ $sm_lang = array(
'log_email' => 'Email Log per Script senden?',
'log_sms' => 'SMS Log per Script senden?',
'updated' => 'Die Einstellungen wurden gespeichert.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
'tab_log' => 'Log',
'settings_email' => 'Email',
'settings_sms' => 'SMS Nachricht',
'settings_notification' => 'Benachrichtigung',

View File

@ -141,8 +141,8 @@ $sm_lang = array(
'config' => array(
'general' => 'General',
'language' => 'Language',
'show_update' => 'Check for new updates weekly?',
'email_status' => 'Allow sending email?',
'show_update' => 'Updates',
'email_status' => 'Allow sending email',
'email_from_email' => 'Email from address',
'email_from_name' => 'Email from name',
'email_smtp' => 'Enable SMTP',
@ -179,6 +179,9 @@ $sm_lang = array(
'log_email' => 'Log emails sent by the script?',
'log_sms' => 'Log text messages sent by the script?',
'updated' => 'The configuration has been updated.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
'tab_log' => 'Log',
'settings_email' => 'Email settings',
'settings_sms' => 'Text message settings',
'settings_notification' => 'Notification settings',

View File

@ -176,8 +176,11 @@ $sm_lang = array(
'alert_type_always' => 'Toujours',
'log_status' => 'Etat des événements<br/><div class="small">Si l\'option est activée, un événement est enregistré chaque fois qu\'une notification a lieu</div>',
'log_email' => 'Enregistrer tout les emails envoyés',
'log_sms' => 'Enregistrer tout les SMS envoyé',
'log_sms' => 'Enregistrer tout les SMS envoyés',
'updated' => 'La configuration a été mise à jour.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
'tab_log' => 'Événements',
'settings_email' => 'Configuration email',
'settings_sms' => 'Configuration SMS',
'settings_notification' => 'Configuration des notifications',

View File

@ -177,6 +177,9 @@ $sm_lang = array(
'log_email' => '이메일로 로그를 전송하시겠습니까?',
'log_sms' => 'SMS로 로그를 전송하시겠습니까?',
'updated' => '설정이 수정되었습니다.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
'tab_log' => '로그',
'settings_email' => 'Email 설정',
'settings_sms' => 'SMS 설정',
'settings_notification' => '알림 설정',

View File

@ -178,6 +178,9 @@ $sm_lang = array(
'log_email' => 'Log emails verstuurd bij het script?',
'log_sms' => 'Log sms berichten verstuurd bij het script?',
'updated' => 'De configuratie is gewijzigd.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
'tab_log' => 'Log',
'settings_email' => 'Email instellingen',
'settings_sms' => 'SMS instellingen',
'settings_notification' => 'Notificatie instellingen',

View File

@ -179,6 +179,9 @@ $sm_lang = array(
'log_email' => 'Registrar no Log os envios de email feitos pelo script?',
'log_sms' => 'Registrar no Log os envios de mensagens de texto feitos pelo script?',
'updated' => 'A configuração foi atualizada.',
'tab_email' => 'Email',
'tab_sms' => 'Texto',
'tab_log' => 'Logs',
'settings_email' => 'Configuração de email',
'settings_sms' => 'Configuração de mensagens de texto',
'settings_notification' => 'Configuração de notificações',

View File

@ -178,6 +178,9 @@ $sm_lang = array(
'log_email' => '记录脚本所发邮件?',
'log_sms' => '记录脚本所发短信SMS?',
'updated' => '设置已更新.',
'tab_email' => '邮件发送设置',
'tab_sms' => '短信发送设置',
'tab_log' => '日志设置',
'settings_email' => '邮件发送设置',
'settings_sms' => '短信发送设置',
'settings_notification' => '提醒设置',

View File

@ -180,6 +180,9 @@ class ConfigController extends AbstractController {
$this->getTemplateId(),
array(
'subtitle' => psm_get_lang('menu', 'config'),
'label_tab_email' => psm_get_lang('config', 'tab_email'),
'label_tab_sms' => psm_get_lang('config', 'tab_sms'),
'label_tab_log' => psm_get_lang('config', 'tab_log'),
'label_settings_email' => psm_get_lang('config', 'settings_email'),
'label_settings_sms' => psm_get_lang('config', 'settings_sms'),
'label_settings_notification' => psm_get_lang('config', 'settings_notification'),

View File

@ -1,12 +1,12 @@
<!--%tpl_config-->
<form class="form-horizontal well" action="index.php?mod=config&action=save" id="edit_config" method="post">
<form class="form-horizontal" action="index.php?mod=config&action=save" id="edit_config" method="post">
<ul class="nav nav-tabs">
<li class="active"><a href="#config-general" data-toggle="tab">{label_general}</a></li>
<li><a href="#config-email" data-toggle="tab">{label_settings_email}</a></li>
<li><a href="#config-sms" data-toggle="tab">{label_settings_sms}</a></li>
<li><a href="#config-logging" data-toggle="tab">{label_settings_log}</a></li>
<li><a href="#config-email" data-toggle="tab">{label_tab_email}</a></li>
<li><a href="#config-sms" data-toggle="tab">{label_tab_sms}</a></li>
<li><a href="#config-logging" data-toggle="tab">{label_tab_log}</a></li>
</ul>
<div class="tab-content">
<div class="tab-content well">
<div id="config-general" class="tab-pane active">
<fieldset>
<legend>{label_general}</legend>
@ -22,15 +22,14 @@
</div>
</div>
<div class="control-group">
<label class="control-label" for="show_update">{label_show_update}</label>
<div class="controls">
<input type="checkbox" id="show_update" name="show_update[]" {show_update_checked} />
<label class="checkbox" for="show_update"><input type="checkbox" id="show_update" name="show_update[]" {show_update_checked} /> {label_show_update}</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="auto_refresh_servers">{label_auto_refresh_servers}</label>
<div class="controls">
<input type="text" id="auto_refresh_servers" name="auto_refresh_servers" value="{auto_refresh_servers}" maxlength="10" />&nbsp;seconds
<input type="text" class="input-mini" id="auto_refresh_servers" name="auto_refresh_servers" value="{auto_refresh_servers}" maxlength="10" />&nbsp;seconds
</div>
</div>
<legend>{label_settings_notification}</legend>
@ -56,9 +55,8 @@
<fieldset>
<legend>{label_settings_email}</legend>
<div class="control-group">
<label class="control-label" for="email_status">{label_email_status}</label>
<div class="controls">
<input type="checkbox" id="email_status" name="email_status[]" {email_status_checked} />
<label class="checkbox" for="email_status"><input type="checkbox" id="email_status" name="email_status[]" {email_status_checked} /> {label_email_status}</label>
</div>
</div>
<div class="control-group">
@ -74,16 +72,15 @@
</div>
</div>
<div class="control-group">
<label class="control-label" for="email_smtp">{label_email_smtp}</label>
<div class="controls">
<input type="checkbox" id="email_smtp" name="email_smtp[]" {email_smtp_checked} />
<label class="checkbox" for="email_smtp"><input type="checkbox" id="email_smtp" name="email_smtp[]" {email_smtp_checked} />{label_email_smtp}</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="email_smtp_host">{label_email_smtp_host}</label>
<div class="controls">
<input type="text" id="email_smtp_host" name="email_smtp_host" value="{email_smtp_host}" maxlength="100" placeholder="{label_email_smtp_host}" />
<input type="text" class="input-small" id="email_smtp_port" name="email_smtp_port" value="{email_smtp_port}" maxlength="10" placeholder="{label_email_smtp_port}" />
<input type="text" class="input-mini" id="email_smtp_port" name="email_smtp_port" value="{email_smtp_port}" maxlength="10" placeholder="{label_email_smtp_port}" />
</div>
</div>
<div class="control-group">
@ -107,10 +104,9 @@
<fieldset>
<legend>{label_settings_sms}</legend>
<div class="control-group">
<label class="control-label" for="sms_status">{label_sms_status}</label>
<div class="controls">
<input type="checkbox" id="sms_status" name="sms_status[]" {sms_status_checked} />
</div>
<label class="checkbox" for="sms_status"><input type="checkbox" id="sms_status" name="sms_status[]" {sms_status_checked} /> {label_sms_status}</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="sms_gateway">{label_sms_gateway}</label>
@ -152,23 +148,14 @@
<fieldset>
<legend>{label_settings_log}</legend>
<div class="control-group">
<label class="control-label" for="log_status">{label_log_status}</label>
<div class="controls">
<input type="checkbox" id="log_status" name="log_status[]" {log_status_checked} />
</div>
</div>
<label class="checkbox"><input type="checkbox" id="log_status" name="log_status[]" {log_status_checked} /> {label_log_status}</label>
</div>
<div class="control-group">
<label class="control-label" for="log_email">{label_log_email}</label>
<div class="controls">
<input type="checkbox" id="log_email" name="log_email[]" {log_email_checked} />
</div>
</div>
<label class="checkbox"><input type="checkbox" id="log_email" name="log_email[]" {log_email_checked} /> {label_log_email}</label>
</div>
<div class="control-group">
<label class="control-label" for="log_sms">{label_log_sms}</label>
<div class="controls">
<input type="checkbox" id="log_sms" name="log_sms[]" {log_sms_checked} />
</div>
</div>
<label class="checkbox"><input type="checkbox" id="log_sms" name="log_sms[]" {log_sms_checked} /> {label_log_sms}</label>
</div>
<div class="form-actions">
<button class="btn btn-success" type="submit">{label_save}</button>
</div>

View File

@ -2,6 +2,13 @@ body {
padding-top: 40px;
padding-left: 0px;
padding-right: 0px;
-webkit-text-size-adjust: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: moz-none;
-ms-user-select: none;
user-select: none;
}
.navbar-fixed-top {
position: fixed;
@ -21,6 +28,36 @@ body {
background-color: #444;
}
.nav-tabs {
margin-left: 10px;
margin-bottom: 0;
border: 0;
}
.nav-tabs > .active > a, .nav-tabs > .active > a:hover {
background-color: whiteSmoke;
}
.nav-tabs > li > a, .nav-tabs > li > a:hover {
padding: 8px 8px;
}
legend {
margin-bottom: 0px;
}
.form-horizontal .control-label {
width: 180px;
}
.form-horizontal .controls {
margin-left: 190px;
}
.form-horizontal .form-actions {
padding-left: 190px;
}
@media (min-width: 980px) {
.hidden-desktop {
display: none !important;
@ -51,6 +88,12 @@ body {
padding-left: 10px;
padding-right: 10px;
}
.form-horizontal .controls {
margin-left: 0px;
}
.form-horizontal .form-actions {
padding-left: 10px;
}
}
body.install{