IS: Departments anzeigen.
[kivitendo-erp.git] / templates / webpages / amcvar / display_cvar_config_form_en.html
1 [% USE HTML %]<body onload="document.Form.name.focus();">
2
3  <style type="text/css">
4   .small {
5     font-size: 0.75em;
6   }
7  </style>
8
9  <div class="listtop">[% title %]</div>
10
11  <form action="amcvar.pl" name="Form" method="post">
12
13   <p>
14    <table>
15     <tr>
16      <td align="right">Module</td>
17      <td>
18       [%- INCLUDE generic/multibox.html
19             name      = 'module',
20             id_key    = 'module',
21             label_key = 'description',
22             DATA      = MODULES %]
23      </td>
24     </tr>
25
26     <tr>
27      <td align="right">Name<sup><span class="small">(1)</span></sup></td>
28      <td><input name="name" value="[% HTML.escape(name) %]"></td>
29     </tr>
30
31     <tr>
32      <td align="right">Description<sup><span class="small">(2)</span></sup></td>
33      <td><input name="description" value="[% HTML.escape(description) %]"></td>
34     </tr>
35
36     <tr>
37      <td align="right">Type</td>
38      <td>
39       <select name="type">
40        [%- FOREACH row = TYPES %]
41        <option value="[% HTML.escape(row.type) %]"[% IF row.type == type %] selected[% END %]>[% HTML.escape(row.type_tr) %]</option>
42        [%- END %]
43       </select>
44      </td>
45     </tr>
46
47     <tr>
48      <td align="right">Default value<sup><span class="small">(3)</span></sup></td>
49      <td><input name="default_value" value="[% HTML.escape(default_value) %]"></td>
50     </tr>
51
52     <tr>
53      <td align="right">Options<sup><span class="small">(4)</span></sup></td>
54      <td><input name="options" value="[% HTML.escape(options) %]"></td>
55     </tr>
56
57     <tr>
58      <td align="right">Searchable<sup><span class="small"></span></sup></td>
59      <td>
60       <input type="radio" name="searchable" id="searchable_1" value="1"[% IF searchable %] checked[% END %]>
61       <label for="searchable_1">Yes</label>
62       <input type="radio" name="searchable" id="searchable_0" value="0"[% UNLESS searchable %] checked[% END %]>
63       <label for="searchable_0">No</label>
64      </td>
65     </tr>
66
67     <tr>
68      <td align="right">Includeable in reports<sup><span class="small"></span></sup></td>
69      <td>
70       <select name="inclusion">
71        <option value="no"[% UNLESS includeable %] selected[% END %]>No</option>
72        <option value="yes"[% IF includeable && !included_by_default %] selected[% END %]>Yes</option>
73        <option value="yes_default_on"[% IF included_by_default %] selected[% END %]>Yes, included by default</option>
74       </select>
75      </td>
76     </tr>
77
78     [%- IF module == 'IC' %]
79     <tr>
80      <td align="right">Editable<sup><span class="small">(5)</span></sup></td>
81      <td>
82       <input type="radio" name="flag_editable" id="flag_editable_1" value="1"[% IF flag_editable %] checked[% END %]>
83       <label for="flag_editable_1">Yes</label>
84       <input type="radio" name="flag_editable" id="flag_editable_0" value="0"[% UNLESS flag_editable %] checked[% END %]>
85       <label for="flag_editable_0">No</label>
86      </td>
87     </tr>
88     [%- END %]
89    </table>
90   </p>
91
92   <input type="hidden" name="id" value="[% HTML.escape(id) %]">
93
94   <p>
95    <input type="submit" name="action" value="Save">
96    [%- IF id %]
97    <input type="submit" name="action" value="Delete">
98    [%- END %]
99   </p>
100
101   <hr>
102
103   <h3>Annotations</h3>
104
105   <p>
106    (1) The variable name must only consist of letters, numbers and underscores. It must begin with a letter. Example: send_christmas_present
107   </p>
108
109   <p>
110    (2) The description is shown on the form. Chose something short and descriptive.
111   </p>
112
113   <p>
114    (3) The default value depends on the variable type:
115    <br>
116    <ul>
117     <li>Text, text field and number variables: The default value will be used as-is.</li>
118     <li>Boolean variables: If the default value is non-empty then the checkbox will be checked by default and unchecked otherwise.</li>
119     <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.</li>
120    </ul>
121   </p>
122
123   <p>
124    (4) The available options depend on the varibale type:
125    <br>
126    <ul>
127     <li>Text variables: 'MAXLENGTH=n' sets the maximum entry length to 'n'.</li>
128     <li>Text field variables: 'WIDTH=w HEIGHT=h' sets the width and height of the text field. They default to 30 and 5 respectively.</li>
129     <li>Number variables: 'PRECISION=n' forces numbers to be shown with exactly n decimal places.</li>
130     <li>Selection fields: The option field must contain the available options for the selection. Options are separated by '##', for example 'Early##Normal##Late'.</li>
131    </ul>
132    <br>
133    Other values are ignored.
134   </p>
135
136   [%- IF module == 'IC' %]
137   <p>
138    (5)
139
140    A variable marked as 'editable' can be changed in each quotation, order, invoice etc.
141
142    Otherwise the variable is only available for printing.
143   </p>
144   [%- END %]
145
146  </form>
147
148 </body>
149 </html>