Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7b9f6b22

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 7b9f6b22c16707f05fcf540e4edaa134de3f00c1
  • Vorgänger e402d034
  • Nachfolger d7593d24

Neues Design 2019 Standard-Code templates/webpages/admin/create_dataset.html

Unterschiede anzeigen:

templates/webpages/admin/create_dataset.html
8 8
<h1>[% HTML.escape(title) %]</h1>
9 9

  
10 10
<form method="post" action="controller.pl">
11
 <p>
12
  [% LxERP.t8('You can either create a new database or chose an existing database.') %]
13
  [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
14
 </p>
15 11

  
16
 [% IF !superuser.have_privileges %]
12
<div class="wrapper">
13

  
17 14
  <p>
18
   [% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %]
19
   [% LxERP.t8("Please provide corresponding credentials.") %]
15
    [% LxERP.t8('You can either create a new database or chose an existing database.') %]
16
    [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
20 17
  </p>
21
 [% END %]
22

  
23
 <table border="0">
24
  <tr>
25
   <th valign="top" align="right" nowrap>[% LxERP.t8('Existing Datasets') %]</th>
26
   <td valign="top">[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
27
  </tr>
28

  
29
  <tr>
30
   <th align="right" nowrap>[% LxERP.t8('Create Dataset') %]</th>
31
   <td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
32
  </tr>
33

  
18
 
34 19
  [% IF !superuser.have_privileges %]
35
   <tr>
36
    <th align="right" nowrap>[% LxERP.t8("Database Superuser") %]</th>
37
    <td>[% L.input_tag("database_superuser_user", superuser.username) %]</td>
38
   </tr>
39

  
40
   <tr>
41
    <th align="right" nowrap>[% LxERP.t8("Password") %]</th>
42
    <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
43
   </tr>
20
    <p>
21
      [% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %]
22
      [% LxERP.t8("Please provide corresponding credentials.") %]
23
    </p>
44 24
  [% END %]
45 25

  
46
  <tr>
47
   <td colspan="1"> </td>
48
   <td><hr size="1" noshade></td>
49
  </tr>
50

  
51
  <tr>
52
   <th align="right" nowrap>[% LxERP.t8('Default currency') %]</th>
53
   <td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
54
  </tr>
55

  
56
  <tr>
57
   <th align="right" nowrap>[% LxERP.t8('Precision') %]</th>
58
   <td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
59
  </tr>
60

  
61
  <tr>
62
   <th valign="top" align="right" nowrap>[% LxERP.t8('Create Chart of Accounts') %]</th>
63
   <td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
64
  </tr>
65

  
66
  <tr>
67
   <th valign="top" align="right" nowrap>[% LxERP.t8('Accounting method') %]</th>
68
   <td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
69
  </tr>
70

  
71
  <tr>
72
   <th valign="top" align="right" nowrap>[% LxERP.t8('Inventory system') %]</th>
73
   <td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
74
  </tr>
75

  
76
  <tr>
77
   <th valign="top" align="right" nowrap>[% LxERP.t8('Profit determination') %]</th>
78
   <td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
79
  </tr>
80
 </table>
81

  
82
 [% L.hidden_tag("dbhost", FORM.dbhost) %]
83
 [% L.hidden_tag("dbport", FORM.dbport) %]
84
 [% L.hidden_tag("dbuser", FORM.dbuser) %]
85
 [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
86
 [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
87
 [% L.hidden_tag("action", "Admin/do_create_dataset") %]
88
 [% L.hidden_tag("feature_balance", FORM.feature_balance) %]
89
 [% L.hidden_tag("feature_datev", FORM.feature_datev) %]
90
 [% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
91
 [% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
92
 [% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
93

  
94

  
95
 <hr size="3" noshade>
96

  
97
 <div>
98
  [% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
99
 </div>
26
 
27
  <table class="tbl-horizontal">
28
    <tbody>
29
      <tr>
30
        <th>[% LxERP.t8('Existing Datasets') %]</th>
31
        <td>[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
32
      </tr>
33
      <tr>
34
        <th>[% LxERP.t8('Create Dataset') %]</th>
35
        <td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
36
      </tr>
37
      [% IF !superuser.have_privileges %] 
38
        <tr>
39
          <th>[% LxERP.t8("Database Superuser") %]</th>
40
          <td>[% L.input_tag("database_superuser_user", superuser.username) %]</td>
41
        </tr>
42
        <tr>
43
          <th>[% LxERP.t8("Password") %]</th>
44
          <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
45
        </tr>
46
      [% END %] 
47
      <tr>
48
        <th>[% LxERP.t8('Default currency') %]</th>
49
        <td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
50
      </tr>
51
      <tr>
52
        <th>[% LxERP.t8('Precision') %]</th>
53
        <td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
54
      </tr>
55
      <tr>
56
        <th>[% LxERP.t8('Create Chart of Accounts') %]</th>
57
        <td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
58
      </tr>
59
      <tr>
60
        <th>[% LxERP.t8('Accounting method') %]</th>
61
        <td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
62
      </tr>
63
      <tr>
64
        <th>[% LxERP.t8('Inventory system') %]</th>
65
        <td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
66
      </tr>
67
      <tr>
68
        <th>[% LxERP.t8('Profit determination') %]</th>
69
        <td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
70
      </tr>
71
    </tbody>
72
  </table>
73

  
74
  [% L.hidden_tag("dbhost", FORM.dbhost) %]
75
  [% L.hidden_tag("dbport", FORM.dbport) %]
76
  [% L.hidden_tag("dbuser", FORM.dbuser) %]
77
  [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
78
  [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
79
  [% L.hidden_tag("action", "Admin/do_create_dataset") %]
80
  [% L.hidden_tag("feature_balance", FORM.feature_balance) %]
81
  [% L.hidden_tag("feature_datev", FORM.feature_datev) %]
82
  [% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
83
  [% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
84
  [% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
85

  
86
  <div class="buttons">
87
    [% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
88
  </div>
89

  
90
</div><!-- /.wrapper -->
100 91

  
101 92
</form>
102 93

  
103
<script type="text/javascript">
104
 <!--
105

  
106
function comment_selected_chart(s) {
107
  if (s == 'Austria') {
108
    alert("SKR07 Austria ist noch Stand 2002." +
109
         "\n" +
110
         "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
111
         "\n" +
112
         "fuer Kunden im Ausland." +
113
         "\n" +
114
         "Hinweis vom 20.09.2011");
94
<script type="text/javascript"><!--
95

  
96
  function comment_selected_chart(s) {
97
    if (s == 'Austria') {
98
      alert("SKR07 Austria ist noch Stand 2002." +
99
           "\n" +
100
           "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
101
           "\n" +
102
           "fuer Kunden im Ausland." +
103
           "\n" +
104
           "Hinweis vom 20.09.2011");
105
    }
106
    return true;
115 107
  }
116
  return true;
117
}
118 108

  
119
function select_country_defaults(country) {
120
  if (/^CH/.test(country)) {
121
    document.getElementById('defaultcurrency').value='CHF';
122
    document.getElementById('precision').value='0.05';
123
    document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
124
    document.getElementById('accounting_method').value='accrual';
125
    document.getElementById('inventory_system').value='periodic';
126
    document.getElementById('profit_determination').value='balance';
127
  } else {
128
    document.getElementById('defaultcurrency').value='EUR';
129
    document.getElementById('precision').value='0.01';
130
    document.getElementById('chart').value='Germany-DATEV-SKR03EU';
131
    document.getElementById('accounting_method').value='cash';
132
    document.getElementById('inventory_system').value='periodic';
133
    document.getElementById('profit_determination').value='income';
109
  function select_country_defaults(country) {
110
    if (/^CH/.test(country)) {
111
      document.getElementById('defaultcurrency').value='CHF';
112
      document.getElementById('precision').value='0.05';
113
      document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
114
      document.getElementById('accounting_method').value='accrual';
115
      document.getElementById('inventory_system').value='periodic';
116
      document.getElementById('profit_determination').value='balance';
117
    } else {
118
      document.getElementById('defaultcurrency').value='EUR';
119
      document.getElementById('precision').value='0.01';
120
      document.getElementById('chart').value='Germany-DATEV-SKR03EU';
121
      document.getElementById('accounting_method').value='cash';
122
      document.getElementById('inventory_system').value='periodic';
123
      document.getElementById('profit_determination').value='income';
124
    }
125
    return true;
134 126
  }
135
  return true;
136
}
137 127

  
138
   -->
139
</script>
128
--></script>

Auch abrufbar als: Unified diff