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