Revision 027157f9
Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt
templates/webpages/fu/edit_access_rights.html | ||
---|---|---|
1 | 1 |
[% USE T8 %] |
2 | 2 |
[% USE HTML %] |
3 |
|
|
3 | 4 |
<h1>[% title %]</h1> |
4 | 5 |
|
6 |
<div class="wrapper"> |
|
7 |
|
|
8 |
[% IF SAVED_MESSAGE %] |
|
9 |
<p class="message">[% SAVED_MESSAGE %]</p> |
|
10 |
[% END %] |
|
11 |
|
|
12 |
<p>[% 'Allow the following users access to my follow-ups:' | $T8 %]</p> |
|
13 |
|
|
14 |
<form action="fu.pl" method="post" name="Form" id="form"> |
|
15 |
|
|
16 |
<table class="tbl-list width-moderate"> |
|
17 |
<thead> |
|
18 |
<tr> |
|
19 |
<th>[% 'User' | $T8 %]</th> |
|
20 |
<th>[% 'Allow access' | $T8 %]</th> |
|
21 |
</tr> |
|
22 |
</thead> |
|
23 |
<tbody> |
|
24 |
[% FOREACH row = EMPLOYEES %] |
|
25 |
[% UNLESS row.login == login %] |
|
26 |
<tr> |
|
27 |
<td> |
|
28 |
<input type="hidden" name="employee_id_[% loop.count %]" value="[% HTML.escape(row.id) %]"> |
|
29 |
[% IF row.name %] |
|
30 |
[% HTML.escape(row.name) %] ([% HTML.escape(row.login) %]) |
|
31 |
[% ELSE %] |
|
32 |
[% HTML.escape(row.login) %] |
|
33 |
[% END %] |
|
34 |
</td> |
|
35 |
<td class="horizontal"> |
|
36 |
<input type="radio" id="access_[% HTML.escape(row.id) %]_yes" name="access_[% HTML.escape(row.id) %]" value="1"[% IF row.access %] checked[% END %]> |
|
37 |
<label for="access_[% HTML.escape(row.id) %]_yes">[% 'Yes' | $T8 %]</label> |
|
38 |
<input type="radio" id="access_[% HTML.escape(row.id) %]_no" name="access_[% HTML.escape(row.id) %]" value=""[% UNLESS row.access %] checked[% END %]> |
|
39 |
<label for="access_[% HTML.escape(row.id) %]_no">[% 'No' | $T8 %]</label> |
|
40 |
</td> |
|
41 |
</tr> |
|
42 |
[% END %] |
|
43 |
[% END %] |
|
44 |
</tbody> |
|
45 |
</table> |
|
46 |
|
|
47 |
<input type="hidden" name="rowcount" value="[% EMPLOYEES.size %]"> |
|
48 |
</form> |
|
49 |
|
|
50 |
</div> |
|
5 | 51 |
|
6 |
[%- IF SAVED_MESSAGE %] |
|
7 |
<p>[% SAVED_MESSAGE %]</p> |
|
8 |
[%- END %] |
|
9 |
|
|
10 |
<p>[% 'Allow the following users access to my follow-ups:' | $T8 %]</p> |
|
11 |
|
|
12 |
<form action="fu.pl" method="post" name="Form" id="form"> |
|
13 |
<p> |
|
14 |
<table> |
|
15 |
<tr> |
|
16 |
<td class="listheading">[% 'User' | $T8 %]</td> |
|
17 |
<td class="listheading">[% 'Allow access' | $T8 %]</td> |
|
18 |
</tr> |
|
19 |
|
|
20 |
[%- FOREACH row = EMPLOYEES %] |
|
21 |
[%- UNLESS row.login == login %] |
|
22 |
<input type="hidden" name="employee_id_[% loop.count %]" value="[% HTML.escape(row.id) %]"> |
|
23 |
|
|
24 |
<tr class="listrow[% loop.count % 2 %]"> |
|
25 |
<td>[% IF row.name %][% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]</td> |
|
26 |
<td> |
|
27 |
<input type="radio" id="access_[% HTML.escape(row.id) %]_yes" name="access_[% HTML.escape(row.id) %]" value="1"[% IF row.access %] checked[% END %]> |
|
28 |
<label for="access_[% HTML.escape(row.id) %]_yes">[% 'Yes' | $T8 %]</label> |
|
29 |
<input type="radio" id="access_[% HTML.escape(row.id) %]_no" name="access_[% HTML.escape(row.id) %]" value=""[% UNLESS row.access %] checked[% END %]> |
|
30 |
<label for="access_[% HTML.escape(row.id) %]_no">[% 'No' | $T8 %]</label> |
|
31 |
</td> |
|
32 |
</tr> |
|
33 |
[%- END %] |
|
34 |
[%- END %] |
|
35 |
</table> |
|
36 |
</p> |
|
37 |
|
|
38 |
<input type="hidden" name="rowcount" value="[% EMPLOYEES.size %]"> |
|
39 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/fu/