Zwei neue Features:
[kivitendo-erp.git] / templates / webpages / fu / add_edit_de.html
1 [% USE HTML %]<body onload="on_load();">
2
3  <script type="text/javascript">
4   <!--
5       function on_load() {
6         Calendar.setup({ inputField : "follow_up_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "follow_up_date_trigger" });
7         document.Form.subject.focus();
8       }
9     -->
10  </script>
11
12  <form action="fu.pl" method="post" name="Form">
13
14   [%- IF SAVED_MESSAGE %]
15   <p>[% SAVED_MESSAGE %]</p>
16   [%- END %]
17
18   <div class="listtop">[% title %]</div>
19
20   <input type="hidden" name="id" value="[% HTML.escape(id) %]">
21   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
22   <input type="hidden" name="POPUP_MODE" value="[% HTML.escape(POPUP_MODE) %]">
23
24   <p>
25    <table>
26     <tr>
27      <td valign="top">Wiedervorlage f&uuml;r Benutzer</td>
28      <td valign="top">
29       <select name="created_for_user">
30        [%- FOREACH row = EMPLOYEES %]
31        <option value="[% HTML.escape(row.id) %]"[% IF created_for_user == row.id %] selected[% END %]>
32         [%- IF row.name %][% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
33        </option>
34        [%- END %]
35       </select>
36      </td>
37     </tr>
38
39     <tr>
40      <td valign="right">Wiedervorlagedatum</td>
41      <td>
42       <input name="follow_up_date" id="follow_up_date" value="[% HTML.escape(follow_up_date) %]" size="12">
43       <input type="button" name="follow_up_date_button" id="follow_up_date_trigger" value="?">
44     </tr>
45
46     <tr>
47      <td valign="right">Betreff</td>
48      <td><input name="subject" value="[% HTML.escape(subject) %]" size="50"></td>
49     </tr>
50
51     <tr>
52      <td valign="right" align="top">Text</td>
53      <td align="top"><textarea cols="50" rows="10" name="body">[% HTML.escape(body) %]</textarea></td>
54     </tr>
55    </table>
56   </p>
57
58   <p>
59    <input type="hidden" name="action" value="dispatcher">
60    <input type="submit" class="submit" name="action_save" value="Speichern">
61    [%- IF id %]
62    <input type="submit" class="submit" name="action_finish" value="Abschlie&szlig;en">
63    <input type="submit" class="submit" name="action_delete" value="Löschen">
64    [%- END %]
65    [%- IF POPUP_MODE %]
66    <input type="submit" class="submit" onclick="window.close()" value="Abbrechen">
67    [%- END %]
68   </p>
69
70   [%- IF POPUP_MODE %]
71   [%- IF FOLLOW_UPS.size %]
72   <hr height="3" noshade>
73
74   <div class="listtop">Noch nicht erledigte Wiedervorlagen f&uuml;r dieses Dokument</div>
75
76   <p>
77    <table>
78     <tr>
79      <th class="listheading">Wiedervorlagedatum</th>
80      <th class="listheading">Betreff</th>
81      <th class="listheading">Erstellt von</th>
82      <th class="listheading">Wiedervorlage für</th>
83     </tr>
84
85     [%- FOREACH row = FOLLOW_UPS %]
86     <tr class="listrow[% loop.count % 2 %]">
87      <td valign="top">[% HTML.escape(row.follow_up_date) %]</td>
88      <td valign="top"><a href="fu.pl?action=edit&id=[% HTML.escape(row.id) %][% IF POPUP_MODE %]&POPUP_MODE=1[% END %]">[% HTML.escape(row.subject) %]</a></td>
89      <td valign="top">[% HTML.escape(row.created_by_name) %]</td>
90      <td valign="top">[% HTML.escape(row.created_for_user_name) %]</td>
91     </tr>
92     [%- END %]
93    </table>
94   </p>
95   [%- END %]
96   [%- END %]
97
98   [%- FOREACH row = LINKS %]
99   <input type="hidden" name="trans_id_[% loop.count %]"   value="[% HTML.escape(row.trans_id) %]">
100   <input type="hidden" name="trans_type_[% loop.count %]" value="[% HTML.escape(row.trans_type) %]">
101   <input type="hidden" name="trans_info_[% loop.count %]" value="[% HTML.escape(row.trans_info) %]">
102   [%- END %]
103
104   <input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
105  </form>
106
107 </body>
108 </html>