Date-Input-Felder durch 'L.date_tag's ersetzt
[kivitendo-erp.git] / templates / webpages / fu / add_edit.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [% USE HTML %]<body onload="on_load();">
4
5  <script type="text/javascript">
6   <!--
7       function on_load() {
8         document.Form.subject.focus();
9       }
10     -->
11  </script>
12
13  <form action="fu.pl" method="post" name="Form">
14
15   [%- IF SAVED_MESSAGE %]
16   <p>[% SAVED_MESSAGE %]</p>
17   [%- END %]
18
19   <div class="listtop">[% title %]</div>
20
21   <input type="hidden" name="id" value="[% HTML.escape(id) %]">
22   <input type="hidden" name="note_id" value="[% HTML.escape(note_id) %]">
23   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
24   <input type="hidden" name="POPUP_MODE" value="[% HTML.escape(POPUP_MODE) %]">
25
26   <p>
27    <table>
28     <tr>
29      <td valign="top">[% 'Follow-Up for user' | $T8 %]</td>
30      <td valign="top">
31       <select name="created_for_user">
32        [%- FOREACH row = EMPLOYEES %]
33        <option value="[% HTML.escape(row.id) %]"[% IF created_for_user == row.id %] selected[% END %]>
34         [%- IF row.name %][% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
35        </option>
36        [%- END %]
37       </select>
38      </td>
39     </tr>
40
41     <tr>
42      <td valign="right">[% 'Follow-Up Date' | $T8 %]</td>
43      <td>
44        [% L.date_tag('follow_up_date', follow_up_date) %]
45     </tr>
46
47     <tr>
48      <td valign="right">[% 'Subject' | $T8 %]</td>
49      <td><input name="subject" value="[% HTML.escape(subject) %]" size="50"></td>
50     </tr>
51
52     <tr>
53      <td valign="right" align="top">[% 'Body' | $T8 %]</td>
54      <td align="top"><textarea cols="50" rows="10" name="body">[% HTML.escape(body) %]</textarea></td>
55     </tr>
56    </table>
57   </p>
58
59   <p>
60    <input type="hidden" name="action" value="dispatcher">
61    <input type="submit" class="submit" name="action_save" value="[% 'Save' | $T8 %]">
62    [%- IF id %]
63    <input type="submit" class="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
64    <input type="submit" class="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
65    [%- END %]
66    [%- IF POPUP_MODE %]
67    <input type="submit" class="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]">
68    [%- END %]
69   </p>
70
71   [%- IF POPUP_MODE %]
72   [%- IF FOLLOW_UPS.size %]
73   <hr height="3" noshade>
74
75   <div class="listtop">[% 'Existing pending follow-ups for this item' | $T8 %]</div>
76
77   <p>
78    <table>
79     <tr>
80      <th class="listheading">[% 'Follow-Up Date' | $T8 %]</th>
81      <th class="listheading">[% 'Subject' | $T8 %]</th>
82      <th class="listheading">[% 'Created by' | $T8 %]</th>
83      <th class="listheading">[% 'Follow-up for' | $T8 %]</th>
84     </tr>
85
86     [%- FOREACH row = FOLLOW_UPS %]
87     <tr class="listrow[% loop.count % 2 %]">
88      <td valign="top">[% HTML.escape(row.follow_up_date) %]</td>
89      <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>
90      <td valign="top">[% HTML.escape(row.created_by_name) %]</td>
91      <td valign="top">[% HTML.escape(row.created_for_user_name) %]</td>
92     </tr>
93     [%- END %]
94    </table>
95   </p>
96   [%- END %]
97   [%- END %]
98
99   [%- FOREACH row = LINKS %]
100   <input type="hidden" name="trans_id_[% loop.count %]"   value="[% HTML.escape(row.trans_id) %]">
101   <input type="hidden" name="trans_type_[% loop.count %]" value="[% HTML.escape(row.trans_type) %]">
102   <input type="hidden" name="trans_info_[% loop.count %]" value="[% HTML.escape(row.trans_info) %]">
103   [%- END %]
104
105   <input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
106  </form>
107
108 </body>
109 </html>