Templates werden nicht mehr explizit übersetzt: *_master in * umbenannt
[kivitendo-erp.git] / templates / webpages / fu / add_edit.html
1 [%- USE T8 %]
2 [% USE HTML %]<body onload="on_load();">
3
4  <script type="text/javascript">
5   <!--
6       function on_load() {
7         Calendar.setup({ inputField : "follow_up_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "follow_up_date_trigger" });
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       <input name="follow_up_date" id="follow_up_date" value="[% HTML.escape(follow_up_date) %]" size="12">
45       <input type="button" name="follow_up_date_button" id="follow_up_date_trigger" value="?">
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
109 </body>
110 </html>