1 [%- USE HTML %][%- USE LxERP -%][%- USE T8 -%][%- USE L -%]
3 [% INCLUDE 'common/flash.html' %]
5 <h1>[% HTML.escape(title) %]</h1>
7 <form method="post" action="controller.pl">
9 [% LxERP.t8('You can either create a new database or chose an existing database.') %]
10 [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
15 <th valign="top" align="right" nowrap>[% LxERP.t8('Existing Datasets') %]</th>
16 <td valign="top">[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
20 <th align="right" nowrap>[% LxERP.t8('Create Dataset') %]</th>
21 <td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
25 <th valign="top" align="right" nowrap>[% LxERP.t8('Create Chart of Accounts') %]</th>
26 <td>[% L.select_tag('chart', SELF.all_charts, onchange='comment_selected_chart(this.value)', default=(FORM.chart || 'Germany-DATEV-SKR03EU')) %]</td>
30 <th align="right" nowrap>[% LxERP.t8('Default currency') %]</th>
31 <td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency || 'EUR') %]</td>
35 <th valign="top" align="right" nowrap>[% LxERP.t8('Accounting method') %]</th>
36 <td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method || 'cash')) %]</td>
40 <th valign="top" align="right" nowrap>[% LxERP.t8('Inventory system') %]</th>
41 <td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system || 'periodic')) %]</td>
45 <th valign="top" align="right" nowrap>[% LxERP.t8('Profit determination') %]</th>
46 <td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination || 'income')) %]</td>
50 [% L.hidden_tag("dbhost", FORM.dbhost) %]
51 [% L.hidden_tag("dbport", FORM.dbport) %]
52 [% L.hidden_tag("dbuser", FORM.dbuser) %]
53 [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
54 [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
55 [% L.hidden_tag("action", "Admin/do_create_dataset") %]
60 [% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
65 <script type="text/javascript">
68 function comment_selected_chart(s) {
70 alert("SKR07 Austria ist noch Stand 2002." +
72 "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
74 "fuer Kunden im Ausland." +
76 "Hinweis vom 20.09.2011");
77 } else if (/^Switzerland/.test(s)) {
78 document.getElementById('defaultcurrency').value='CHF';
79 document.getElementById('accounting_method').value='accrual';
80 document.getElementById('inventory_system').value='periodic';
81 document.getElementById('profit_determination').value='balance';
83 document.getElementById("defaultcurrency").value="EUR";
84 document.getElementById('accounting_method').value='cash';
85 document.getElementById('inventory_system').value='periodic';
86 document.getElementById('profit_determination').value='income';