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