Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 37a322ba

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID 37a322bac00149764cf93ed278f4d7f7d184bf5b
  • Vorgänger 43a5f43b
  • Nachfolger 1a8e1acf

Neues kivitendo Design Aenderungen in templates/webpages/customer_vendor/..

Unterschiede anzeigen:

templates/webpages/customer_vendor/tabs/vcnotes.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE L %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE date %]
4 5

  
5 6
<div id="vcnotes">
6
  [% IF ( SELF.notes && SELF.notes.size ) %]
7
     <p>
8
       <table>
9
        <tr>
10
          <th class="listheading">[% 'Delete' | $T8 %]</th>
11
          <th class="listheading">[% 'Subject' | $T8 %]</th>
12
          <th class="listheading">[% 'Created on' | $T8 %]</th>
13
          <th class="listheading">[% 'Created by' | $T8 %]</th>
14
          <th class="listheading">[% 'Follow-Up Date' | $T8 %]</th>
15
          <th class="listheading">[% 'Follow-Up for' | $T8 %]</th>
16
          <th class="listheading">[% 'Follow-Up done' | $T8 %]</th>
17
        </tr>
18 7

  
19
        [%- FOREACH row = SELF.notes %]
20
          <tr class="listrow[% loop.count % 2 %]">
21
            <td>
22
              [% IF ( !SELF.note || SELF.note.id != row.id ) %]
23
                [% L.checkbox_tag('delete_notes[]', value = row.id) %]
24
              [% END %]
25
            </td>
26

  
27
            <td>
28
              <a href="controller.pl?action=CustomerVendor/edit&db=[% SELF.is_vendor() ? 'vendor' : 'customer' %]&id=[% HTML.url(SELF.cv.id) %]&note_id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a>
29
            </td>
30

  
31
            <td>
32
              [% row.itime.to_kivitendo | html %]
33
            </td>
34

  
35
            <td>
36
              [% row.employee.safe_name | html %]
37
            </td>
38

  
39
            <td>
40
              [% row.follow_up.follow_up_date.to_kivitendo | html %]
41
            </td>
42

  
43
            <td>
44
              [% row.follow_up.created_for.safe_name | html %]
45
            </td>
46

  
47
            <td>
48
              [% IF ( row.follow_up.follow_up_date ) %]
49
                [% IF ( row.follow_up.done ) %]
50
                  [% 'Yes' | $T8 %]
51
                [% ELSE %]
52
                  [% 'No' | $T8 %]
53
                [% END %]
54
              [% END %]
55
            </td>
56
          </tr>
57
        [% END %]
58
      </table>
59
    </p>
60
  [% END %]
61

  
62
  <h2>
63
    [% IF ( SELF.note.id ) %]
64
      [% 'Edit note' | $T8 %]
65
    [% ELSE %]
66
      [% 'Add note' | $T8 %]
67
    [% END %]
68
  </h2>
69

  
70
  [% L.hidden_tag('note.id', SELF.note.id) %]
71

  
72
  <p>
73
    <table>
8
<div class="wrapper">
9

  
10
<!-- PENDENT: wieso Datum nicht descending sortiert? -->
11
[% IF ( SELF.notes && SELF.notes.size ) %]
12
<table class="tbl-list width-moderate">
13
  <caption>[% 'Wiedervorlagen (Notizen)' | $T8 %]</caption>
14
  <thead>
15
    <tr>
16
      <th>[% 'Delete' | $T8 %]</th>
17
      <th>[% 'Subject' | $T8 %]</th>
18
      <th>[% 'Created on' | $T8 %]</th>
19
      <th>[% 'Created by' | $T8 %]</th>
20
      <th>[% 'Follow-Up Date' | $T8 %]</th>
21
      <th>[% 'Follow-Up for' | $T8 %]</th>
22
      <th>[% 'Follow-Up done' | $T8 %]</th>
23
    </tr>
24
  </thead>
25
  <tbody>
26
    [% FOREACH row = SELF.notes %]
74 27
      <tr>
75
        <td valign="right">[% 'Subject' | $T8 %]</td>
76

  
77 28
        <td>
78
          [% L.input_tag('note.subject', SELF.note.subject, size = 50) %]
29
          [% IF ( !SELF.note || SELF.note.id != row.id ) %]
30
            [% L.checkbox_tag('delete_notes[]', value = row.id) %]
