is_templates: form_footer erste Version
[kivitendo-erp.git] / templates / webpages / projects / project_form_en.html
1 [% USE HTML %][% USE LxERP %]<body>
2
3  [%- IF message %]
4  <p>[% message %]</p>
5
6  <hr>
7  [%- END %]
8
9  <p><div class="listtop">[% title %]</div></p>
10
11  <form method="post" action="projects.pl">
12
13   <input type="hidden" name="project.id" value="[% HTML.escape(project.id) %]">
14   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
15
16   <ul id="maintab" class="shadetabs">
17    <li class="selected"><a href="#" rel="basic_data">Basic data</a></li>
18    [%- IF CUSTOM_VARIABLES.size %]
19    <li><a href="#" rel="custom_variables">Custom Variables</a></li>
20    [%- END %]
21   </ul>
22
23   <div class="tabcontentstyle">
24
25    <div id="basic_data" class="tabcontent">
26
27     <table>
28      <tr>
29       <th align="right">Number</th>
30       <td><input name="project.projectnumber" size="20" value="[% HTML.escape(project.projectnumber) %]"></td>
31      </tr>
32
33      <tr>
34       <th align="right">Description</th>
35       <td>
36        [%- SET rows = LxERP.numtextrows(project.description, 60) %]
37        [%- IF rows > 1 %]
38        <textarea name="project.description" rows="rows" cols="60" style="width: 100%" wrap="soft">[% HTML.escape(project.description) %]</textarea>
39        [%- ELSE %]
40        <input name="project.description" size="60" value="[% HTML.escape(project.description) %]">
41        [%- END %]
42       </td>
43      </tr>
44
45      [%- IF project.id %]
46      <tr>
47       <th align="right">&nbsp;</th>
48       <td>
49        <input type="radio" name="project.active" id="active_1" value="1"[% IF project.active %] checked[% END %]><label for="active_1">Active</label>
50        <input type="radio" name="project.active" id="active_0" value="0"[% IF !project.active %] checked[% END %]><label for="active_0">Inactive</label>
51       </td>
52      </tr>
53      [%- END %]
54     </table>
55
56     <br style="clear: left" />
57    </div>
58
59    [%- IF CUSTOM_VARIABLES.size %]
60    <div id="custom_variables" class="tabcontent">
61
62     <p>
63      <table>
64       [%- FOREACH var = CUSTOM_VARIABLES %]
65       <tr>
66        <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
67        <td valign="top">[% var.HTML_CODE %]</td>
68       </tr>
69       [%- END %]
70      </table>
71     </p>
72
73     <br style="clear: left" />
74    </div>
75    [%- END %]
76
77   </div>
78
79   <p>
80    <input type="submit" class="submit" name="action" value="Save">
81    [%- IF project.id %]
82    <input type="submit" class="submit" name="action" value="Save as new">
83    [%- IF project.orphaned %]
84    <input type="submit" class="submit" name="action" value="Delete">
85    [%- END %]
86    <input type="button" onclick="set_history_window([% HTML.escape(project.id) %]);" name="history" id="history" value="history">
87    [%- END %]
88   </p>
89  </form>
90
91  <script type="text/javascript">
92   <!--
93       var maintab = new ddtabcontent("maintab");
94       maintab.setpersist(true);
95       maintab.setselectedClassTarget("link"); //"link" or "linkparent"
96       maintab.init();
97     -->
98  </script>
99
100 </body>
101 </html>