a278356a76da98bfaa06bbd9c89005e737c82ac4
[kivitendo-erp.git] / templates / webpages / project / _basic_data.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE P %]
4 [%- USE HTML %]
5 [%- USE LxERP %]
6 <table>
7  <tr>
8   <th align="right">[% 'Number' | $T8 %]</th>
9   <td>[% L.input_tag("project.projectnumber", SELF.project.projectnumber, size=60, class="initial_focus") %]</td>
10  </tr>
11
12  <tr>
13   <th align="right">[% 'Description' | $T8 %]</th>
14   <td>
15    [%- SET rows = LxERP.numtextrows(SELF.project.description, 60) %]
16    [%- IF rows > 1 %]
17     [%- L.textarea_tag("project.description", SELF.project.description, rows=row, size=60, style="width: 100%", wrap="soft") %]
18    [%- ELSE %]
19     [%- L.input_tag("project.description", SELF.project.description, size=60) %]
20    [%- END %]
21   </td>
22  </tr>
23
24  <tr>
25   <th align="right">[% 'Project Type' | $T8 %]</th>
26   <td>[% L.select_tag('project.project_type_id', ALL_PROJECT_TYPES, default=SELF.project.project_type_id, title_key='description', style='width: 300px') %]</td>
27  </tr>
28
29  <tr>
30   <th align="right">[% 'Customer' | $T8 %]</th>
31   <td>[% L.select_tag('project.customer_id', ALL_CUSTOMERS, default=SELF.project.customer_id, title_key='name', with_empty=1, style='width: 300px') %]</td>
32  </tr>
33
34  <tr>
35   <th align="right">[% 'Valid' | $T8 %]</th>
36   <td>[% L.select_tag('project.valid', [ [ 1, LxERP.t8('Valid') ], [ 0, LxERP.t8('Invalid') ] ], default=SELF.project.valid, style='width: 300px') %]</td>
37  </tr>
38
39  [%- IF SELF.project.id %]
40  <tr>
41   <th align="right">[% 'Active' | $T8 %]</th>
42   <td>[% L.select_tag('project.active', [ [ 1, LxERP.t8('Active') ], [ 0, LxERP.t8('Inactive') ] ], default=SELF.project.active, style='width: 300px') %]</td>
43  </tr>
44  [%- END %]
45 </table>