Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a85900cb

Von Hans Peter Schlaepfer vor etwa 6 Jahren hinzugefügt

  • ID a85900cb68a578d89090043534ae79664a4070a9
  • Vorgänger 72c4037d
  • Nachfolger e7c11f83

Preview design 4.0

Unterschiede anzeigen:

templates/webpages/customer_vendor/tabs/contacts.html
4 4
[%- USE L %]
5 5

  
6 6
<div id="contacts">
7
  <table>
8
    <tr>
9
      <th align="right">[% 'Contacts' | $T8 %]</th>
10

  
11
      <td>
12
        [%
13
          L.select_tag(
14
            'contact.cp_id',
15
            SELF.contacts,
16
            default = SELF.contact.cp_id,
17
            with_empty = 1,
18
            empty_title = LxERP.t8('New contact'),
19
            value_key = 'cp_id',
20
            title_key = 'full_name',
21
            onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); local_reinit_widgets(); }});",
22
          )
23
        %]
24
      </td>
25
    </tr>
26

  
27
    <tr>
28
      <th align="right" nowrap>[% 'Gender' | $T8 %]</th>
29

  
30
      <td>
31
        [%
32
          L.select_tag(
33
            'contact.cp_gender',
34
            [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
35
            default = SELF.contact.cp_gender
36
          )
37
        %]
38
      </td>
39
    </tr>
40

  
41
    <tr>
42
      <th align="right" nowrap>[% 'Title' | $T8 %]</th>
43

  
44
      <td>
45
        [% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40) %]
46
        [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %]
47
      </td>
48
    </tr>
49

  
50
    <tr>
51
      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
52

  
53
      <td>
54
        [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %]
55
        [% L.select_tag('contact_cp_abteilung_select', SELF.all_departments, default = SELF.contact.cp_abteilung,  with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);') %]
56
      </td>
57
    </tr>
58 7

  
59
    <tr>
60
      <th align="right" nowrap>[% 'Function/position' | $T8 %]</th>
61

  
62
      <td>
63
        [% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40) %]
64
      </td>
65
    </tr>
66

  
67
    <tr>
68
      <th align="right" nowrap>[% 'Given Name' | $T8 %]</th>
8
<div class="select-item">
9
[% 'Select contacts' | $T8 %][%
10
  L.select_tag(
11
    'contact.cp_id',
12
    SELF.contacts,
13
    default = SELF.contact.cp_id,
14
    with_empty = 1,
15
    empty_title = LxERP.t8('New contact'),
16
    value_key = 'cp_id',
17
    title_key = 'full_name',
18
    onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); local_reinit_widgets(); }});",
19
  )%]
20
</div>
69 21

  
70
      <td>
71
        [% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40) %]
72
      </td>
73
    </tr>
22
<div class="cols">  
74 23

  
24
<table class="tbl-horizontal col">
25
  <caption>[% 'Personal details' | $T8 %]</caption>
26
  <tbody>
75 27
    <tr>
76
      <th align="right" nowrap>[% 'Surname' | $T8 %]</th>
77

  
78
      <td>
79
        [% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40) %]
80
      </td>
28
      <th>[% 'Given Name' | $T8 %]</th>
29
      <td>[% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, class="wi-wide") %]</td>
81 30
    </tr>
82

  
83 31
    <tr>
84
      <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
85

  
86
      <td>
87
        [% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %]
88
      </td>
32
      <th>[% 'Surname' | $T8 %]</th>
33
      <td>[% L.input_tag('contact.cp_name', SELF.contact.cp_name, class="wi-wide") %]</td>
89 34
    </tr>
90

  
91 35
    <tr>
92
      <th align="right" nowrap>[% 'Phone1' | $T8 %]</th>
93

  
36
      <th>[% 'Gender' | $T8 %]</th>
94 37
      <td>
95
        [% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40) %]
38
        [% L.select_tag(
39
          'contact.cp_gender',
40
          [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
41
          default = SELF.contact.cp_gender,
42
          class = 'wi-normal',
43
        ) %]
96 44
      </td>
97 45
    </tr>
98

  
99 46
    <tr>
100
      <th align="right" nowrap>[% 'Phone2' | $T8 %]</th>
101

  
102
      <td>
103
        [% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40) %]
