Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 996443bb

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID 996443bba52c6adca160b2e197454e869909efb5
  • Vorgänger 90ac5660
  • Nachfolger d5d99060

Neues Design 2019 Standard-Code templates/webpages/letter/edit.html

Unterschiede anzeigen:

templates/webpages/letter/edit.html
9 9
<h1>[% title | html %]</h1>
10 10

  
11 11
<form action='controller.pl' method='POST' id='form'>
12
  <input type="hidden" name="letter.id" value="[% letter.id | html %]">
13
  <input type="hidden" name="draft.id" value="[% draft.id | html %]">
14
  <input type="hidden" name="type" value="[% type | html %]">
15
  [% L.hidden_tag('is_sales', SELF.is_sales) %]
12
<input type="hidden" name="letter.id" value="[% letter.id | html %]">
13
<input type="hidden" name="draft.id" value="[% draft.id | html %]">
14
<input type="hidden" name="type" value="[% type | html %]">
15
[% L.hidden_tag('is_sales', SELF.is_sales) %]
16 16

  
17
  [%- INCLUDE 'common/flash.html' %]
17
[% INCLUDE 'common/flash.html' %]
18 18

  
19
  <div id="oe_tabs" class="tabwidget">
20
   <ul>
19
<div id="oe_tabs" class="tabwidget">
20
  <ul>
21 21
    <li><a href="#ui-tabs-letter">[% LxERP.t8("Letter") %]</a></li>
22
[%- IF letter.id %]
23
 [%- IF INSTANCE_CONF.get_webdav %]
24
     <li><a href="#ui-tabs-webdav">[% LxERP.t8('WebDAV') %]</a></li>
25
 [%- END %]
26
    <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Letter&object_id=[% HTML.url(letter.id) %]">[% LxERP.t8("Linked Records") %]</a></li>
27
[%- END %]
28
   </ul>
29

  
30
   <div id="ui-tabs-letter">
31

  
32
<table width=100%>
33
<tr>
34
 <td width=50%>
35
  <!-- upper left block -->
36
   <table width=90%>
37
[%- IF SELF.is_sales %]
38
    <tr>
39
     <th align='right'>[% 'Customer' | $T8 %]:</th>
40
     <td>[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer') %]</td>
41
    </tr>
42
[%- ELSE %]
22
    [% IF letter.id %]
23
      [% IF INSTANCE_CONF.get_webdav %]
24
        <li><a href="#ui-tabs-webdav">[% LxERP.t8('WebDAV') %]</a></li>
25
      [% END %]
26
      <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Letter&object_id=[% HTML.url(letter.id) %]">[% LxERP.t8("Linked Records") %]</a></li>
27
    [% END %]
28
  </ul>
29

  
30
<div id="ui-tabs-letter">
31

  
32
<div class="wrapper">
33

  
34
  <table class="tbl-horizontal col">
35
    <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
36
    <tbody>
37
      [% IF SELF.is_sales %]
38
      <tr>
39
        <th>[% 'Customer' | $T8 %]</th>
40
        <td class="wi-wider">[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer', class='wi-wider') %]</td>
41
      </tr>
42
      [% ELSE %]
43
      <tr>
44
        <th>[% 'Vendor' | $T8 %]</th>
45
        <td class="wi-wider">[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor', class='wi-wider') %]</td>
46
      </tr>
47
      [% END %]
48
      <tr>
49
        <th>[% 'Contact Person' | $T8 %]</th>
50
        <td class="wi-wider">[% L.select_tag('letter.cp_id', letter.customer_vendor_id ? letter.customer_vendor.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id, class='wi-wider') %]</td>
51
      </tr>
52
    </tbody>
53
  </table>
54

  
55
  <table class="tbl-horizontal col">
56
    <tbody>
57
      <tr>
58
        <th>[% 'Your Reference' | $T8 %]</th>
59
        <td><input type="text" name='letter.reference' value='[% letter.reference | html %]' class="wi-small">
60
        </td>
61
      </tr>
62
      <tr>
63
        <th>[% 'Letternumber' | $T8 %]:</th>
64
        <td><input type="text" name='letter.letternumber' value='[% letter.letternumber | html %]' class="wi-small">
65
        </td>
66
      </tr>
67
    </tbody>
68
  </table>
69

  
70
  <table class="tbl-horizontal col">
71
    <tbody>
72
      <tr>
73
        <th>[% 'Employee' | $T8 %]</th>
74
        <td>[% L.select_tag('letter.employee_id', employees, default=letter.employee_id, title_key='safe_name', class='wi-wide', allow_empty=1,) %]</td>
75
      </tr>
76
      <tr>
77
        <th>[% 'Salesman' | $T8 %]</th>
78
        <td>[% L.select_tag('letter.salesman_id', employees, default=letter.salesman_id, title_key='safe_name', class='wi-wide', allow_empty=1,) %]</td>
79
      </tr>
80
    </tbody>
81
  </table>
82

  
83
</div><!-- /.wrapper -->
84

  
85

  
86
<div class="wrapper">
87

  
88
<table class="tbl-horizontal">
89
  <colgroup> <col class="wi-small"><col class="wi-wider"> </colgroup>
90
  <tbody>
43 91
    <tr>
44
     <th align='right'>[% 'Vendor' | $T8 %]:</th>
45
     <td>[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor') %]</td>
92
      <th>[% 'Date' | $T8 %]</th>
93
      <td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly, class='wi-date') %]</td>
46 94
    </tr>
47
[%- END %]
48 95
    <tr>
49
     <th align='right'>[% 'Contact Person' | $T8 %]</th>
50
     <td>[% L.select_tag('letter.cp_id', letter.customer_vendor_id ? letter.customer_vendor.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id) %]</td>
96
      <th>[% 'Subject' | $T8 %]</th>
97
      <td><textarea name='letter.subject' rows="1" class="wi-wider">[% letter.subject | html %]</textarea></td>
51 98
    </tr>
52 99
    <tr>
53
     <th align='right'>[% 'Your Reference' | $T8 %]:</th>
54
     <td><input name='letter.reference' style='width:70%' value='[% letter.reference | html %]'></td>
100
      <th>[% 'Greeting' | $T8 %]</th>
101
      <td><input type="text" name='letter.greeting' value="[% letter.greeting | html %]" class="wi-wider"> </td>
55 102
    </tr>
56
   </table>
57
  <!-- /upper left block -->
58
 </td>
59
 <td width=50%>
60
  <!-- upper right block -->
61
   <table align=center width=90%>
62 103
    <tr>
63
     <th align='right'>[% 'Letternumber' | $T8 %]:</th>
64
     <td><input name='letter.letternumber' style='width:70%' value='[% letter.letternumber | html %]'></td>
104
      <th>[% 'Body' | $T8 %]</th>
105
      <td class="wi-wider">[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, rows=20, class='texteditor wi-wider') %]</td>
65 106
    </tr>
66 107
    <tr>
67
     <th align='right'>[% 'Date' | $T8 %]:</th>
68
      <td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly) %]</td>
