Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 922f961c

Von G. Richardson vor etwa 6 Jahren hinzugefügt

  • ID 922f961cb091c49dbc02693faf50382ceb9cd5a2
  • Vorgänger 1d1f3140

Änderungen HP Design

Unterschiede anzeigen:

templates/webpages/letter/edit.html
1
[%- USE HTML %]
2
[%- USE T8 %]
3
[%- USE L %]
4
[%- USE P %]
5
[%- USE LxERP %]
6
[%- SET WEBDAV = SELF.webdav_objects %]
1
[% USE HTML %]
2
[% USE T8 %]
3
[% USE L %]
4
[% USE P %]
5
[% USE LxERP %]
6

  
7
[% SET WEBDAV = SELF.webdav_objects %]
8

  
7 9
<h1>[% title | html %]</h1>
8 10

  
9 11
<form action='controller.pl' method='POST' id='form'>
10
  <input type="hidden" name="letter.id" value="[% letter.id | html %]">
11
  <input type="hidden" name="draft.id" value="[% draft.id | html %]">
12
  <input type="hidden" name="type" value="[% type | html %]">
13
  [% 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) %]
14 16

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

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

  
28
   <div id="ui-tabs-letter">
29

  
30
<table width=100%>
31
<tr>
32
 <td width=50%>
33
  <!-- upper left block -->
34
   <table width=90%>
35
[%- IF SELF.is_sales %]
36
    <tr>
37
     <th align='right'>[% 'Customer' | $T8 %]:</th>
38
     <td>[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer') %]</td>
39
    </tr>
40
[%- ELSE %]
41
    <tr>
42
     <th align='right'>[% 'Vendor' | $T8 %]:</th>
43
     <td>[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor') %]</td>
44
    </tr>
45
[%- END %]
46
    <tr>
47
     <th align='right'>[% 'Contact Person' | $T8 %]</th>
48
     <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>
49
    </tr>
50
    <tr>
51
     <th align='right'>[% 'Your Reference' | $T8 %]:</th>
52
     <td><input name='letter.reference' style='width:70%' value='[% letter.reference | html %]'></td>
53
    </tr>
54
   </table>
55
  <!-- /upper left block -->
56
 </td>
57
 <td width=50%>
58
  <!-- upper right block -->
59
   <table align=center width=90%>
60
    <tr>
61
     <th align='right'>[% 'Letternumber' | $T8 %]:</th>
62
     <td><input name='letter.letternumber' style='width:70%' value='[% letter.letternumber | html %]'></td>
63
    </tr>
64
    <tr>
65
     <th align='right'>[% 'Date' | $T8 %]:</th>
66
      <td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly) %]</td>
67
     </td>
68
    </tr>
69
   </table>
70
  <!-- /upper right block -->
71
 </td>
72
</tr>
73

  
74
<tr height=20></tr>
75

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

  
97
    <tr>
98
     <th></th>
99
     <td>
100
      <table width=90% align='center'>
101
       <tr>
102
        <td>
103
         <table width=100%>
104
          <tr>
105
           <td>[% 'Employee' | $T8 %]</td>
106
          </tr>
107
          <tr>
108
           <td>
109
            [%- L.select_tag('letter.employee_id', employees, default=letter.employee_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
110
           </td>
111
          </tr>
112
         </table>
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>[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer', class='wi-wide') %]</td>
41
      </tr>
42
      [% ELSE %] 
43
      <tr>
44
        <th>[% 'Vendor' | $T8 %]</th>
45
        <td>[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor', class='wi-wide') %]</td>
46
      </tr>
47
      [% END %] 
48
      <tr>
49
        <th>[% '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, class='wi-wide') %]</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">
113 60
        </td>
114
        <td>
115
         <table width=100%>
116
          <tr>
117
           <td>[% 'Salesman' | $T8 %]</td>
118
          </tr>
119
          <tr>
120
           <td>
121
            [%- L.select_tag('letter.salesman_id', employees, default=letter.salesman_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
122
           </td>
123
          </tr>
124
         </table>
61
      </tr>
62
      <tr>
63
        <th>[% 'Letternumber' | $T8 %]:</th>
64
        <td><input type="text" name='letter.letternumber' value='[% letter.letternumber | html %]' class="wi-small">
125 65
        </td>
126
        <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>
91
      <tr>
92
        <th>[% 'Date' | $T8 %]</th>
93
        <td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly) %]</td>
94
      </tr>
95
      <tr>
96
        <th>[% 'Subject' | $T8 %]</th>
97
        <td><textarea name='letter.subject' rows=1 class="wi-wider">[% letter.subject | html %]</textarea>
127 98
        </td>
128
       </tr>
129
      </table>
130
     </td>
131
    </tr>
132
   </table>
133
  <!-- /central block -->
134
 </td>
135
</tr>
136
</table>
137

  
138
<div id="email_inputs" class="hidden"></div>
139
<div id="print_options" class="hidden">
140
 [% print_options %]
141
</div>
99
      </tr>
100
      <tr>
101
        <th>[% 'Greeting' | $T8 %]</th>
102
        <td> <input type="text" name='letter.greeting' value="[% letter.greeting | html %]" class="wi-wider">
103
        </td>
104
      </tr>
105
      <tr>
106
        <th>[% 'Body' | $T8 %]</th>
107
        <td>[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, rows=20, class="texteditor wi-wider") %]</td>
108
      </tr>
109
      <tr>
110
        <th>[% 'Internal Notes' | $T8 %]</th>
111
        <td><textarea name='letter.intnotes' rows=4 class="wi-wider">[% letter.intnotes | html %]</textarea>
112
        </td>
113
      </tr>
114
    </tbody>
115
  </table>
116

  
117
  <div id="email_inputs" class="hidden"></div>
118
  <div id="print_options" class="hidden">[% print_options %]</div>
142 119

  
143
 </div>
144
 [% PROCESS 'webdav/_list.html' %]
145
 <div id="ui-tabs-1">
146
  [%- LxERP.t8("Loading...") %]
147
 </div>
120
</div><!-- /.wrapper -->
121

  
122
</div><!-- /.ui-tabs-letter -->
123

  
124
[% PROCESS 'webdav/_list.html' %]
125
<div id="ui-tabs-1">
126
  [% LxERP.t8("Loading...") %]
148 127
</div>
128

  
129
</div><!-- /.tabwidget -->
130

  
149 131
</form>
150 132

  
151 133
<div id="print_dialog" class="hidden">
152
 [%- PROCESS 'common/_print_dialog.html' %]
134
  [% PROCESS 'common/_print_dialog.html' %]
153 135
</div>

Auch abrufbar als: Unified diff