104
      </td>
47
      <th>[% 'Birthday' | $T8 %]</th>
48
      <td>[% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday, class='wi-date') %]</td>
105 49
    </tr>
106

  
107 50
    <tr>
108
      <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
109

  
51
      <th>[% 'Title' | $T8 %]</th>
110 52
      <td>
111
        [% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %]
53
        [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);', class="wi-wide helper") %] <br>
54
        [% L.input_tag('contact.cp_title', SELF.contact.cp_title, class="wi-wide addition") %] 
112 55
      </td>
113 56
    </tr>
114

  
115 57
    <tr>
116
      <th align="right" nowrap>[% 'Mobile1' | $T8 %]</th>
117

  
118
      <td>
119
        [% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %]
120
      </td>
58
      <th>[% 'Project' | $T8 %]</th>
59
      <td>[% L.input_tag('contact.cp_project', SELF.contact.cp_project, class="wi-wide") %]</td>
121 60
    </tr>
122

  
123 61
    <tr>
124
      <th align="right" nowrap>[% 'Mobile2' | $T8 %]</th>
125

  
126
      <td>
127
        [% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %]
128
      </td>
62
      <th class="caption" colspan="2">[% 'Department & Function' | $T8 %]</th>
129 63
    </tr>
130

  
131 64
    <tr>
132
      <th align="right" nowrap>[% 'Sat. Phone' | $T8 %]</th>
133

  
65
      <th>[% 'Department' | $T8 %]</th>
134 66
      <td>
135
        [% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %]
67
        [% L.select_tag(
68
          'contact_cp_abteilung_select', 
69
          SELF.all_departments, 
70
          default = SELF.contact.cp_abteilung,  
71
          with_empty = 1, 
72
          onchange = '$("#contact_cp_abteilung").val(this.value);', 
73
          class='wi-wide helper'
74
        ) %]<br>
75
        [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, class="wi-wide addition") %]
136 76
      </td>
137 77
    </tr>
138

  
139 78
    <tr>
140
      <th align="right" nowrap>[% 'Sat. Fax' | $T8 %]</th>
141

  
142
      <td>
143
        [% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %]
144
      </td>
79
      <th>[% 'Function/position' | $T8 %]</th>
80
      <td>[% L.input_tag('contact.cp_position', SELF.contact.cp_position, class="wi-wide") %]</td>
145 81
    </tr>
146

  
147 82
    <tr>
148
      <th align="right" nowrap>[% 'Project' | $T8 %]</th>
149

  
150
      <td>
151
        [% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %]
152
      </td>
83
      <th class="caption" colspan="2">[% 'Address' | $T8 %]</th>
153 84
    </tr>
154

  
155 85
    <tr>
156
      <th align="right" nowrap>[% 'Street' | $T8 %]</th>
157

  
86
      <th>[% 'Street' | $T8 %]</th>
158 87
      <td>
159
        [% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40) %]
88
        [% L.input_tag('contact.cp_street', SELF.contact.cp_street, class="wi-wide") %]
160 89
        <span id="contact_map"></span>
161 90
        <script type="text/javascript">
162 91
          var contactsMapWidget = new kivi.CustomerVendor.MapWidget('contact_cp_');
......
166 95
        </script>
167 96
      </td>
168 97
    </tr>
169

  
170
    <tr>
171
      <th align="right" nowrap>[% 'Zip, City' | $T8 %]</th>
172

  
173
      <td>
174
        [% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, size = 5) %]
175
        [% L.input_tag('contact.cp_city', SELF.contact.cp_city, size = 25) %]
176
      </td>
177
    </tr>
178

  
179
    <tr>
180
      <th align="right" nowrap>[% 'Private Phone' | $T8 %]</th>
181

  
182
      <td>
183
        [% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %]
184
      </td>
185
    </tr>
186

  
187 98
    <tr>
188
      <th align="right" nowrap>[% 'Private E-mail' | $T8 %]</th>