69
     </td>
108
      <th>[% 'Internal Notes' | $T8 %]</th>
109
      <td><textarea name='letter.intnotes' rows="4" class="wi-wider">[% letter.intnotes | html %]</textarea></td>
70 110
    </tr>
71
   </table>
72
  <!-- /upper right block -->
73
 </td>
74
</tr>
111
  </tbody>
112
</table>
75 113

  
76
<tr height=20></tr>
114
<div id="email_inputs" class="hidden"></div>
115
<div id="print_options" class="hidden">[% print_options %]</div>
77 116

  
78
<tr>
79
 <td colspan=2 width=100%>
80
  <!-- central block -->
81
   <table width=80%>
82
    <tr>
83
     <th align=right>[% 'Subject' | $T8 %]</th>
84
     <td><textarea name='letter.subject' style='width:100%;font-weight:bold' rows=1>[% letter.subject | html %]</textarea></td>
85
    </tr>
86
     <th align=right>[% 'Greeting' | $T8 %]</th>
87
     <td><input name='letter.greeting' style='width:100%;font-weight:bold' value="[% letter.greeting | html %]"></td>
88
    </tr>
89
    <tr>
90
    <tr>
91
     <th align=right>[% 'Body' | $T8 %]</th>
92
     <td>[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td>
93
    </tr>
94
    <tr height=10></tr>
95
     <th align=right>[% 'Internal Notes' | $T8 %]</th>
96
     <td><textarea name='letter.intnotes' style='width:100%' rows=4>[% letter.intnotes | html %]</textarea></td>
97
    </tr>
117
</div><!-- /.wrapper -->
98 118

  
99
    <tr>
100
     <th></th>
101
     <td>
102
      <table width=90% align='center'>
103
       <tr>
104
        <td>
105
         <table width=100%>
106
          <tr>
107
           <td>[% 'Employee' | $T8 %]</td>
108
          </tr>
109
          <tr>
110
           <td>
111
            [%- L.select_tag('letter.employee_id', employees, default=letter.employee_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
112
           </td>
113
          </tr>
114
         </table>
115
        </td>
116
        <td>
117
         <table width=100%>
118
          <tr>
119
           <td>[% 'Salesman' | $T8 %]</td>
120
          </tr>
121
          <tr>
122
           <td>
123
            [%- L.select_tag('letter.salesman_id', employees, default=letter.salesman_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
124
           </td>
125
          </tr>
126
         </table>
127
        </td>
128
        <td>
129
        </td>
130
       </tr>
131
      </table>
132
     </td>
133
    </tr>
134
   </table>
135
  <!-- /central block -->
136
 </td>
137
</tr>
138
</table>
119
</div><!-- /.ui-tabs-letter -->
139 120

  
140
<div id="email_inputs" class="hidden"></div>
141
<div id="print_options" class="hidden">
142
 [% print_options %]
121
[% PROCESS 'webdav/_list.html' %]
122
<div id="ui-tabs-1">
123
  <div class="wrapper">
124
  [% LxERP.t8("Loading...") %]
125
  </div>
143 126
</div>
144 127

  
145
 </div>
146
 [% PROCESS 'webdav/_list.html' %]
147
 <div id="ui-tabs-1">
148
  [%- LxERP.t8("Loading...") %]
149
 </div>
150
</div>
128
</div><!-- /.tabwidget -->
129

  
151 130
</form>
152 131

  
153 132
<div id="print_dialog" class="hidden">
154
 [%- PROCESS 'common/_print_dialog.html' %]
133
  [% PROCESS 'common/_print_dialog.html' %]
155 134
</div>

Auch abrufbar als: Unified diff