3 [%- USE HTML %][%- USE LxERP %]
11 <p><div class="listtop">[% title %] [% HTML.escape(project.projectnumber) %]</div></p>
13 <form method="post" action="projects.pl">
15 <input type="hidden" name="project.id" value="[% HTML.escape(project.id) %]">
16 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
18 <ul id="maintab" class="shadetabs">
19 <li class="selected"><a href="#" rel="basic_data">[% 'Basic Data' | $T8 %]</a></li>
20 [%- IF CUSTOM_VARIABLES.size %]
21 <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
25 <div class="tabcontentstyle">
27 <div id="basic_data" class="tabcontent">
31 <th align="right">[% 'Number' | $T8 %]</th>
32 <td><input name="project.projectnumber" size="60" value="[% HTML.escape(project.projectnumber) %]"></td>
36 <th align="right">[% 'Description' | $T8 %]</th>
38 [%- SET rows = LxERP.numtextrows(project.description, 60) %]
40 <textarea name="project.description" rows="[% rows %]" cols="60" style="width: 100%" wrap="soft">[% HTML.escape(project.description) %]</textarea>
42 <input name="project.description" size="60" value="[% HTML.escape(project.description) %]">
48 <th align="right">[% 'Type' | $T8 %]</th>
49 <td>[% L.input_tag('project.type', project.type, size=60) %]</td>
53 <th align="right">[% 'Customer' | $T8 %]</th>
54 <td>[% L.select_tag('project.customer_id', ALL_CUSTOMERS, default=project.customer_id, title_key='name', style='width: 300px') %]</td>
58 <th align="right">[% 'Valid' | $T8 %]</th>
59 <td>[% L.select_tag('project.valid', [ [ 1, LxERP.t8('Valid') ], [ 0, LxERP.t8('Invalid') ] ], default=project.valid, style='width: 300px') %]</td>
64 <th align="right">[% 'Active' | $T8 %]</th>
65 <td>[% L.select_tag('project.active', [ [ 1, LxERP.t8('Active') ], [ 0, LxERP.t8('Inactive') ] ], default=project.valid, style='width: 300px') %]</td>
70 <br style="clear: left" />
73 [%- IF CUSTOM_VARIABLES.size %]
74 <div id="custom_variables" class="tabcontent">
78 [%- FOREACH var = CUSTOM_VARIABLES %]
80 <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
81 <td valign="top">[% var.HTML_CODE %]</td>
87 <br style="clear: left" />
94 [% L.online_help_tag('add_project') %]
95 <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
97 <input type="submit" class="submit" name="action" value="[% 'Save as new' | $T8 %]">
98 [%- IF project.orphaned %]
99 <input type="submit" class="submit" name="action" value="[% 'Delete' | $T8 %]">
101 <input type="button" onclick="set_history_window([% HTML.escape(project.id) %]);" name="history" id="history" value="[% 'history' | $T8 %]">
106 <script type="text/javascript">
108 var maintab = new ddtabcontent("maintab");
109 maintab.setpersist(true);
110 maintab.setselectedClassTarget("link"); //"link" or "linkparent"