Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 98310882

Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt

  • ID 983108825a6f20f68e8a89785d7201e229f663af
  • Vorgänger 5b910f54
  • Nachfolger be958956

Neues Design 2019 Standard-Code templates/webpages/fu/

Unterschiede anzeigen:

templates/webpages/fu/add_edit.html
[% USE HTML %]
<h1>[% title %]</h1>
<script type="text/javascript">
$(function(){ document.Form.subject.focus(); });
</script>
<script type="text/javascript">
$(function(){ document.Form.subject.focus(); });
</script>
<form action="fu.pl" method="post" name="Form" id="form">
<div class="wrapper">
<form action="fu.pl" method="post" name="Form" id="form">
[%- IF SAVED_MESSAGE %]
[% IF SAVED_MESSAGE %]
<p>[% SAVED_MESSAGE %]</p>
[%- END %]
[% END %]
<input type="hidden" name="id" value="[% HTML.escape(id) %]">
<input type="hidden" name="note_id" value="[% HTML.escape(note_id) %]">
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
<input type="hidden" name="POPUP_MODE" value="[% HTML.escape(POPUP_MODE) %]">
<input type="hidden" name="id" value="[% HTML.escape(id) %]">
<input type="hidden" name="note_id" value="[% HTML.escape(note_id) %]">
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
<input type="hidden" name="POPUP_MODE" value="[% HTML.escape(POPUP_MODE) %]">
<p>
<table>
<tr>
<td valign="top">[% 'Follow-Up for user' | $T8 %]</td>
<td valign="top">
<select name="created_for_user">
[%- FOREACH row = EMPLOYEES %]
<option value="[% HTML.escape(row.id) %]"[% IF created_for_user == row.id %] selected[% END %]>
[%- IF row.name %][% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
</option>
[%- END %]
<table class="tbl-horizontal">
<tbody>
<tr>
<th>[% 'Follow-Up for user' | $T8 %]</th>
<td>
<select name="created_for_user" class="wi-wider">
[% FOREACH row = EMPLOYEES %]
<option value="[% HTML.escape(row.id) %]"[% IF created_for_user== row.id %] selected[% END %]>
[% IF row.name %][% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
</option>
[% END %]
</select>
</td>
</tr>
</td>
</tr>
<tr>
<th>[% 'Follow-Up Date' | $T8 %]</th>
<td>[% L.date_tag('follow_up_date', follow_up_date) %]</td>
</tr>
<tr>
<th>[% 'Subject' | $T8 %]</th>
<td><input type="text" name="subject" value="[% HTML.escape(subject) %]" class="wi-wider"></td>
</tr>
<tr>
<th>[% 'Body' | $T8 %]</th>
<td><textarea class="wi-wider" rows="10" name="body">[% HTML.escape(body) %]</textarea>
</td>
</tr>
</tbody>
</table>
<tr>
<td valign="right">[% 'Follow-Up Date' | $T8 %]</td>
<td>
[% L.date_tag('follow_up_date', follow_up_date) %]
</tr>
<tr>
<td valign="right">[% 'Subject' | $T8 %]</td>
<td><input name="subject" value="[% HTML.escape(subject) %]" size="50"></td>
</tr>
[% IF POPUP_MODE %]
<div class="buttons">
<input type="hidden" name="action" value="dispatcher">
<input type="submit" name="action_save" value="[% 'Save' | $T8 %]">
[% IF id %]
<input type="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
<input type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
[% END %]
<input type="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]">
</div>
[% IF FOLLOW_UPS.size %]
<h2>[% 'Existing pending follow-ups for this item' | $T8 %]</h2>
<table class="tbl-list">
<thead>
<tr>
<td valign="right" align="top">[% 'Body' | $T8 %]</td>
<td align="top"><textarea cols="50" rows="10" name="body">[% HTML.escape(body) %]</textarea></td>
</tr>
</table>
</p>
[%- IF POPUP_MODE %]
<p>
<input type="hidden" name="action" value="dispatcher">
<input type="submit" class="submit" name="action_save" value="[% 'Save' | $T8 %]">
[%- IF id %]
<input type="submit" class="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
<input type="submit" class="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
[%- END %]
<input type="submit" class="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]">
</p>
[%- IF FOLLOW_UPS.size %]
<hr height="3" noshade>
<h2>[% 'Existing pending follow-ups for this item' | $T8 %]</h2>
<p>
<table>
<tr>
<th class="listheading">[% 'Follow-Up Date' | $T8 %]</th>
<th class="listheading">[% 'Subject' | $T8 %]</th>
<th class="listheading">[% 'Created by' | $T8 %]</th>
<th class="listheading">[% 'Follow-up for' | $T8 %]</th>
<th>[% 'Follow-Up Date' | $T8 %]</th>
<th>[% 'Subject' | $T8 %]</th>
<th>[% 'Created by' | $T8 %]</th>
<th>[% 'Follow-up for' | $T8 %]</th>
</tr>
[%- FOREACH row = FOLLOW_UPS %]
</thead>
<tbody>
[% FOREACH row = FOLLOW_UPS %]
<tr class="listrow[% loop.count % 2 %]">
<td valign="top">[% HTML.escape(row.follow_up_date) %]</td>
<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>
<td valign="top">[% HTML.escape(row.created_by_name) %]</td>
<td valign="top">[% HTML.escape(row.created_for_user_name) %]</td>
<td>[% HTML.escape(row.follow_up_date) %]</td>
<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>
<td>[% HTML.escape(row.created_by_name) %]</td>
<td>[% HTML.escape(row.created_for_user_name) %]</td>
</tr>
[%- END %]
</table>
</p>
[%- END %]
[%- END %]
[% END %]
</tbody>
</table>
[% END %]
[% END %]
[%- FOREACH row = LINKS %]
[% FOREACH row = LINKS %]
<input type="hidden" name="trans_id_[% loop.count %]" value="[% HTML.escape(row.trans_id) %]">
<input type="hidden" name="trans_type_[% loop.count %]" value="[% HTML.escape(row.trans_type) %]">
<input type="hidden" name="trans_info_[% loop.count %]" value="[% HTML.escape(row.trans_info) %]">
[%- END %]
[% END %]
<input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
<input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
</form>
</form>
</div><!-- /.wrapper -->
templates/webpages/fu/edit_access_rights.html
[% USE T8 %]
[% USE HTML %]
<h1>[% title %]</h1>
<div class="wrapper">
[% IF SAVED_MESSAGE %]
<p class="message">[% SAVED_MESSAGE %]</p>
[% END %]
<p>[% 'Allow the following users access to my follow-ups:' | $T8 %]</p>
<form action="fu.pl" method="post" name="Form" id="form">
<table class="tbl-list width-moderate">
<thead>
<tr>
<th>[% 'User' | $T8 %]</th>
<th>[% 'Allow access' | $T8 %]</th>
</tr>
</thead>
<tbody>
[% FOREACH row = EMPLOYEES %]
[% UNLESS row.login == login %]
<tr>
<td>
<input type="hidden" name="employee_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
[% IF row.name %]
[% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])
[% ELSE %]
[% HTML.escape(row.login) %]
[% END %]
</td>
<td class="horizontal">
<input type="radio" id="access_[% HTML.escape(row.id) %]_yes" name="access_[% HTML.escape(row.id) %]" value="1"[% IF row.access %] checked[% END %]>
<label for="access_[% HTML.escape(row.id) %]_yes">[% 'Yes' | $T8 %]</label> &nbsp;
<input type="radio" id="access_[% HTML.escape(row.id) %]_no" name="access_[% HTML.escape(row.id) %]" value=""[% UNLESS row.access %] checked[% END %]>
<label for="access_[% HTML.escape(row.id) %]_no">[% 'No' | $T8 %]</label>
</td>
</tr>
[% END %]
[% END %]
</tbody>
</table>
<input type="hidden" name="rowcount" value="[% EMPLOYEES.size %]">
</form>
</div>
[%- IF SAVED_MESSAGE %]
<p>[% SAVED_MESSAGE %]</p>
[%- END %]
<p>[% 'Allow the following users access to my follow-ups:' | $T8 %]</p>
<form action="fu.pl" method="post" name="Form" id="form">
<p>
<table>
<tr>
<td class="listheading">[% 'User' | $T8 %]</td>
<td class="listheading">[% 'Allow access' | $T8 %]</td>
</tr>
[%- FOREACH row = EMPLOYEES %]
[%- UNLESS row.login == login %]
<input type="hidden" name="employee_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
<tr class="listrow[% loop.count % 2 %]">
<td>[% IF row.name %][% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]</td>
<td>
<input type="radio" id="access_[% HTML.escape(row.id) %]_yes" name="access_[% HTML.escape(row.id) %]" value="1"[% IF row.access %] checked[% END %]>
<label for="access_[% HTML.escape(row.id) %]_yes">[% 'Yes' | $T8 %]</label>
<input type="radio" id="access_[% HTML.escape(row.id) %]_no" name="access_[% HTML.escape(row.id) %]" value=""[% UNLESS row.access %] checked[% END %]>
<label for="access_[% HTML.escape(row.id) %]_no">[% 'No' | $T8 %]</label>
</td>
</tr>
[%- END %]
[%- END %]
</table>
</p>
<input type="hidden" name="rowcount" value="[% EMPLOYEES.size %]">
</form>
templates/webpages/fu/report_bottom.html
[% USE T8 %]
[% USE HTML%]
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
[%- FOREACH item = HIDDEN %]
<input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
[%- END %]
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
[% FOREACH item = HIDDEN %]
<input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
[% END %]
</form>
templates/webpages/fu/report_for_todo_list.html
[% USE T8 %]
[% USE HTML %]
<h1>[% 'Unfinished follow-ups' | $T8 %]</h1>
<form action="fu.pl" method="post" name="TODOFollowUpsForm">
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
<input type="hidden" name="rowcount" value="[% FOLLOW_UPS.size %]">
<div class="wrapper center">
<table width="100%">
<tr>
<td class="listheading">&nbsp;</td>
<td class="listheading">[% 'Follow-Up Date' | $T8 %]</td>
<td class="listheading">[% 'Created on' | $T8 %]</td>
<td class="listheading">[% 'Subject' | $T8 %]</td>
<td class="listheading">[% 'Reference' | $T8 %]</td>
<td class="listheading">[% 'Created by' | $T8 %]</td>
</tr>
<form action="fu.pl" method="post" name="TODOFollowUpsForm">
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
<input type="hidden" name="rowcount" value="[% FOLLOW_UPS.size %]">
<table class="tbl-list width-moderate">
<caption>[% 'Unfinished follow-ups' | $T8 %]</caption>
<thead>
<tr>
<th>&nbsp;</th>
<th>[% 'Follow-Up Date' | $T8 %]</th>
<th>[% 'Created on' | $T8 %]</th>
<th>[% 'Subject' | $T8 %]</th>
<th>[% 'Reference' | $T8 %]</th>
<th>[% 'Created by' | $T8 %]</th>
</tr>
</thead>
<tbody>
[% FOREACH row = FOLLOW_UPS %]
<tr>
<td>
<input type="hidden" name="follow_up_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
<input type="checkbox" name="selected_[% loop.count %]" value="1">
</td>
<td><a href="[% edit_url | html %][% HTML.escape(row.id) %]">[% HTML.escape(row.follow_up_date) %]</a></td>
<td><a href="[% edit_url | html %][% HTML.escape(row.id) %]">[% HTML.escape(row.created_on) %]</a></td>
<td><a href="[% edit_url | html %][% HTML.escape(row.id) %]">[% HTML.escape(row.subject) %]</a></td>
<td>[% IF row.reference_link %]<a href="[% row.reference_link | html %]" class="alternative">[% END %][% HTML.escape(row.reference) %][% IF row.reference_link %]</a>[% END %]</td>
<td><a href="[% edit_url | html %][% HTML.escape(row.id) %]">[% HTML.escape(row.created_by_name) %]</a></td>
</tr>
[% END %]
</tbody>
</table>
<div class="buttons">
<input type="hidden" name="action" value="dispatcher">
<input type="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
<input type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
</div>
</form>
</div>
[%- FOREACH row = FOLLOW_UPS %]
<tr class="listrow[% loop.count % 2 %]">
<td>
<input type="hidden" name="follow_up_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
<input type="checkbox" name="selected_[% loop.count %]" value="1">
</td>
<td>[% HTML.escape(row.follow_up_date) %]</td>
<td>[% HTML.escape(row.created_on) %]</td>
<td><a href="[% edit_url | html %][% HTML.escape(row.id) %]">[% HTML.escape(row.subject) %]</a></td>
<td>[% IF row.reference_link %]<a href="[% row.reference_link | html %]">[% END %][% HTML.escape(row.reference) %][% IF row.reference_link %]</a>[% END %]</td>
<td>[% HTML.escape(row.created_by_name) %]</td>
</tr>
[%- END %]
</table>
<p>
<input type="hidden" name="action" value="dispatcher">
<input type="submit" class="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
<input type="submit" class="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
</p>
</form>
templates/webpages/fu/report_top.html
[%- IF SAVED_MESSAGE %]
<p>[% SAVED_MESSAGE %]</p>
[%- END %]
[% IF SAVED_MESSAGE %]
<p class="message">[% SAVED_MESSAGE %]</p>
[% END %]
[%- IF OPTIONS.size %]
<p>
[%- FOREACH option = OPTIONS %]
[%- option %][% UNLESS loop.last %]<br>[% END %]
[%- END %]
</p>
[%- END %]
[% IF OPTIONS.size %]
<p>
[% FOREACH option = OPTIONS %]
[% option %][% UNLESS loop.last %]<br>[% END %]
[% END %]
</p>
[% END %]
<form action="fu.pl" method="post" name="Form" id="form">
templates/webpages/fu/search.html
[% USE T8 %]
[% USE L %]
[% USE HTML %]
<h1>[% title %]</h1>
<script type="text/javascript">
$(function(){ document.Form.subject.focus(); });
</script>
<form action="fu.pl" method="post" name="Form" id="form">
<p>
<table>
<tr>
<td align="right">[% 'Created for' | $T8 %]</td>
<td>
<select name="created_for">
<option></option>
[%- FOREACH row = EMPLOYEES %]
<option value="[% HTML.escape(row.id) %]">
[%- IF row.name %]
[%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])
[%- ELSE %]
[%- HTML.escape(row.login) %]
[%- END %]
</option>
[%- END %]
</select>
</td>
</tr>
<tr>
<td align="right">[% 'Subject' | $T8 %]</td>
<td><input name="subject" size="20"></td>
</tr>
<tr>
<td align="right">[% 'Body' | $T8 %]</td>
<td><input name="body" size="20"></td>
</tr>
<tr>
<td align="right">[% 'Reference' | $T8 %]</td>
<td><input name="reference" size="20"></td>
</tr>
<tr>
<td align="right">[% 'Follow-Up Date' | $T8 %]</td>
<td>
[% 'From' | $T8 %]
[% L.date_tag('follow_up_date_from') %]
[% 'To (time)' | $T8 %]
[% L.date_tag('follow_up_date_to') %]
</td>
</tr>
<tr>
<td align="right">[% 'Created on' | $T8 %]</td>
<td>
[% 'From' | $T8 %]
[% L.date_tag('itime_from') %]
[% 'To (time)' | $T8 %]
[% L.date_tag('itime_to') %]
</td>
</tr>
<h1>[% title %]</h1>
<tr>
<td align="right">[% 'Include in Report' | $T8 %]</td>
<td>
<script type="text/javascript">
$(function(){ document.Form.subject.focus(); });
</script>
<table>
<tr>
<td>
<input type="checkbox" name="due_only" id="due_only" value="1" checked>
<label for="due_only">[% 'Only due follow-ups' | $T8 %]</label>
</td>
<form action="fu.pl" method="post" name="Form" id="form">
<div class="wrapper">
<table class="tbl-horizontal">
<tbody>
<tr>
<th>[% 'Created for' | $T8 %]</th>
<td>
<input type="checkbox" name="all_users" id="all_users" value="1" checked>
<label for="all_users">[% 'Other users\' follow-ups' | $T8 %]</label>
<select name="created_for" class="wi-wider">
<option></option>
[% FOREACH row = EMPLOYEES %]
<option value="[% HTML.escape(row.id) %]">
[% IF row.name %]
[% HTML.escape(row.name) %] ([% HTML.escape(row.login) %])
[% ELSE %]
[% HTML.escape(row.login) %]
[% END %]
</option>
[% END %]
</select>
</td>
</tr>
<tr>
</tr>
<tr>
<th>[% 'Subject' | $T8 %]</th>
<td><input type="text" name="subject" class="wi-wider"></td>
</tr>
<tr>
<th>[% 'Body' | $T8 %]</th>
<td><input type="text" name="body" class="wi-wider"></td>
</tr>
<tr>
<th>[% 'Reference' | $T8 %]</th>
<td><input type="text" name="reference" class="wi-wider"></td>
</tr>
<tr>
<th>[% 'Follow-Up Date' | $T8 %]</th>
<td>
<input type="checkbox" name="not_done" id="not_done" value="1" checked>
<label for="not_done">[% 'Not done yet' | $T8 %]</label>
[% 'From' | $T8 %] [% L.date_tag('follow_up_date_from') %]
[% 'To (time)' | $T8 %] [% L.date_tag('follow_up_date_to' ) %]
</td>
</tr>
<tr>
<th>[% 'Created on' | $T8 %]</th>
<td>
<input type="checkbox" name="done" id="done" value="1">
<label for="done">[% 'Done' | $T8 %]</label>
[% 'From' | $T8 %] [% L.date_tag('itime_from') %]
[% 'To (time)' | $T8 %] [% L.date_tag('itime_to' ) %]
</td>
</tr>
</table>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
<div class="form-addition control-panel">
<h3>[% 'Include in Report' | $T8 %]</h3>
<div class="list">
<input type="checkbox" name="due_only" id="due_only" value="1" checked> <label for="due_only">[% 'Only due follow-ups' | $T8 %]</label> <br>
<input type="checkbox" name="all_users" id="all_users" value="1" checked> <label for="all_users">[% 'Other users\' follow-ups' | $T8 %]</label> <br>
<input type="checkbox" name="not_done" id="not_done" value="1" checked> <label for="not_done">[% 'Not done yet' | $T8 %]</label> <br>
<input type="checkbox" name="done" id="done" value="1"> <label for="done">[% 'Done' | $T8 %]</label>
</div>
</div>
</table>
</p>
</form>
</form>

Auch abrufbar als: Unified diff