Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b5433029

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID b54330291f6a807ccff350e5adfd6241f9402c04
  • Vorgänger f15246b9
  • Nachfolger eb9c7b8d

Neues kivitendo Design Aenderungen in templates/webpages/admin/..

Unterschiede anzeigen:

templates/webpages/admin/adminlogin.html
[%- USE T8 %]
[% USE T8 %]
[% USE HTML %]
[% USE LxERP %][%- USE L -%]
<center>
<table class="login" border="3" cellpadding="20">
<tr>
<td class="login" align="center">
<a href="http://www.kivitendo.de" target="_top" class="no-underlined-links"><img src="image/kivitendo.png" class='kivitendo-logo' border="0"></a>
<h1>[% LxERP.t8('kivitendo v#1 administration', version) %]</h1>
[% IF error %]
<p><span class="message_error_login">[% HTML.escape(error) %]</span></p>
[% END %]
<p>
<form method="post" action="controller.pl">
[%- L.hidden_tag("action", 'Admin/login') %]
[%- L.hidden_tag("do_login", 1) %]
<table width="100%">
<tr>
<td align="center">
<table>
<tr>
<th align="right">[% 'Password' | $T8 %]</th>
<td>[%- L.input_tag("{AUTH}admin_password", '', type="password", class="login", id="admin_password", size="30", class="initial_focus") %]</td>
</tr>
</table>
<br>
[% L.submit_tag('dummy', LxERP.t8('Login')) %]
</td>
</tr>
</table>
</form>
</td>
</tr>
[% USE LxERP %]
[% USE L -%]
<div class="login" id="login">
<h1>[% LxERP.t8('kivitendo v#1 administration', version) %]</h1>
<div class="logo">
<a href="http://www.kivitendo.de"><img src="image/kivitendo.png"></a>
[% IF error %]
<div class="message_error_login">[% HTML.escape(error) %]</div>
[% END %]
</div>
<form method="post" action="controller.pl">
[% L.hidden_tag("action", 'Admin/login') %]
[% L.hidden_tag("do_login", 1) %]
<div class="separate-form">
<table class="tbl-horizontal login">
<caption>[% 'Admin Login' | $T8 %]</caption>
<colgroup><col class="wi-small"><col class="wi-normal"></colgroup>
<tbody>
<tr>
<th>[% 'Password' | $T8 %]</th>
<td>[%- L.input_tag("{AUTH}admin_password", '', type="password", class="initial_focus", id="admin_password") %]</td>
</tr>
<tr>
<th></th>
<td>[% L.submit_tag('dummy', LxERP.t8('Login')) %]</td>
</tr>
</tbody>
</table>
</div>
</form>
<p>
<a href="controller.pl?action=LoginScreen/user_login" target="_top">[%- LxERP.t8('User login') %]</a>
&nbsp;|&nbsp;
<a href="doc/kivitendo-Dokumentation.pdf" target="_top">[%- LxERP.t8('Documentation') %]</a>
<p style="text-align:center;">
<a href="controller.pl?action=LoginScreen/user_login" target="_top">[%- LxERP.t8('User login') %]</a>
&nbsp;|&nbsp;
<a href="doc/kivitendo-Dokumentation.pdf" target="_top">[%- LxERP.t8('Documentation') %]</a>
</p>
</div><!-- /.login -->
templates/webpages/admin/check_auth_database.html
[%- USE T8 %]
[%- USE HTML %][%- USE L -%][%- USE LxERP -%]
<h1>[% title %]</h1>
<form method="post" action="controller.pl">
[%- L.hidden_tag("action", 'Admin/create_auth_db') %]
[%- L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
<p>
[% 'The database for user management and authentication does not exist. You can create let kivitendo create it with the following parameters:' | $T8 %]
</p>
<table border="0">
<tr>
<td>[% 'Host' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.host) %]</td>
</tr>
<tr>
<td>[% 'Port' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.port) %]</td>
</tr>
<tr>
<td>[% 'User name' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.user) %]</td>
</tr>
<tr>
<td>[% 'Database name' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.db) %]</td>
</tr>
[% USE T8 %]
[% USE HTML %]
[% USE L %]
[% USE LxERP %]
<h1>[% title %]</h1>
<form method="post" action="controller.pl">
[% L.hidden_tag("action", 'Admin/create_auth_db') %]
[% L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
<p>[% 'The database for user management and authentication does not exist. You can create let kivitendo create it with the following parameters:' | $T8 %]</p>
<table class="tbl-horizontal">
<tr>
<th>[% 'Host' | $T8 %]:</th>
<td>[% HTML.escape(SELF.db_cfg.host) %]</td>
</tr>
<tr>
<th>[% 'Port' | $T8 %]:</th>
<td>[% HTML.escape(SELF.db_cfg.port) %]</td>
</tr>
<tr>
<th>[% 'User name' | $T8 %]:</th>
<td>[% HTML.escape(SELF.db_cfg.user) %]</td>
</tr>
<tr>
<th>[% 'Database name' | $T8 %]:</th>
<td>[% HTML.escape(SELF.db_cfg.db) %]</td>
</tr>
</table>
<p>
[% 'Please enter the name of the database that will be used as the template for the new database:' | $T8 %]
</p>
<p>[% 'Please enter the name of the database that will be used as the template for the new database:' | $T8 %]</p>
<p>[% 'Template database' | $T8 %]: [% L.input_tag('db_template', "template1") %]</p>
<p>
[% 'If the database user listed above does not have the right to create a database then enter the name and password of the superuser below:' | $T8 %]
</p>
<table border="0">
<tr>
<td>[% 'Superuser name' | $T8 %]:</td>
<td>[% L.input_tag('db_superuser', AUTH.DB_config.user, class="initial_focus") %]</td>
</tr>
<tr>
<td>[% 'Password' | $T8 %]:</td>
<td>[% L.input_tag('db_superuser_password', AUTH.DB_config.password, type='password') %]</td>
</tr>
<p>[% 'If the database user listed above does not have the right to create a database then enter the name and password of the superuser below:' | $T8 %]</p>
<table class="tbl-horizontal">
<tr>
<th>[% 'Superuser name' | $T8 %]:</th>
<td>[% L.input_tag('db_superuser', AUTH.DB_config.user, class="initial_focus") %]</td>
</tr>
<tr>
<th>[% 'Password' | $T8 %]:</th>
<td>[% L.input_tag('db_superuser_password', AUTH.DB_config.password, type='password') %]</td>
</tr>
</table>
[% L.submit_tag("dummy", LxERP.t8("Create Dataset")) %]
[% L.button_tag("history.back()", LxERP.t8("Back")) %]
</form>
</form>
templates/webpages/admin/check_auth_tables.html
[%- USE T8 %]
[%- USE HTML %][%- USE LxERP -%][%- USE L -%]
[% USE T8 %]
[% USE HTML %]
[% USE LxERP %]
[% USE L %]
<h1>[% title %]</h1>
<h1>[% title %]</h1>
<p>
[% 'The tables for user management and authentication do not exist. They will be created in the next step in the following database:' | $T8 %]
</p>
<p>[% 'The tables for user management and authentication do not exist. They will be created in the next step in the following database:' | $T8 %]</p>
<table border="0">
<table>
<tr>
<td>[% 'Host' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.host) %]</td>
<td>[% 'Host' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.host) %]</td>
</tr>
<tr>
<td>[% 'Port' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.port) %]</td>
<td>[% 'Port' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.port) %]</td>
</tr>
<tr>
<td>[% 'User name' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.user) %]</td>
<td>[% 'User name' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.user) %]</td>
</tr>
<tr>
<td>[% 'Database name' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.db) %]</td>
<td>[% 'Database name' | $T8 %]:</td>
<td>[% HTML.escape(SELF.db_cfg.db) %]</td>
</tr>
</table>
</table>
<p>
[% 'If you want to change any of these parameters then press the "Back" button, edit the file "config/kivitendo.conf" and login into the admin module again.' | $T8 %]
</p>
<form method="post" action="controller.pl">
[%- L.hidden_tag("action", 'Admin/create_auth_tables') %]
[%- L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
<p>[% 'If you want to change any of these parameters then press the "Back" button, edit the file "config/kivitendo.conf" and login into the admin module again.' | $T8 %]</p>
<form method="post" action="controller.pl">
[% L.hidden_tag("action", 'Admin/create_auth_tables') %]
[% L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
[% L.submit_tag("dummy", LxERP.t8("Create tables")) %]
[% L.button_tag("history.back()", LxERP.t8("Back")) %]
</form>
</form>
templates/webpages/admin/create_dataset.html
[%- USE HTML %][%- USE LxERP -%][%- USE T8 -%][%- USE L -%]
[% USE HTML %]
[% USE LxERP %]
[% USE T8 %]
[% USE L %]
[% INCLUDE 'common/flash.html' %]
<h1>[% HTML.escape(title) %]</h1>
<form method="post" action="controller.pl">
<p>
[% LxERP.t8('You can either create a new database or chose an existing database.') %]
[% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
</p>
[% IF !superuser.have_privileges %]
<div class="wrapper">
<p>
[% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %]
[% LxERP.t8("Please provide corresponding credentials.") %]
[% LxERP.t8('You can either create a new database or chose an existing database.') %]
[% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
</p>
[% END %]
<table border="0">
<tr>
<th valign="top" align="right" nowrap>[% LxERP.t8('Existing Datasets') %]</th>
<td valign="top">[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
</tr>
<tr>
<th align="right" nowrap>[% LxERP.t8('Create Dataset') %]</th>
<td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
</tr>
[% IF !superuser.have_privileges %]
<tr>
<th align="right" nowrap>[% LxERP.t8("Database Superuser") %]</th>
<td>[% L.input_tag("database_superuser_user", superuser.username) %]</td>
</tr>
<tr>
<th align="right" nowrap>[% LxERP.t8("Password") %]</th>
<td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
</tr>
<p>
[% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %]
[% LxERP.t8("Please provide corresponding credentials.") %]
</p>
[% END %]
<tr>
<td colspan="1"> </td>
<td><hr size="1" noshade></td>
</tr>
<tr>
<th align="right" nowrap>[% LxERP.t8('Default currency') %]</th>
<td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
</tr>
<tr>
<th align="right" nowrap>[% LxERP.t8('Precision') %]</th>
<td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
</tr>
<tr>
<th valign="top" align="right" nowrap>[% LxERP.t8('Create Chart of Accounts') %]</th>
<td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
</tr>
<tr>
<th valign="top" align="right" nowrap>[% LxERP.t8('Accounting method') %]</th>
<td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
</tr>
<tr>
<th valign="top" align="right" nowrap>[% LxERP.t8('Inventory system') %]</th>
<td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
</tr>
<tr>
<th valign="top" align="right" nowrap>[% LxERP.t8('Profit determination') %]</th>
<td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
</tr>
</table>
[% L.hidden_tag("dbhost", FORM.dbhost) %]
[% L.hidden_tag("dbport", FORM.dbport) %]
[% L.hidden_tag("dbuser", FORM.dbuser) %]
[% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
[% L.hidden_tag("dbdefault", FORM.dbdefault) %]
[% L.hidden_tag("action", "Admin/do_create_dataset") %]
[% L.hidden_tag("feature_balance", FORM.feature_balance) %]
[% L.hidden_tag("feature_datev", FORM.feature_datev) %]
[% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
[% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
[% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
<hr size="3" noshade>
<div>
[% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
</div>
<table class="tbl-horizontal">
<tbody>
<tr>
<th>[% LxERP.t8('Existing Datasets') %]</th>
<td>[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Create Dataset') %]</th>
<td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
</tr>
[% IF !superuser.have_privileges %]
<tr>
<th>[% LxERP.t8("Database Superuser") %]</th>
<td>[% L.input_tag("database_superuser_user", superuser.username) %]</td>
</tr>
<tr>
<th>[% LxERP.t8("Password") %]</th>
<td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
</tr>
[% END %]
<tr>
<th>[% LxERP.t8('Default currency') %]</th>
<td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Precision') %]</th>
<td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Create Chart of Accounts') %]</th>
<td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Accounting method') %]</th>
<td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Inventory system') %]</th>
<td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Profit determination') %]</th>
<td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
</tr>
</tbody>
</table>
[% L.hidden_tag("dbhost", FORM.dbhost) %]
[% L.hidden_tag("dbport", FORM.dbport) %]
[% L.hidden_tag("dbuser", FORM.dbuser) %]
[% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
[% L.hidden_tag("dbdefault", FORM.dbdefault) %]
[% L.hidden_tag("action", "Admin/do_create_dataset") %]
[% L.hidden_tag("feature_balance", FORM.feature_balance) %]
[% L.hidden_tag("feature_datev", FORM.feature_datev) %]
[% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
[% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
[% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
<div class="buttons">
[% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
</div>
</div><!-- /.wrapper -->
</form>
<script type="text/javascript">
<!--
function comment_selected_chart(s) {
if (s == 'Austria') {
alert("SKR07 Austria ist noch Stand 2002." +
"\n" +
"Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
"\n" +
"fuer Kunden im Ausland." +
"\n" +
"Hinweis vom 20.09.2011");
<script type="text/javascript"><!--
function comment_selected_chart(s) {
if (s == 'Austria') {
alert("SKR07 Austria ist noch Stand 2002." +
"\n" +
"Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
"\n" +
"fuer Kunden im Ausland." +
"\n" +
"Hinweis vom 20.09.2011");
}
return true;
}
return true;
}
function select_country_defaults(country) {
if (/^CH/.test(country)) {
document.getElementById('defaultcurrency').value='CHF';
document.getElementById('precision').value='0.05';
document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
document.getElementById('accounting_method').value='accrual';
document.getElementById('inventory_system').value='periodic';
document.getElementById('profit_determination').value='balance';
} else {
document.getElementById('defaultcurrency').value='EUR';
document.getElementById('precision').value='0.01';
document.getElementById('chart').value='Germany-DATEV-SKR03EU';
document.getElementById('accounting_method').value='cash';
document.getElementById('inventory_system').value='periodic';
document.getElementById('profit_determination').value='income';
function select_country_defaults(country) {
if (/^CH/.test(country)) {
document.getElementById('defaultcurrency').value='CHF';
document.getElementById('precision').value='0.05';
document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
document.getElementById('accounting_method').value='accrual';
document.getElementById('inventory_system').value='periodic';
document.getElementById('profit_determination').value='balance';
} else {
document.getElementById('defaultcurrency').value='EUR';
document.getElementById('precision').value='0.01';
document.getElementById('chart').value='Germany-DATEV-SKR03EU';
document.getElementById('accounting_method').value='cash';
document.getElementById('inventory_system').value='periodic';
document.getElementById('profit_determination').value='income';
}
return true;
}
return true;
}
-->
</script>
--></script>
templates/webpages/admin/dbadmin.html
[%- USE HTML %][%- USE LxERP -%][%- USE L -%]
[% USE HTML %]
[% USE LxERP %]
[% USE L %]
[% INCLUDE 'common/flash.html' %]
<h1>[% LxERP.t8("Database login (#1)", title) %]</h1>
<p>[% LxERP.t8('Here you only provide the credentials for logging into the database.') %] [% LxERP.t8('Nothing will be created or deleted at this stage!') %]</p>
<div class="wrapper">
<form method="post" action="controller.pl">
<table>
<tr>
<th align="right">[% LxERP.t8('Host') %]</th>
<td>[% L.input_tag('dbhost', dbhost, size=30, class="initial_focus") %]</td>
<th align="right">[% LxERP.t8('Port') %]</th>
<td>[% L.input_tag('dbport', dbport, size=6) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Database User') %]</th>
<td>[% L.input_tag("dbuser", dbuser, size=30) %]</td>
<th align="right">[% LxERP.t8('Password') %]</th>
<td>[% L.input_tag("dbpasswd", dbpasswd, type='password', size=30) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Database template') %]</th>
<td>[% L.input_tag("dbdefault", dbdefault, size=30) %]</td>
</tr>
</table>
[% L.hidden_tag("action", 'Admin/dispatch') %]
<p>
[% L.submit_tag('action_' _ next_action, LxERP.t8('Login')) %]
</p>
<p>
[% LxERP.t8('Here you only provide the credentials for logging into the database.') %]
[% LxERP.t8('Nothing will be created or deleted at this stage!') %]
</p>
<table class="tbl-horizontal">
<tbody>
<tr>
<th>[% LxERP.t8('Host') %]</th>
<td>[% L.input_tag('dbhost', dbhost, size=30, class="initial_focus wi-wide") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Port') %]</th>
<td>[% L.input_tag('dbport', dbport, class="wi-verysmall") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Database User') %]</th>
<td>[% L.input_tag("dbuser", dbuser, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Password') %]</th>
<td>[% L.input_tag("dbpasswd", dbpasswd, type='password', class="wi-wide") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Database template') %]</th>
<td>[% L.input_tag("dbdefault", dbdefault, class="wi-wide") %]</td>
</tr>
</tbody>
</table>
[% L.hidden_tag("action", 'Admin/dispatch') %]
<div class="buttons">[% L.submit_tag('action_' _ next_action, LxERP.t8('Login')) %]</div>
</div><!-- /.wrapper -->
</form>
templates/webpages/admin/delete_dataset.html
[%- USE HTML %][%- USE LxERP -%][%- USE L -%][%- USE JavaScript -%]
[% USE HTML %]
[% USE LxERP %]
[% USE L %]
[% USE JavaScript %]
[% INCLUDE 'common/flash.html' %]
<h1>[% HTML.escape(title) %]</h1>
<p>
[% LxERP.t8('You can only delete datasets that are not in use.') %]
[% LxERP.t8('If you want to delete such a dataset you have to edit the client(s) that are using the dataset in question and have them use another dataset.') %]
[% LxERP.t8('You can only delete datasets that are not in use.') %]
[% LxERP.t8('If you want to delete such a dataset you have to edit the client(s) that are using the dataset in question and have them use another dataset.') %]
</p>
[% IF SELF.all_dbsources.size %]
<form method="post" action="controller.pl">
<p>
<p>
[% LxERP.t8('Please select the dataset you want to delete:') %]
[% L.select_tag('db', SELF.all_dbsources, class="initial_focus") %]
</p>
</p>
[% L.hidden_tag("dbhost", FORM.dbhost) %]
[% L.hidden_tag("dbport", FORM.dbport) %]
[% L.hidden_tag("dbuser", FORM.dbuser) %]
[% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
[% L.hidden_tag("dbdefault", FORM.dbdefault) %]
[% L.hidden_tag("action", "Admin/do_delete_dataset") %]
[% L.hidden_tag("dbhost", FORM.dbhost) %]
[% L.hidden_tag("dbport", FORM.dbport) %]
[% L.hidden_tag("dbuser", FORM.dbuser) %]
[% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
[% L.hidden_tag("dbdefault", FORM.dbdefault) %]
[% L.hidden_tag("action", "Admin/do_delete_dataset") %]
<div>
[% L.submit_tag('dummy', LxERP.t8('Delete Dataset'), id='submit') %]
</div>
<div class="buttons">[% L.submit_tag('dummy', LxERP.t8('Delete Dataset'), id='submit') %]</div>
</form>
<script type="text/javascript">
<!--
<script type="text/javascript"><!--
var used_dbsources = {[% FOREACH client = SELF.all_clients %]
"[% JavaScript.escape(client.dbhost || 'localhost') %]:[% JavaScript.escape(client.dbport || '5432') %]:[% JavaScript.escape(client.dbname || 'localhost') %]": "[% JavaScript.escape(client.name) %]"[% UNLESS loop.last %],[% END %][% END %]
......
});
});
-->
</script>
--></script>
[% END %]
templates/webpages/admin/edit_client.html
[%- USE HTML %]
[%- USE L %][%- USE LxERP -%]
[% USE HTML %]
[% USE L %]
[% USE LxERP %]
[%- INCLUDE 'common/flash.html' %]
[% INCLUDE 'common/flash.html' %]
<h1>[% HTML.escape(title) %]</h1>
<form method="post" action="controller.pl" id="form">
[% L.hidden_tag("client.id", SELF.client.id) %]
[% L.hidden_tag("action", "") %]
<h2>[%- LxERP.t8("Settings") %]</h2>
<table>
[%- IF SELF.client.id %]
<tr>
<th align="right">[% LxERP.t8('Database ID') %]</th>
<td>[%- HTML.escape(SELF.client.id) %]</td>
</tr>
[%- END %]
<tr>
<th align="right">[% LxERP.t8('Client name') %]</th>
<td>[% L.input_tag("client.name", SELF.client.name, class="initial_focus") %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Default client') %]</th>
<td>[% L.checkbox_tag("client.is_default", label=LxERP.t8('This is the client to be selected by default on the login screen.'), checked=SELF.client.is_default) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Database name') %]</th>
<td>[% L.input_tag("client.dbname", SELF.client.dbname, class="contains_dbsettings") %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Database host and port') %]</th>
<td>
[% L.input_tag("client.dbhost", SELF.client.dbhost, class="contains_dbsettings") %]
[% L.input_tag("client.dbport", SELF.client.dbport, class="contains_dbsettings", size=6) %]
</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Database user and password') %]</th>
<td>
[% L.input_tag("client.dbuser", SELF.client.dbuser, class="contains_dbsettings") %]
[% L.input_tag("client.dbpasswd", SELF.client.dbpasswd, class="contains_dbsettings", type="password") %]
</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Run task server for this client with the following user") %]</th>
<td>
[% L.select_tag("client.task_server_user_id", SELF.all_users, with_empty=1, empty_title=LxERP.t8("Do not run the task server for this client"), title_key="login", default=SELF.client.task_server_user_id) %]
</td>
</tr>
</table>
<div>
[% L.button_tag("test_database_connectivity()", LxERP.t8("Test database connectivity")) %]
</div>
<h2>[%- LxERP.t8("Access to clients") %]</h2>
[% L.hidden_tag("client.id", SELF.client.id) %]
[% L.hidden_tag("action", "") %]
<div class="wrapper">
<table class="tbl-horizontal">
<caption>[% LxERP.t8("Settings") %]</caption>
<colgroup><col class="wi-normal"><col class="wi-normal"></colgroup>
<tbody>
[% IF SELF.client.id %]
<tr>
<th>[% LxERP.t8('Database ID') %]</th>
<td>[% HTML.escape(SELF.client.id) %]</td>
</tr>
[% END %]
<tr>
<th>[% LxERP.t8('Client name') %]</th>
<td>[% L.input_tag("client.name", SELF.client.name, class="initial_focus") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Default client') %]</th>
<td>[% L.checkbox_tag("client.is_default", label=LxERP.t8('This is the client to be selected by default on the login screen.'), checked=SELF.client.is_default) %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Database name') %]</th>
<td>[% L.input_tag("client.dbname", SELF.client.dbname, class="contains_dbsettings") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Database host and port') %]</th>
<td> [% L.input_tag("client.dbhost", SELF.client.dbhost, class="contains_dbsettings") %] [% L.input_tag("client.dbport", SELF.client.dbport, class="contains_dbsettings", size=6) %] </td>
</tr>
<tr>
<th>[% LxERP.t8('Database user and password') %]</th>
<td>[% L.input_tag("client.dbuser", SELF.client.dbuser, class="contains_dbsettings") %] [% L.input_tag("client.dbpasswd", SELF.client.dbpasswd, class="contains_dbsettings", type="password") %] </td>
</tr>
<tr>
<th>[% LxERP.t8("Run task server for this client with the following user") %]</th>
<td>[% L.select_tag("client.task_server_user_id", SELF.all_users, with_empty=1, empty_title=LxERP.t8("Do not run the task server for this client"), title_key="login", default=SELF.client.task_server_user_id) %] </td>
</tr>
</tbody>
</table>
</div><!-- /.cols -->
<div class="buttons">[% L.button_tag("test_database_connectivity()", LxERP.t8("Test database connectivity")) %] </div>
<div class="wrapper">
<div class="col">
<h3>[% LxERP.t8("Access to clients") %]</h3>
[% IF SELF.all_users.size %]
<p>
[%- LxERP.t8("The following users will have access to this client") %]:
</p>
<p> [% LxERP.t8("The following users will have access to this client") %]: </p>
<div class="clearfix">
[% L.select_tag("client.users[]", SELF.all_users, id="client_users", title_key="login", default=SELF.client.users, default_value_key='id', multiple=1) %]
[% L.multiselect2side("client_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that have access to this client")) %]
</div>
<div class="clearfix">
[% L.select_tag("client.users[]", SELF.all_users, id="client_users", title_key="login", default=SELF.client.users, default_value_key='id', multiple=1) %]
[% L.multiselect2side("client_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that have access to this client")) %]
</div>
[% ELSE %]
<p> [% LxERP.t8("No users have been created yet.") %] </p>
[% END %]
[%- ELSE %]
<p>
[% LxERP.t8("No users have been created yet.") %]
</p>
[%- END %]
</div>
<h2>[%- LxERP.t8("Group assignment") %]</h2>
<div class="col">
<h3>[% LxERP.t8("Group assignment") %]</h3>
[% IF SELF.all_groups.size %]
<p>
[%- LxERP.t8("The following groups are valid for this client") %]:
</p>
<div class="clearfix">
[% L.select_tag("client.groups[]", SELF.all_groups, id="client_groups", title_key="name", default=SELF.client.groups, default_value_key='id', multiple=1) %]
[% L.multiselect2side("client_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups valid for this client")) %]
</div>
[%- ELSE %]
<p>
[% LxERP.t8("No groups have been created yet.") %]
</p>
[%- END %]
<hr size="3" noshade>
<p>
[% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]
[% L.button_tag("submit_with_action('save_client')", LxERP.t8("Save")) %]
[% IF SELF.client.id %]
[% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
[% L.button_tag("submit_with_action('delete_client')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[%- END %]
</p>
<p> [% LxERP.t8("The following groups are valid for this client") %]: </p>
<div class="clearfix">
[% L.select_tag("client.groups[]", SELF.all_groups, id="client_groups", title_key="name", default=SELF.client.groups, default_value_key='id', multiple=1) %]
[% L.multiselect2side("client_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups valid for this client")) %]
</div>
[% ELSE %]
<p> [% LxERP.t8("No groups have been created yet.") %] </p>
[% END %]
</div>
</div><!-- /.cols -->
<div class="buttons">
[% L.link(SELF.url_for(action="show"), LxERP.t8("Back"), class="button neutral") %]
[% L.button_tag("submit_with_action('save_client')", LxERP.t8("Save")) %]
[% IF SELF.client.id %]
[% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
[% L.button_tag("submit_with_action('delete_client')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[% END %]
</div>
</form>
templates/webpages/admin/edit_group.html
[%- USE HTML %]
[%- USE L %][%- USE LxERP -%]
[% USE HTML %]
[% USE L %]
[% USE LxERP %]
[%- INCLUDE 'common/flash.html' %]
[% INCLUDE 'common/flash.html' %]
<h1>[% HTML.escape(title) %]</h1>
<form method="post" action="controller.pl" id="form">
[% L.hidden_tag("group.id", SELF.group.id) %]
[% L.hidden_tag("action", "") %]
<h2>[%- LxERP.t8("Settings") %]</h2>
<table>
<tr>
<th align="right">[% LxERP.t8('Name') %]</th>
<td>[% L.input_tag("group.name", SELF.group.name, class="initial_focus") %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Description') %]</th>
<td>[% L.input_tag("group.description", SELF.group.description) %]</td>
</tr>
</table>
<h2>[% LxERP.t8("Access rights") %]</h2>
[% SET granted_rights = SELF.group.rights_map %]
[%- FOREACH section = SELF.all_rights %]
[% SET section_number = loop.count %]
[% SET num_checked = 0 %]
[% FOREACH right = section.rights %][% SET name = right.name %][% IF granted_rights.$name %][% SET num_checked = num_checked + 1 %][% END %][% END %]
<h3>[% L.checkbox_tag('dummy' _ section_number, label=LxERP.t8('Section "#1"', section.description), checkall='.checkallgroup' _ section_number, checked=(num_checked == section.rights.size)) %]</h3>
<div class="clearfix">
<form method="post" action="controller.pl" id="form">
[% L.hidden_tag("group.id", SELF.group.id) %]
[% L.hidden_tag("action", "") %]
<div class="wrapper">
<div class="col wi-wide">
<h2>[% LxERP.t8("Settings") %]</h2>
<table class="tbl-horizontal">
<tbody>
<tr>
<th>[% LxERP.t8('Name') %]</th>
<td>[% L.input_tag("group.name", SELF.group.name, class="initial_focus") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Description') %]</th>
<td>[% L.input_tag("group.description", SELF.group.description) %]</td>
</tr>
</tbody>
</table>
<h2>[% LxERP.t8("Access rights") %]</h2>
[% SET granted_rights = SELF.group.rights_map %]
[% FOREACH section = SELF.all_rights %]
[% SET section_number = loop.count %]
[% SET num_checked = 0 %]
[% FOREACH right = section.rights %]
[% SET name = right.name %]
[% IF granted_rights.$name %][% SET num_checked = num_checked + 1 %][% END %]
[% END %]
<div class="boxes">
<h3 title="[% LxERP.t8('Select/Deselect all') %]">[% L.checkbox_tag('dummy' _ section_number, label=LxERP.t8('Section "#1"', section.description), checkall='.checkallgroup' _ section_number, checked=(num_checked == section.rights.size), title=LxERP.t8("Select/Deselect")) %]</h3>
[% FOREACH right = section.rights %]
[% SET name = right.name %]
[% L.checkbox_tag("group.rights_map." _ name, label=right.description, checked=granted_rights.$name, class="checkallgroup" _ section_number) %]
<br>
[%- END %]
<div>[% L.checkbox_tag("group.rights_map." _ name, label=right.description, checked=granted_rights.$name, class="checkallgroup" _ section_number) %]</div>
[% END %]
</div>
[%- END %]
[% END %]
<h2>[%- LxERP.t8("Group membership") %]</h2>
</div><!-- /.col -->
[% IF SELF.all_users.size %]
<p>
[%- LxERP.t8("The following users are a member of this group") %]:
</p>
<div class="col">
<h2>[% LxERP.t8("Group membership") %]</h2>
<div class="clearfix">
[% IF SELF.all_users.size %]
<div class="ms2side">
<p>[% LxERP.t8("The following users are a member of this group") %]:</p>
<!-- vormals:.clearfix -->
[% L.select_tag("group.users[]", SELF.all_users, id="group_users", title_key="login", default=SELF.group.users, default_value_key='id', multiple=1) %]
[% L.multiselect2side("group_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that are a member in this group")) %]
</div>
</div>
[% ELSE %]
<p>[% LxERP.t8("No users have been created yet.") %]</p>
[% END %]
[%- ELSE %]
<p>
[% LxERP.t8("No users have been created yet.") %]
</p>
[%- END %]
<h2>[%- LxERP.t8("Client assignment") %]</h2>
<h2>[% LxERP.t8("Client assignment") %]</h2>
[% IF SELF.all_clients.size %]
<p>
[%- LxERP.t8("This group is valid for the following clients") %]:
</p>
<div class="clearfix">
<div class="ms2side">
<p>[% LxERP.t8("This group is valid for the following clients") %]:</p>
<!-- vormals:.clearfix -->
[% L.select_tag("group.clients[]", SELF.all_clients, id="group_clients", title_key="name", default=SELF.group.clients, default_value_key='id', multiple=1) %]
[% L.multiselect2side("group_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this Group is valid for")) %]
</div>
</div>
[% ELSE %]
<p>[% LxERP.t8("No clients have been created yet.") %]</p>
[% END %]
[%- ELSE %]
<p>
[% LxERP.t8("No clients have been created yet.") %]
</p>
[%- END %]
<hr size="3" noshade>
<div class="buttons">
[% L.link(SELF.url_for(action="show"), LxERP.t8("Back"), class="button neutral") %]
<p>
[% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]
[% L.button_tag("submit_with_action('save_group')", LxERP.t8("Save")) %]
[% IF SELF.group.id %]
[% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
[% L.button_tag("submit_with_action('delete_group')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[% END %]
</div>
[% L.button_tag("submit_with_action('save_group')", LxERP.t8("Save")) %]
[% IF SELF.group.id %]
[% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
[% L.button_tag("submit_with_action('delete_group')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[%- END %]
</p>
</div><!-- /.col -->
</div><!-- /.wrapper -->
</form>
<script type="text/javascript">
templates/webpages/admin/edit_printer.html
[%- USE LxERP -%][%- USE HTML -%][%- USE L -%]
[% USE LxERP %]
[% USE HTML %]
[% USE L %]
<h1>[% HTML.escape(title) %]</h1>
<div class="wrapper">
[% INCLUDE 'common/flash.html' %]
[% IF !SELF.all_clients.size %]
<div class="error">
[% LxERP.t8("Error") %]:
[% LxERP.t8("No clients have been created yet.") %]
<div class="message message_error">
<b>[% LxERP.t8("Error") %]:</b> [% LxERP.t8("No clients have been created yet.") %]
</div>
[%- ELSE %]
<h1>[% HTML.escape(title) %]</h1>
[% ELSE %]
<form method="post">
[% L.hidden_tag("action", 'Admin/dispatch') %]
[% L.hidden_tag("printer.id", SELF.printer.id) %]
<table>
<tr>
<th align="right">[% LxERP.t8('Client') %]</th>
<td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td>
<tr>
<tr>
<th align="right">[% LxERP.t8('Printer Description') %]</th>
<td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]</td>
<tr>
<tr>
<th align="right">[% LxERP.t8('Printer Command') %]</th>
<td>[% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Template Code') %]</th>
<td>[% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]</td>
</tr>
</table>
<p>
<a href="[% SELF.url_for(action='list_printers', 'client.id'=SELF.client.id) %]">[% LxERP.t8("Back") %]</a>
[% L.submit_tag("action_save_printer", LxERP.t8("Save")) %]
[%- IF SELF.printer.id %]
[% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[%- END %]
</p>
[% L.hidden_tag("action", 'Admin/dispatch') %]
[% L.hidden_tag("printer.id", SELF.printer.id) %]
<table class="tbl-horizontal">
<tbody>
<tr>
<th>[% LxERP.t8('Client') %]</th>
<td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Printer Description') %]</th>
<td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Printer Command') %]</th>
<td>[% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Template Code') %]</th>
<td>[% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]</td>
</tr>
</tbody>
</table>
<div class="buttons">
<a href="[% SELF.url_for(action='list_printers', 'client.id'=SELF.client.id) %]" class="button neutral">[% LxERP.t8("Back") %]</a>
[% L.submit_tag("action_save_printer", LxERP.t8("Save"), class="button") %]
[% IF SELF.printer.id %]
[% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[% END %]
</div>
</form>
</div><!-- /.wrapper -->
[% END %]
templates/webpages/admin/edit_user.html
[%- USE HTML %]
[%- USE L %][%- USE LxERP -%][%- USE JavaScript -%]
[% USE HTML %]
[% USE L %]
[% USE LxERP %]
[% USE JavaScript %]
[%- INCLUDE 'common/flash.html' %]
[% INCLUDE 'common/flash.html' %]
<h1>[% HTML.escape(title) %]</h1>
<form method="post" action="controller.pl" id="form">
[% L.hidden_tag("user.id", SELF.user.id) %]
[% L.hidden_tag("action", "") %]
[%- SET props=SELF.user.config_values %]
<h2>[%- LxERP.t8("Settings") %]</h2>
<table>
<tr valign="top">
<td>
<table>
<tr>
<th align="right">[% LxERP.t8('Login Name') %]</th>
<td>[% L.input_tag("user.login", SELF.user.login, class="initial_focus") %]</td>
</tr>
[%- IF AUTH.can_change_password %]
<tr>
<th align="right">[% LxERP.t8("New Password") %]</th>
<td>[% L.input_tag("new_password", "", type="password") %]</td>
</tr>
[%- END %]
<tr>
<th align="right">[% LxERP.t8("Name") %]</th>
<td>[% L.input_tag("user.config_values.name", props.name) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('E-mail') %]</th>
<td>[% L.input_tag("user.config_values.email", props.email) %]</td>
</tr>
<tr valign="top">
<th align="right">[% LxERP.t8('Signature') %]</th>
<td>[% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=35) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Phone') %]</th>
<td>[% L.input_tag("user.config_values.tel", props.tel) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8('Fax') %]</th>
<td>[% L.input_tag("user.config_values.fax", props.fax) %]</td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<th align="right">[% LxERP.t8("Date Format") %]</th>
<td>[% L.select_tag("user.config_values.dateformat", SELF.all_dateformats, default=props.dateformat) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Number Format") %]</th>
<td>[% L.select_tag("user.config_values.numberformat", SELF.all_numberformats, default=props.numberformat) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Language") %]</th>
<td>[% L.select_tag("user.config_values.countrycode", SELF.all_countrycodes, title_key="title", default=props.countrycode) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Stylesheet") %]</th>
<td>[% L.select_tag("user.config_values.stylesheet", SELF.all_stylesheets, default=props.stylesheet) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Setup Menu") %]</th>
<td>[% L.select_tag("user.config_values.menustyle", SELF.all_menustyles, title_key="title", default=props.menustyle) %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Mandatory Departments") %]</th>
<td>
[% L.radio_button_tag('user.config_values.mandatory_departments', value='0', id='user.config_values.mandatory_departments_0', label=LxERP.t8('No'), checked=!props.mandatory_departments) %]
[% L.radio_button_tag('user.config_values.mandatory_departments', value='1', id='user.config_values.mandatory_departments_1', label=LxERP.t8('Yes'), checked= props.mandatory_departments) %]
</td>
</tr>
</table>
</td>
</tr>
</table>
[% L.hidden_tag("user.id", SELF.user.id) %]
[% L.hidden_tag("action", "") %]
[% SET props=SELF.user.config_values %]
<!-- <h2>[% #LxERP.t8("Settings") %]</h2> -->
<div class="wrapper">
<h2>[%- LxERP.t8("CTI settings") %]</h2>
<table>
<table class="tbl-horizontal">
<caption>[% LxERP.t8("User & Communication") %]</caption>
<colgroup><col class="wi-small"><col class="wi-wide"></colgroup>
<tbody>
<tr>
<th>[% LxERP.t8('Login Name') %]</th>
<td>[% L.input_tag("user.login", SELF.user.login, class="initial_focus wi-wide") %]</td>
</tr>
[% IF AUTH.can_change_password %]
<tr>
<th>[% LxERP.t8("New Password") %]</th>
<td>[% L.input_tag("new_password", "", type="password", class="wi-wide") %]</td>
</tr>
[% END %]
<tr>
<th>[% LxERP.t8("Name") %]</th>
<td>[% L.input_tag("user.config_values.name", props.name, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('E-mail') %]</th>
<td>[% L.input_tag("user.config_values.email", props.email, class="wi-wide") %]</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Phone extension") %]</th>
<td>[% L.input_tag("user.config_values.phone_extension", props.phone_extension) %]</td>
<th>[% LxERP.t8('Signature') %]</th>
<td>[% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=24, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Phone') %]</th>
<td>[% L.input_tag("user.config_values.tel", props.tel, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% LxERP.t8('Fax') %]</th>
<td>[% L.input_tag("user.config_values.fax", props.fax, class="wi-wide") %]</td>
</tr>
</tbody>
</table>
<table class="tbl-horizontal">
<caption>[% LxERP.t8("Formats & Language") %]</caption>
<colgroup><col class="wi-mediumsmall"><col class="wi-normal"></colgroup>
<tbody>
<tr>
<th align="right">[% LxERP.t8("Phone password") %]</th>
<td>[% L.input_tag("user.config_values.phone_password", props.phone_password) %]</td>
<th>[% LxERP.t8("Date Format") %]</th>
<td>[% L.select_tag("user.config_values.dateformat", SELF.all_dateformats, default=props.dateformat, class="wi-normal") %]</td>
</tr>
</table>
<tr>
<th>[% LxERP.t8("Number Format") %]</th>
<td>[% L.select_tag("user.config_values.numberformat", SELF.all_numberformats, default=props.numberformat, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% LxERP.t8("Language") %]</th>
<td>[% L.select_tag("user.config_values.countrycode", SELF.all_countrycodes, title_key="title", default=props.countrycode, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% LxERP.t8("Stylesheet") %]</th>
<td>[% L.select_tag("user.config_values.stylesheet", SELF.all_stylesheets, default=props.stylesheet, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% LxERP.t8("Setup Menu") %]</th>
<td>[% L.select_tag("user.config_values.menustyle", SELF.all_menustyles, title_key="title", default=props.menustyle, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% LxERP.t8("Mandatory Departments") %]</th>
<td>
[% L.radio_button_tag('user.config_values.mandatory_departments', value='0', id='user.config_values.mandatory_departments_0', label=LxERP.t8('No'), checked=!props.mandatory_departments) %] <br>
[% L.radio_button_tag('user.config_values.mandatory_departments', value='1', id='user.config_values.mandatory_departments_1', label=LxERP.t8('Yes'), checked= props.mandatory_departments) %] </td>
</tr>
</tbody>
</table>
<table class="tbl-horizontal">
<caption>[% LxERP.t8("CTI settings") %]</caption>
<tbody>
<tr>
<th>[% LxERP.t8("Phone extension") %]</th>
<td>[% L.input_tag("user.config_values.phone_extension", props.phone_extension, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% LxERP.t8("Phone password") %]</th>
<td>[% L.input_tag("user.config_values.phone_password", props.phone_password, class="wi-normal") %]</td>
</tr>
</tbody>
</table>
</div><!-- /.wrapper -->
<div class="wrapper">
<h2>[%- LxERP.t8("Access to clients") %]</h2>
<div class="col">
<h3>[% LxERP.t8("Access to clients") %]</h3>
[% IF SELF.all_clients.size %]
<p>
[%- LxERP.t8("This user will have access to the following clients") %]:
</p>
<p>[% LxERP.t8("This user will have access to the following clients") %]:</p>
<div class="clearfix">
[% L.select_tag("user.clients[]", SELF.all_clients, id="user_clients", title_key="name", default=SELF.user.clients, default_value_key='id', multiple=1) %]
[% L.multiselect2side("user_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this user has access to")) %]
</div>
[% ELSE %]
<p>[% LxERP.t8("No clients have been created yet.") %]</p>
[% END %]
<div class="clearfix">
[% L.select_tag("user.clients[]", SELF.all_clients, id="user_clients", title_key="name", default=SELF.user.clients, default_value_key='id', multiple=1) %]
[% L.multiselect2side("user_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this user has access to")) %]
</div>
</div>
[%- ELSE %]
<p>
[% LxERP.t8("No clients have been created yet.") %]
</p>
[%- END %]
<h2>[%- LxERP.t8("Group membership") %]</h2>
<div class="col">
<h3 class="caption">[% LxERP.t8("Group membership") %]</h3>
[% IF SELF.all_groups.size %]
<p>
[%- LxERP.t8("This user is a member in the following groups") %]:
</p>
<div class="clearfix">
[% L.select_tag("user.groups[]", SELF.all_groups, id="user_groups", title_key="name", default=SELF.user.groups, default_value_key='id', multiple=1) %]
[% L.multiselect2side("user_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups this user is a member in")) %]
</div>
<p>[% LxERP.t8("This user is a member in the following groups") %]:</p>
<div class="clearfix">
[% L.select_tag("user.groups[]", SELF.all_groups, id="user_groups", title_key="name", default=SELF.user.groups, default_value_key='id', multiple=1) %]
[% L.multiselect2side("user_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups this user is a member in")) %]
</div>
[% ELSE %]
<p>[% LxERP.t8("No groups have been created yet.") %]</p>
[% END %]
</div>
[%- ELSE %]
<p>
[% LxERP.t8("No groups have been created yet.") %]
</p>
[%- END %]
</div><!-- /.wrapper -->
<hr size="3" noshade>
<p>
[% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]
[% L.button_tag("submit_with_action('save_user')", LxERP.t8("Save")) %]
[% IF SELF.user.id %]
[% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
[% L.button_tag("submit_delete()", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[%- END %]
</p>
<div class="buttons">
[% L.link(SELF.url_for(action="show"), LxERP.t8("Back"), class="button neutral") %]
[% L.button_tag("submit_with_action('save_user')", LxERP.t8("Save")) %]
[% IF SELF.user.id %]
[% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
[% L.button_tag("submit_delete()", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[% END %]
</div>
</form>
<script type="text/javascript">
<!--
<script type="text/javascript"><!--
function submit_with_action(action) {
$("#action").val("Admin/" + action);
$("#form").submit();
}
function submit_delete() {
[% SET used_for_task_server_in_clients = SELF.is_user_used_for_task_server(SELF.user) %]
[% IF used_for_task_server_in_clients %]
alert('[% JavaScript.escape(LxERP.t8('The user cannot be deleted as it is used in the following clients: #1', used_for_task_server_in_clients)) %]');
return false;
[% ELSE %]
submit_with_action('delete_user');
[% END %]
[% SET used_for_task_server_in_clients = SELF.is_user_used_for_task_server(SELF.user) %]
[% IF used_for_task_server_in_clients %]
alert('[% JavaScript.escape(LxERP.t8('The user cannot be deleted as it is used in the following clients: #1', used_for_task_server_in_clients)) %]');
return false;
[% ELSE %]
submit_with_action('delete_user');
[% END %]
}
function save_as_new() {
$("#user_id").val("");
submit_with_action("save_user");
}
-->
</script>
--></script>
templates/webpages/admin/list_printers.html
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
[% INCLUDE 'common/flash.html' %]
[% USE HTML %]
[% USE LxERP %]
[% USE L %]
<h1>[% HTML.escape(title) %]</h1>
[% IF !SELF.all_clients.size %]
<div class="error">
[% LxERP.t8("Error") %]:
[% LxERP.t8("No clients have been created yet.") %]
</div>
[%- ELSE %]
<p>
[% LxERP.t8("Client to configure the printers for") %]:
[% L.select_tag('client.id', SELF.all_clients, id='client_id', title_key='name', default=SELF.client.id) %]
</p>
[%- IF !SELF.all_printers.size %]
<p>
[% LxERP.t8("No printers have been created yet.") %]
</p>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff