Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 027157f9

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

  • ID 027157f96627e9959d2464c626ae5c587ffe788f
  • Vorgänger 21e851b6
  • Nachfolger 4cecc00e

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

Unterschiede anzeigen:

templates/webpages/fu/add_edit.html
3 3
[% USE HTML %]
4 4
<h1>[% title %]</h1>
5 5

  
6
 <script type="text/javascript">
7
   $(function(){ document.Form.subject.focus(); });
8
 </script>
6
<script type="text/javascript">
7
  $(function(){ document.Form.subject.focus(); });
8
</script>
9 9

  
10
 <form action="fu.pl" method="post" name="Form" id="form">
10
<div class="wrapper">
11
<form action="fu.pl" method="post" name="Form" id="form">
11 12

  
12
  [%- IF SAVED_MESSAGE %]
13
[% IF SAVED_MESSAGE %]
13 14
  <p>[% SAVED_MESSAGE %]</p>
14
  [%- END %]
15
[% END %]
15 16

  
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) %]">
17
<input type="hidden" name="id" value="[% HTML.escape(id) %]">
18
<input type="hidden" name="note_id" value="[% HTML.escape(note_id) %]">
19
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
20
<input type="hidden" name="POPUP_MODE" value="[% HTML.escape(POPUP_MODE) %]">
20 21

  
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 %]
22

  
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 %]
32 34
      </select>
33
     </td>
34
    </tr>
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>
35 52

  
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 53

  
42
    <tr>
43
     <td valign="right">[% 'Subject' | $T8 %]</td>
44
     <td><input name="subject" value="[% HTML.escape(subject) %]" size="50"></td>
45
    </tr>
46 54

  
55
[% IF POPUP_MODE %]
56
<div class="buttons">
57
  <input type="hidden" name="action" value="dispatcher">
58
  <input type="submit" name="action_save" value="[% 'Save' | $T8 %]">
59
  [% IF id %]
60
    <input type="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
61
    <input type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
62
  [% END %]
63
  <input type="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]">
64
</div>
65

  
66
[% IF FOLLOW_UPS.size %]
67

  
68
<h2>[% 'Existing pending follow-ups for this item' | $T8 %]</h2>
69

  
70
<table class="tbl-list">
71
  <thead>
47 72
    <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>
73
      <th>[% 'Follow-Up Date' | $T8 %]</th>
74
      <th>[% 'Subject' | $T8 %]</th>
75
      <th>[% 'Created by' | $T8 %]</th>
76
      <th>[% 'Follow-up for' | $T8 %]</th>
77 77
    </tr>
78

  
79
    [%- FOREACH row = FOLLOW_UPS %]
78
  </thead>
79
  <tbody>
80
    [% FOREACH row = FOLLOW_UPS %]
80 81
    <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>
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>
85 86
    </tr>
86
    [%- END %]
87
   </table>
88
  </p>
89
  [%- END %]
90
  [%- END %]
87
    [% END %]
88
  </tbody>
89
</table>
90

  
91
[% END %]
92
[% END %]
91 93

  
92
  [%- FOREACH row = LINKS %]
94
[% FOREACH row = LINKS %]
93 95
  <input type="hidden" name="trans_id_[% loop.count %]"   value="[% HTML.escape(row.trans_id) %]">
94 96
  <input type="hidden" name="trans_type_[% loop.count %]" value="[% HTML.escape(row.trans_type) %]">
95 97
  <input type="hidden" name="trans_info_[% loop.count %]" value="[% HTML.escape(row.trans_info) %]">
96
  [%- END %]
98
[% END %]
99

  
100
<input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
97 101

  
98
  <input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
99
 </form>
102
</form>
103
</div><!-- /.wrapper -->

Auch abrufbar als: Unified diff