31
          [% END %]
79 32
        </td>
80
      </tr>
81

  
82
      <tr>
83
        <td valign="right" align="top">[% 'Body' | $T8 %]</td>
84

  
85
        <td align="top">
86
          [% L.textarea_tag('note.body', SELF.note.body, cols = 50 rows = 10) %]
33
        <td>
34
          <a href="controller.pl?action=CustomerVendor/edit&db=[% SELF.is_vendor() ? 'vendor' : 'customer' %]&id=[% HTML.url(SELF.cv.id) %]&note_id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a>
87 35
        </td>
88
      </tr>
89

  
90
      <tr>
91
        <td valign="right">[% 'Follow-Up On' | $T8 %]</td>
92

  
36
        <td>[% row.itime.to_kivitendo | html %]</td>
37
        <td>[% row.employee.safe_name | html %]</td>
38
        <td>[% row.follow_up.follow_up_date.to_kivitendo | html %]</td>
39
        <td>[% row.follow_up.created_for.safe_name | html %]</td>
93 40
        <td>
94
          [% L.date_tag('note_followup.follow_up_date', SELF.note_followup.follow_up_date) %]
95
          [% 'for' | $T8 %]
96
          [% L.select_tag(
97
               'note_followup.created_for_user',
98
               SELF.all_employees,
99
               default = SELF.note_followup.created_for_user,
100
               title_key = 'safe_name'
101
             )
102
          %]
41
          [% IF ( row.follow_up.follow_up_date ) %]
42
            [% IF ( row.follow_up.done ) %]
43
              [% 'Yes' | $T8 %]
44
            [% ELSE %]
45
              [% 'No' | $T8 %]
46
            [% END %]
47
          [% END %]
103 48
        </td>
104 49
      </tr>
50
    [% END #/FOREACH %]
51
  </tbody>
52
</table>
53
[% END %]
105 54

  
106
      <tr>
107
        <td>&nbsp;</td>
55
[% L.hidden_tag('note.id', SELF.note.id) %]
108 56

  
109
        <td>
110
          [% L.checkbox_tag('note_followup.done', checked = SELF.note_followup.done) %]
111
          <label for="note_followup_done">[% 'Follow-Up done' | $T8 %]</label>
112
        </td>
113
      </tr>
57
<table class="tbl-horizontal">
58
  <caption>
59
    [% IF ( SELF.note.id ) %]
60
      [% 'Edit note' | $T8 %]
61
    [% ELSE %]
62
      [% 'Add note' | $T8 %]
63
    [% END %]
64
  </caption>
65
  <tbody>
66
    <tr>
67
      <th>[% 'Subject' | $T8 %]</th>
68
      <td>[% L.input_tag('note.subject', SELF.note.subject, class="wi-verywide") %]</td>
69
    </tr>
70
    <tr>
71
      <th>[% 'Follow-Up On' | $T8 %]</th>
72
      <td>
73
        [% IF SELF.note_followup.follow_up_date ; SET thedate=SELF.note_followup.follow_up_date ; ELSE; SET thedate=date.format(date.now, '%d.%m.%Y'); END %]
74
        [% L.date_tag('note_followup.follow_up_date', thedate, class="wi-date") %]
75
      </td>
76
    </tr>
77
    <tr>
78
      <th>[% 'for' | $T8 %]</th>
79
      <td>[% L.select_tag(
80
             'note_followup.created_for_user',
81
             SELF.all_employees,
82
             default = SELF.note_followup.created_for_user,
83
             title_key = 'safe_name',
84
             class='wi-lightwide' ) %]
85
      </td>
86
    </tr>
87
    <tr>
88
      <th><label for="note_followup_done" title="[% 'Follow-Up done' | $T8 %]">[% 'Done' | $T8 %]</label></th>
89
      <td><span>[% L.checkbox_tag('note_followup.done', checked = SELF.note_followup.done) %]</span></td>
90
    </tr>
91
    <tr>
92
      <th>[% 'Body' | $T8 %]</th>
93
      <td >[% L.textarea_tag('note.body', SELF.note.body, rows=20, class="wi-verywide") %]</td>
94
    </tr>
95
  </tbody>
96
</table>
114 97

  
115
    </table>
116
  </p>
98
</div>
117 99
</div>

Auch abrufbar als: Unified diff