epic-ts
[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" id="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  [%- IF POPUP_MODE %]
55   <p>
56    <input type="hidden" name="action" value="dispatcher">
57    <input type="submit" class="submit" name="action_save" value="[% 'Save' | $T8 %]">
58    [%- IF id %]
59    <input type="submit" class="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
60    <input type="submit" class="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
61    [%- END %]
62    <input type="submit" class="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]">
63   </p>
64
65   [%- IF FOLLOW_UPS.size %]
66   <hr height="3" noshade>
67
68   <h2>[% 'Existing pending follow-ups for this item' | $T8 %]</h2>
69
70   <p>
71    <table>
72     <tr>
73      <th class="listheading">[% 'Follow-Up Date' | $T8 %]</th>
74      <th class="listheading">[% 'Subject' | $T8 %]</th>
75      <th class="listheading">[% 'Created by' | $T8 %]</th>
76      <th class="listheading">[% 'Follow-up for' | $T8 %]</th>
77     </tr>
78
79     [%- FOREACH row = FOLLOW_UPS %]
80     <tr class="listrow[% loop.count % 2 %]">
81      <td valign="top">[% HTML.escape(row.follow_up_date) %]</td>
82      <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>
83      <td valign="top">[% HTML.escape(row.created_by_name) %]</td>
84      <td valign="top">[% HTML.escape(row.created_for_user_name) %]</td>
85     </tr>
86     [%- END %]
87    </table>
88   </p>
89   [%- END %]
90   [%- END %]
91
92   [%- FOREACH row = LINKS %]
93   <input type="hidden" name="trans_id_[% loop.count %]"   value="[% HTML.escape(row.trans_id) %]">
94   <input type="hidden" name="trans_type_[% loop.count %]" value="[% HTML.escape(row.trans_type) %]">
95   <input type="hidden" name="trans_info_[% loop.count %]" value="[% HTML.escape(row.trans_info) %]">
96   [%- END %]
97
98   <input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
99  </form>