189

  
190
      <td>
191
        [% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %]
192
      </td>
193
    </tr>
194

  
195
    <tr>
196
      <th align="right" nowrap>[% 'Birthday' | $T8 %]</th>
197

  
99
      <th>[% 'Zip, City' | $T8 %]</th>
198 100
      <td>
199
        [% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %]
101
        [% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, class="wi-verysmall") %]
102
        [% L.input_tag('contact.cp_city', SELF.contact.cp_city, class="wi-normal", style='width:13.1em;') %]
200 103
      </td>
201 104
    </tr>
202

  
203 105
    [% contact_cvars = SELF.contact.cvars_by_config %]
204

  
205 106
    [% IF ( contact_cvars.size ) %]
206
      <tr>
207
        <td colspan="2">
208
          <hr>
209
        </td>
210
      </tr>
211

  
107
      <!-- PENDENT: Horizontal Rule -->
212 108
      [% FOREACH var = contact_cvars %]
213 109
        <tr>
214
          <th align="right" valign="top" nowrap>[% var.config.description | html %]</th>
215

  
216
          <td valign="top">
110
          <th>[% var.config.description | html %]</th>
111
          <td>
217 112
            [% INCLUDE 'common/render_cvar_input.html'
218 113
                       cvar_name_prefix = 'contact_cvars.'
219 114
            %]
......
221 116
        </tr>
222 117
      [% END %]
223 118
    [% END %]
119
  </tbody>
120
</table>
224 121

  
225
  </table>
122
<table class="tbl-horizontal col">
123
  <tbody>
124
    <tr>
125
      <th colspan="2" class="caption">[% 'Communication' | $T8 %]</th>
126
    </tr>
127
    <tr>
128
      <th>[% 'E-mail' | $T8 %]</th>
129
      <td>[% L.input_tag('contact.cp_email', SELF.contact.cp_email, class="wi-wide") %]</td>
130
    </tr>
131
    <tr>
132
      <th>[% 'Phone1' | $T8 %]</th>
133
      <td>[% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, class="wi-wide") %]</td>
134
    </tr>
135
    <tr>
136
      <th>[% 'Phone2' | $T8 %]</th>
137
      <td>[% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, class="wi-wide") %]</td>
138
    </tr>
139
    <tr>
140
      <th>[% 'Fax' | $T8 %]</th>
141
      <td>[% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, class="wi-wide") %]</td>
142
    </tr>
143
    <tr>
144
      <th>[% 'Mobile1' | $T8 %]</th>
145
      <td>[% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, class="wi-wide") %]</td>
146
    </tr>
147
    <tr>
148
      <th>[% 'Mobile2' | $T8 %]</th>
149
      <td>[% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, class="wi-wide") %]</td>
150
    </tr>
151
    <tr>
152
      <th>[% 'Sat. Phone' | $T8 %]</th>
153
      <td>[% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, class="wi-wide") %]</td>
154
    </tr>
155
    <tr>
156
      <th>[% 'Sat. Fax' | $T8 %]</th>
157
      <td>[% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, class="wi-wide") %]</td>
158
    </tr>
159
    <tr>
160
      <th>[% 'Private Phone' | $T8 %]</th>
161
      <td>[% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, class="wi-wide") %]</td>
162
    </tr>
163
    <tr>
164
      <th>[% 'Private E-mail' | $T8 %]</th>
165
      <td>[% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, class="wi-wide") %]</td>
166
    </tr>
226 167

  
168
  </tbody>
169
</table>
170

  
171
<div class="buttons">
227 172
  [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Contact'), name = 'action_delete_contact', class = 'submit') %]
228 173
  [% IF ( !SELF.contact.cp_id ) %]
229
    <script type="text/javascript">
230
      $('#action_delete_contact').hide();
231
    </script>
174
  <script type="text/javascript">
175
    $('#action_delete_contact').hide();
176
  </script>
232 177
  [% END %]
233 178
</div>
179

  
180
</div><!-- /.cols -->
181
  
182
</div>

Auch abrufbar als: Unified diff