Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fddd9cba

Von Andreas Rudin vor etwa 3 Jahren hinzugefügt

  • ID fddd9cba9baa04f0c5c377053e1f86d34f7de97d
  • Vorgänger 340516aa
  • Nachfolger 26fb1729

Neues Design Bugfix: CVar-Konfiguration: vergessene Fussnoten ergänzt

Ausserdem diverse kleinere Layout- und Sprach-Anpassungen

Unterschiede anzeigen:

templates/webpages/custom_variable_config/form.html
11 11

  
12 12
<table class="tbl-horizontal">
13 13
  <caption>[% 'Custom Variable' | $T8 %]</caption>
14
  <colgroup><col class="wi-normal"><col class="wi-wider"></colgroup>
14
  <colgroup><col class="wi-normal"><col class="wi-wide"></colgroup>
15 15
  <tbody>
16 16
    <tr>
17 17
      <th>[% 'Module' | $T8 %]</th>
18
      <td>[% L.select_tag('module', SELF.modules, value_key='module', title_key='description', default=SELF.module, onchange="update_ic_rows();", class="wi-wider") %]</td>
18
      <td>[% L.select_tag('module', SELF.modules, value_key='module', title_key='description', default=SELF.module, onchange="update_ic_rows();", class="wi-wide") %]</td>
19 19
    </tr>
20 20
    <tr>
21 21
      <th>[% 'Variable Name' | $T8 %]<sup>(1)</sup></th>
22
      <td>[% L.input_tag("config.name", SELF.config.name, class='initial_focus', class='wi-wider') %]</td>
22
      <td>[% L.input_tag("config.name", SELF.config.name, class='initial_focus', class='wi-wide') %]</td>
23 23
    </tr>
24 24
    <tr>
25 25
      <th>[% 'Variable Description' | $T8 %]<sup>(2)</sup></th>
26
      <td>[% L.input_tag("config.description", SELF.config.description, class='wi-wider') %]</td>
26
      <td>[% L.input_tag("config.description", SELF.config.description, class='wi-wide') %]</td>
27 27
    </tr>
28 28
    <tr>
29 29
      <th>[% 'Type' | $T8 %]<sup>(3)</sup></th>
......
31 31
    </tr>
32 32
    <tr>
33 33
      <th>[% 'Default value' | $T8 %]<sup>(4)</sup></th>
34
      <td>[% L.input_tag("config.default_value", SELF.config.type == 'number' ? LxERP.format_amount(SELF.config.default_value, 2) : SELF.config.default_value, class='wi-wider') %]</td>
34
      <td>[% L.input_tag("config.default_value", SELF.config.type == 'number' ? LxERP.format_amount(SELF.config.default_value, 2) : SELF.config.default_value, class='wi-wide') %]</td>
35 35
    </tr>
36 36
    <tr>
37 37
      <th>[% 'Options' | $T8 %]<sup>(5)</sup></th>
38 38
      <td>
39
        [% L.textarea_tag("config.options", SELF.config.options, cols='5' rows='3' class='wi-wider') %]
39
        [% L.textarea_tag("config.options", SELF.config.options, cols='5' rows='3' class='wi-wide') %]
40 40
      </td>
41 41
    </tr>
42 42
    <tr>
......
104 104
  </tbody>
105 105
</table>
106 106

  
107
<div class="col" style="width:40.0em;">
108
<h3 class="caption">[% 'Annotations' | $T8 %]</h3>
107
<div class="col" style="width:51.0em;">
108
	<!--<h3 class="caption">[% 'Annotations' | $T8 %]</h3>-->
109
<h3><caption>[% 'Annotations' | $T8 %]</caption></h3>
109 110
<div class="long-description">
110 111

  
111 112
<ul class="footnotes">
......
127 128
      <li>[% 'Selection fields: The option field must contain the available options for the selection. Options are separated by \'##\', for example \'Early##Normal##Late\'.' | $T8 %]</li>
128 129
    </ul>
129 130
  [% 'Other values are ignored.' | $T8 %]</li>
130
</ul>
131

  
132
<!--
133
<p><sup>(1)</sup> [% 'The variable name must only consist of letters, numbers and underscores. It must begin with a letter. Example: send_christmas_present' | $T8 %]</p>
134
<p><sup>(2)</sup> [% 'The description is shown on the form. Chose something short and descriptive.' | $T8 %]</p>
135
<p><sup>(3)</sup> [% 'For type "customer" the perl module JSON is required. Please check this on system level: $ ./scripts/installation_check.pl' | $T8 %]</p>
136
<p><sup>(4)</sup> [% 'The default value depends on the variable type:' | $T8 %]</p>
137
<ul>
138
<li>[% 'Text, text field and number variables: The default value will be used as-is.' | $T8 %]</li>
139
<li>[% 'Boolean variables: If the default value is non-empty then the checkbox will be checked by default and unchecked otherwise.' | $T8 %]</li>
140
<li>[% 'Date and timestamp variables: If the default value equals \'NOW\' then the current date/current timestamp will be used. Otherwise the default value is copied as-is.' | $T8 %]</li>
141
</ul>
142
<p><sup>(5)</sup> [% 'The available options depend on the varibale type:' | $T8 %]</p>
143
<ul>
144
<li>[% 'Text variables: \'MAXLENGTH=n\' sets the maximum entry length to \'n\'.' | $T8 %]</li>
145
<li>[% 'Text field variables: \'WIDTH=w HEIGHT=h\' sets the width and height of the text field. They default to 30 and 5 respectively.' | $T8 %]</li>
146
<li>[% 'Number variables: \'PRECISION=n\' forces numbers to be shown with exactly n decimal places.' | $T8 %]</li>
147
<li>[% 'Selection fields: The option field must contain the available options for the selection. Options are separated by \'##\', for example \'Early##Normal##Late\'.' | $T8 %]</li>
148
</ul>
149
<p>[% 'Other values are ignored.' | $T8 %]</p>
150

  
151 131
<div data-show-for="IC"[% UNLESS SELF.module == 'IC' %] style="display: none;"[% END %]>
152
  <p><sup>(6)</sup> [% 'A variable marked as \'editable\' can be changed in each quotation, order, invoice etc.' | $T8 %] [% 'Otherwise the variable is only available for printing.' | $T8 %]</p>
132
	<li><sup>(6)</sup> [% 'A variable marked as \'editable\' can be changed in each quotation, order, invoice etc.' | $T8 %] [% 'Otherwise the variable is only available for printing.' | $T8 %]</li>
153 133
</div>
154 134
<div data-show-for="IC"[% UNLESS SELF.module == 'IC' %] style="display: none;"[% END %]>
155
  <p><sup>(7)</sup> [% 'A variable marked as \'Deactivate by default\' isn\'t automatically added to all articles, and has to be explicitly added for each desired article in its master data tab. Only then can the variable be used for that article in the records.' | $T8 %]</p>
135
  <li><sup>(7)</sup> [% 'A variable marked as \'Deactivate by default\' isn\'t automatically added to all articles, and has to be explicitly added for each desired article in its master data tab. Only then can the variable be used for that article in the records.' | $T8 %]</li>
156 136
</div>
157
 -->
137
</ul>
158 138

  
159 139
</div><!-- /.long-description -->
160 140
</div><!-- /.col -->

Auch abrufbar als: Unified diff