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