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