Revision 535ba9ba
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
templates/design40_webpages/fu/add_edit.html | ||
---|---|---|
1 | 1 |
[% USE T8 %] |
2 | 2 |
[% USE L %] |
3 | 3 |
[% USE HTML %] |
4 |
[% USE LxERP %] |
|
4 | 5 |
<h1>[% title %]</h1> |
5 | 6 |
|
6 | 7 |
<script type="text/javascript"> |
... | ... | |
20 | 21 |
<input type="hidden" name="POPUP_MODE" value="[% HTML.escape(POPUP_MODE) %]"> |
21 | 22 |
|
22 | 23 |
|
23 |
<table class="tbl-horizontal"> |
|
24 |
<tbody> |
|
25 |
<tr> |
|
26 |
<th>[% 'Follow-Up for user' | $T8 %]</th> |
|
27 |
<td> |
|
28 |
<select name="created_for_user" class="wi-wider"> |
|
29 |
[% FOREACH row = EMPLOYEES %] |
|
30 |
<option value="[% HTML.escape(row.id) %]"[% IF created_for_user== row.id %] selected[% END %]> |
|
31 |
[% IF row.name %][% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %] |
|
32 |
</option> |
|
33 |
[% END %] |
|
34 |
</select> |
|
35 |
</td> |
|
36 |
</tr> |
|
37 |
<tr> |
|
38 |
<th>[% 'Follow-Up Date' | $T8 %]</th> |
|
39 |
<td>[% L.date_tag('follow_up_date', follow_up_date) %]</td> |
|
40 |
</tr> |
|
41 |
<tr> |
|
42 |
<th>[% 'Subject' | $T8 %]</th> |
|
43 |
<td><input type="text" name="subject" value="[% HTML.escape(subject) %]" class="wi-wider"></td> |
|
44 |
</tr> |
|
45 |
<tr> |
|
46 |
<th>[% 'Body' | $T8 %]</th> |
|
47 |
<td><textarea class="wi-wider" rows="10" name="body">[% HTML.escape(body) %]</textarea> |
|
48 |
</td> |
|
49 |
</tr> |
|
50 |
</tbody> |
|
51 |
</table> |
|
24 |
[% IF done_at -%] |
|
25 |
<div class="message_ok"> |
|
26 |
[% 'Finished' | $T8 %] [% 'by' | $T8 %] [% HTML.escape(done_by_employee_name) %] |
|
27 |
[% 'at' | $T8 %] [% HTML.escape(done_at) %] |
|
28 |
</div> |
|
29 |
[% END %] |
|
52 | 30 |
|
31 |
<div.wrapper> |
|
32 |
<table class="tbl-horizontal"> |
|
33 |
<caption>[% 'Follow-Up for user' | $T8 %]</caption> |
|
34 |
<thead> |
|
35 |
<tr> |
|
36 |
<th>[% L.checkbox_tag('checkall_checkboxes', label='', id='ckeckall', checkall="[data-checkall=1]") %]</th> |
|
37 |
<th>[% LxERP.t8('All users') %]</th> |
|
38 |
</tr> |
|
39 |
</thead> |
|
40 |
<tbody> |
|
41 |
[% FOREACH employee = all_employees %] |
|
42 |
[% SET checked = 0 %] |
|
43 |
[% FOREACH cfe = created_for_employees %] |
|
44 |
[% IF cfe.id == employee.id %][% SET checked = 1 %][% LAST %][% END %] |
|
45 |
[% END %] |
|
46 |
<tr> |
|
47 |
<td>[% L.checkbox_tag('created_for_employees[]', value=employee.id, checked=checked, "data-checkall"=1, class="employee_check") %]</td> |
|
48 |
<td><label for='created_for_employees[]'>[% HTML.escape(employee.safe_name) %]</label><td> |
|
49 |
</tr> |
|
50 |
[% END %] |
|
51 |
</tbody> |
|
52 |
</table> |
|
53 |
<table class="tbl-list"> |
|
54 |
<thead> |
|
55 |
<tr> |
|
56 |
<th>[% LxERP.t8('Users that are a member in this group') %]<br />([% LxERP.t8('click on a group to add the group\'s users') %])</th> |
|
57 |
</tr> |
|
58 |
</thead> |
|
59 |
<tbody> |
|
60 |
[% FOREACH auth_group = all_auth_groups %] |
|
61 |
<tr onclick="follow_up_do_select(this)" data-ids='[% FOREACH employee = auth_group.get_employees %][% employee.id %][% IF !loop.last %],[% END%][% END%]' class="interactive cursor-pointer"> |
|
62 |
<td><b>← [% auth_group.name %]</b>: [% auth_group.description %] |
|
63 |
<br /> |
|
64 |
<ul> |
|
65 |
[% FOREACH employee = auth_group.get_employees %] |
|
66 |
<li> [% employee.safe_name %]</li> |
|
67 |
[% END %] |
|
68 |
</ul> |
|
69 |
</td> |
|
70 |
</tr> |
|
71 |
[% END %] |
|
72 |
</tbody> |
|
73 |
</table> |
|
74 |
</div> |
|
53 | 75 |
|
76 |
<div.wrapper> |
|
77 |
<table class="tbl-horizontal"> |
|
78 |
<tbody> |
|
79 |
<tr> |
|
80 |
<th>[% 'Follow-Up Date' | $T8 %]</th> |
|
81 |
<td>[% L.date_tag('follow_up_date', follow_up_date, class="wi-date") %]</td> |
|
82 |
</tr> |
|
83 |
<tr> |
|
84 |
<th>[% 'Subject' | $T8 %]</th> |
|
85 |
<td><input type="text" name="subject" value="[% HTML.escape(subject) %]" class="wi-wider"></td> |
|
86 |
</tr> |
|
87 |
<tr> |
|
88 |
<th>[% 'Body' | $T8 %]</th> |
|
89 |
<td><textarea class="wi-wider" rows="10" name="body">[% HTML.escape(body) %]</textarea></td> |
|
90 |
</tr> |
|
91 |
</tbody> |
|
92 |
</table> |
|
93 |
</div> |
|
54 | 94 |
|
55 | 95 |
[% IF POPUP_MODE %] |
56 | 96 |
<div class="buttons"> |
... | ... | |
60 | 100 |
<input type="submit" name="action_finish" value="[% 'Finish' | $T8 %]"> |
61 | 101 |
<input type="submit" name="action_delete" value="[% 'Delete' | $T8 %]"> |
62 | 102 |
[% END %] |
63 |
<input type="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]"> |
|
103 |
<input type="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]" class="neutral">
|
|
64 | 104 |
</div> |
65 | 105 |
|
66 |
[% IF FOLLOW_UPS.size %] |
|
67 |
|
|
68 |
<h2>[% 'Existing pending follow-ups for this item' | $T8 %]</h2> |
|
69 |
|
|
106 |
[%- IF FOLLOW_UPS_PENDING.size %] |
|
70 | 107 |
<table class="tbl-list"> |
108 |
<caption>[% 'Existing pending follow-ups for this item' | $T8 %]</caption> |
|
109 |
<colgroup> |
|
110 |
<col class="wi-date"> |
|
111 |
<col class="wi-normal"> |
|
112 |
<col class="wi-mediumsmall"> |
|
113 |
<col class="wi-mediumsmall"> |
|
114 |
</colgroup> |
|
71 | 115 |
<thead> |
72 | 116 |
<tr> |
73 | 117 |
<th>[% 'Follow-Up Date' | $T8 %]</th> |
... | ... | |
77 | 121 |
</tr> |
78 | 122 |
</thead> |
79 | 123 |
<tbody> |
80 |
[% FOREACH row = FOLLOW_UPS %] |
|
81 |
<tr class="listrow[% loop.count % 2 %]">
|
|
82 |
<td>[% HTML.escape(row.follow_up_date) %]</td> |
|
83 |
<td><a href="fu.pl?action=edit&id=[% HTML.escape(row.id) %][% IF POPUP_MODE %]&POPUP_MODE=1[% END %]">[% HTML.escape(row.subject) %]</a></td> |
|
84 |
<td>[% HTML.escape(row.created_by_name) %]</td> |
|
85 |
<td>[% HTML.escape(row.created_for_user_name) %]</td>
|
|
124 |
[% FOREACH row = FOLLOW_UPS_PENDING %]
|
|
125 |
<tr> |
|
126 |
<td class="top">[% HTML.escape(row.follow_up_date) %]</td>
|
|
127 |
<td class="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>
|
|
128 |
<td class="top">[% HTML.escape(row.created_by_name) %]</td>
|
|
129 |
<td class="top">[% HTML.escape(row.created_for_user_name) | html_line_break %]</td>
|
|
86 | 130 |
</tr> |
87 | 131 |
[% END %] |
88 | 132 |
</tbody> |
89 | 133 |
</table> |
90 |
|
|
91 | 134 |
[% END %] |
135 |
|
|
136 |
[%- IF FOLLOW_UPS_DONE.size %] |
|
137 |
<table class="tbl-list"> |
|
138 |
<caption>[% 'Existing finished follow-ups for this item' | $T8 %]</caption> |
|
139 |
<colgroup> |
|
140 |
<col class="wi-date"> |
|
141 |
<col class="wi-normal"> |
|
142 |
<col class="wi-mediumsmall"> |
|
143 |
<col class="wi-mediumsmall"> |
|
144 |
</colgroup> |
|
145 |
<thead> |
|
146 |
<tr> |
|
147 |
<th>[% 'Follow-Up Date' | $T8 %]</th> |
|
148 |
<th>[% 'Subject' | $T8 %]</th> |
|
149 |
<th>[% 'Created by' | $T8 %]</th> |
|
150 |
<th>[% 'Follow-up for' | $T8 %]</th> |
|
151 |
</tr> |
|
152 |
</thead> |
|
153 |
<tbody> |
|
154 |
[% FOREACH row = FOLLOW_UPS_DONE %] |
|
155 |
<tr> |
|
156 |
<td class="top">[% HTML.escape(row.follow_up_date) %]</td> |
|
157 |
<td class="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> |
|
158 |
<td class="top">[% HTML.escape(row.created_by_name) %]</td> |
|
159 |
<td class="top">[% HTML.escape(row.created_for_user_name) | html_line_break %]</td> |
|
160 |
</tr> |
|
161 |
[% END %] |
|
162 |
</tbody> |
|
163 |
</table> |
|
92 | 164 |
[% END %] |
93 | 165 |
|
166 |
[% END #IF POPUP_MODE %] |
|
167 |
|
|
94 | 168 |
[% FOREACH row = LINKS %] |
95 | 169 |
<input type="hidden" name="trans_id_[% loop.count %]" value="[% HTML.escape(row.trans_id) %]"> |
96 | 170 |
<input type="hidden" name="trans_type_[% loop.count %]" value="[% HTML.escape(row.trans_type) %]"> |
Auch abrufbar als: Unified diff
design40: Wiedervorlagen: Template aktualisiert