Revision e7a471b4
Von Sven Schöling vor fast 13 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
331 | 331 |
"projects" => { "key" => "ALL_PROJECTS", |
332 | 332 |
"all" => 0, |
333 | 333 |
"old_id" => \@old_project_ids }, |
334 |
"employees" => "ALL_EMPLOYEES", |
|
335 |
"salesmen" => "ALL_SALESMEN", |
|
336 | 334 |
"taxzones" => "ALL_TAXZONES", |
337 | 335 |
"payments" => "ALL_PAYMENTS", |
338 | 336 |
"currencies" => "ALL_CURRENCIES", |
... | ... | |
342 | 340 |
"price_factors" => "ALL_PRICE_FACTORS"); |
343 | 341 |
|
344 | 342 |
# label subs |
343 |
$TMPL_VAR{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{employee_id}, deleted => 0 ] ]); |
|
344 |
$TMPL_VAR{ALL_SALESMEN} = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{salesman_id}, deleted => 0 ] ]); |
|
345 | 345 |
$TMPL_VAR{ALL_CONTACTS} = SL::DB::Manager::Contact->get_all(query => [ |
346 | 346 |
or => [ |
347 | 347 |
cp_cv_id => $::form->{"$::form->{vc}_id"} * 1, |
templates/webpages/oe/form_header.html | ||
---|---|---|
165 | 165 |
<tr> |
166 | 166 |
<th align="right">[% 'Employee' | $T8 %]</th> |
167 | 167 |
<td> |
168 |
[% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title_sub=\sales_employee_labels)) %]
|
|
168 |
[% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title='safe_name')) %]
|
|
169 | 169 |
</td> |
170 | 170 |
</tr> |
171 | 171 |
[%- IF is_sales and ALL_SALESMEN.size %] |
172 | 172 |
<tr> |
173 | 173 |
<th align="right">[% 'Salesman' | $T8 %]</th> |
174 | 174 |
<td> |
175 |
[% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title_sub=\sales_employee_labels)) %]
|
|
175 |
[% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title='safe_name')) %]
|
|
176 | 176 |
</td> |
177 | 177 |
</tr> |
178 | 178 |
[%- END %] |
Auch abrufbar als: Unified diff
gelöschte Benutzer in oe/form_header ausblenden