Revision cd1835b3
Von Tamino Steinert vor 5 Tagen hinzugefügt
templates/design40_webpages/part/_parent_variant.html | ||
---|---|---|
210 | 210 |
</div> |
211 | 211 |
|
212 | 212 |
[% BLOCK panel_1 %] |
213 |
<h3> [% LxERP.t8("Create new Variants") %] </h3> |
|
214 |
<div class="wrapper"> |
|
215 |
[% FOREACH variant_property = SELF.part.variant_properties %] |
|
216 |
<div class="col input-panel" style="min-width:fit-content;"> |
|
217 |
<h4>[% variant_property.displayable_name | html %]</h4> |
|
218 |
[% L.select_tag("variant_properties." _ variant_property.id _ ".selected_property_value_ids[]", |
|
219 |
variant_property.property_values, |
|
220 |
title_key='displayable_name', value_key='id', |
|
221 |
id="selected_property_value_ids_" _ variant_property.id, |
|
222 |
multiple=1, |
|
223 |
) %] |
|
224 |
[% L.multiselect2side( |
|
225 |
"selected_property_value_ids_" _ variant_property.id, |
|
226 |
labelsx=LxERP.t8("All Property Values"), |
|
227 |
labeldx=LxERP.t8("Selected Property Values") |
|
228 |
) %] |
|
229 |
</div> |
|
230 |
[% END %] |
|
231 |
</div> |
|
232 |
[% L.button_tag('kivi.Part.create_variants();', LxERP.t8("Create Variants with selected Values")) %] |
|
233 |
[% END %] |
|
234 |
|
|
235 |
<div class="wrapper"> |
|
236 |
[% |
|
237 |
INCLUDE 'common/toggle_panel.html' |
|
238 |
block_name='panel_1' |
|
239 |
toggle_class='panel_1' |
|
240 |
display_status='closed' |
|
241 |
button_closed=LxERP.t8('Show Create new Variants') |
|
242 |
button_open=LxERP.t8('Hide Create new Variants') |
|
243 |
%] |
|
244 |
</div> |
|
245 |
|
|
246 |
[% BLOCK panel_2 %] |
|
247 |
<h3> [% LxERP.t8("Convert Part to Variant") %] </h3> |
|
248 |
<table class="tbl-list"> |
|
249 |
<caption> |
|
250 |
[% 'Variant Properties' | $T8 %] |
|
251 |
</caption> |
|
252 |
<thead> |
|
253 |
<tr> |
|
254 |
[% FOREACH variant_property = SELF.part.variant_properties %] |
|
255 |
<th>[% variant_property.displayable_name | html %]</th> |
|
256 |
[% END %] |
|
257 |
</tr> |
|
258 |
</thead> |
|
259 |
<tbody> |
|
260 |
<tr> |
|
261 |
[% FOREACH variant_property = SELF.part.variant_properties %] |
|
262 |
<td style="vertical-align:top"> |
|
263 |
[% L.select_tag("convert_part.variant_properties." _ variant_property.id _ ".selected_property_value_id", |
|
264 |
variant_property.property_values, |
|
265 |
title_key='displayable_name', value_key='id', |
|
266 |
size=variant_property.property_values.size, |
|
267 |
) %] |
|
268 |
</td> |
|
269 |
[% END %] |
|
270 |
</tr> |
|
271 |
</tbody> |
|
272 |
</table> |
|
273 |
<label for="convert_part.id">[% 'Part for conversion:' | $T8 %]</label> |
|
274 |
[% P.part.picker('convert_part.id', undef, |
|
275 |
part_type=SELF.part.part_type, variant_type='single', |
|
276 |
placeholder=(LxERP.t8('Type:') _ ' ' _ LxERP.t8(SELF.part.part_type)), |
|
277 |
class="wi-wide" |
|
278 |
) %] |
|
279 |
<br> |
|
280 |
<br> |
|
281 |
[% L.button_tag('kivi.Part.convert_part_to_variant();', LxERP.t8("Convert")) %] |
|
282 |
[% END %] |
|
283 |
|
|
284 |
<div class="wrapper"> |
|
285 |
[% |
|
286 |
INCLUDE 'common/toggle_panel.html' |
|
287 |
block_name='panel_2' |
|
288 |
toggle_class='panel_2' |
|
289 |
display_status='closed' |
|
290 |
button_closed=LxERP.t8('Show Convert Part to Variant') |
|
291 |
button_open=LxERP.t8('Hide Convert Part to Variant') |
|
292 |
%] |
|
293 |
</div> |
|
294 |
|
|
295 |
<div class="wrapper"> |
|
296 |
[% |
|
297 |
INCLUDE 'common/toggle_panel.html' |
|
298 |
block_name='panel_3' |
|
299 |
toggle_class='panel_3' |
|
300 |
display_status='open' |
|
301 |
button_closed=LxERP.t8('Show Edit Properties') |
|
302 |
button_open=LxERP.t8('Hide Edit Properties') |
|
303 |
%] |
|
304 |
</div> |
|
305 |
|
|
306 |
[% BLOCK panel_3 %] |
|
307 | 213 |
<h3> [% LxERP.t8("Edit Properties") %] </h3> |
308 | 214 |
<table id="variant_property_table" class="tbl-list"> |
309 | 215 |
<caption> |
... | ... | |
437 | 343 |
[% L.button_tag('kivi.Part.update_variants_properties();', LxERP.t8("Update Variants")) %] |
438 | 344 |
[% END %] |
439 | 345 |
|
346 |
<div class="wrapper"> |
|
347 |
[% |
|
348 |
INCLUDE 'common/toggle_panel.html' |
|
349 |
block_name='panel_1' |
|
350 |
toggle_class='panel_1' |
|
351 |
display_status='closed' |
|
352 |
button_closed=LxERP.t8('Show Edit Properties') |
|
353 |
button_open=LxERP.t8('Hide Edit Properties') |
|
354 |
%] |
|
355 |
</div> |
|
356 |
|
|
357 |
[% BLOCK panel_2 %] |
|
358 |
<h3> [% LxERP.t8("Create new Variants") %] </h3> |
|
359 |
<div class="wrapper"> |
|
360 |
[% FOREACH variant_property = SELF.part.variant_properties %] |
|
361 |
<div class="col input-panel" style="min-width:fit-content;"> |
|
362 |
<h4>[% variant_property.displayable_name | html %]</h4> |
|
363 |
[% L.select_tag("variant_properties." _ variant_property.id _ ".selected_property_value_ids[]", |
|
364 |
variant_property.property_values, |
|
365 |
title_key='displayable_name', value_key='id', |
|
366 |
id="selected_property_value_ids_" _ variant_property.id, |
|
367 |
multiple=1, |
|
368 |
) %] |
|
369 |
[% L.multiselect2side( |
|
370 |
"selected_property_value_ids_" _ variant_property.id, |
|
371 |
labelsx=LxERP.t8("All Property Values"), |
|
372 |
labeldx=LxERP.t8("Selected Property Values") |
|
373 |
) %] |
|
374 |
</div> |
|
375 |
[% END %] |
|
376 |
</div> |
|
377 |
[% L.button_tag('kivi.Part.create_variants();', LxERP.t8("Create Variants with selected Values")) %] |
|
378 |
[% END %] |
|
379 |
|
|
380 |
<div class="wrapper"> |
|
381 |
[% |
|
382 |
INCLUDE 'common/toggle_panel.html' |
|
383 |
block_name='panel_2' |
|
384 |
toggle_class='panel_2' |
|
385 |
display_status='closed' |
|
386 |
button_closed=LxERP.t8('Show Create new Variants') |
|
387 |
button_open=LxERP.t8('Hide Create new Variants') |
|
388 |
%] |
|
389 |
</div> |
|
390 |
|
|
391 |
[% BLOCK panel_3 %] |
|
392 |
<h3> [% LxERP.t8("Convert Part to Variant") %] </h3> |
|
393 |
<table class="tbl-list"> |
|
394 |
<caption> |
|
395 |
[% 'Variant Properties' | $T8 %] |
|
396 |
</caption> |
|
397 |
<thead> |
|
398 |
<tr> |
|
399 |
[% FOREACH variant_property = SELF.part.variant_properties %] |
|
400 |
<th>[% variant_property.displayable_name | html %]</th> |
|
401 |
[% END %] |
|
402 |
</tr> |
|
403 |
</thead> |
|
404 |
<tbody> |
|
405 |
<tr> |
|
406 |
[% FOREACH variant_property = SELF.part.variant_properties %] |
|
407 |
<td style="vertical-align:top"> |
|
408 |
[% L.select_tag("convert_part.variant_properties." _ variant_property.id _ ".selected_property_value_id", |
|
409 |
variant_property.property_values, |
|
410 |
title_key='displayable_name', value_key='id', |
|
411 |
size=variant_property.property_values.size, |
|
412 |
) %] |
|
413 |
</td> |
|
414 |
[% END %] |
|
415 |
</tr> |
|
416 |
</tbody> |
|
417 |
</table> |
|
418 |
<label for="convert_part.id">[% 'Part for conversion:' | $T8 %]</label> |
|
419 |
[% P.part.picker('convert_part.id', undef, |
|
420 |
part_type=SELF.part.part_type, variant_type='single', |
|
421 |
placeholder=(LxERP.t8('Type:') _ ' ' _ LxERP.t8(SELF.part.part_type)), |
|
422 |
class="wi-wide" |
|
423 |
) %] |
|
424 |
<br> |
|
425 |
<br> |
|
426 |
[% L.button_tag('kivi.Part.convert_part_to_variant();', LxERP.t8("Convert")) %] |
|
427 |
[% END %] |
|
428 |
|
|
429 |
<div class="wrapper"> |
|
430 |
[% |
|
431 |
INCLUDE 'common/toggle_panel.html' |
|
432 |
block_name='panel_3' |
|
433 |
toggle_class='panel_3' |
|
434 |
display_status='closed' |
|
435 |
button_closed=LxERP.t8('Show Convert Part to Variant') |
|
436 |
button_open=LxERP.t8('Hide Convert Part to Variant') |
|
437 |
%] |
|
438 |
</div> |
|
439 |
|
|
440 | 440 |
</div> |
441 | 441 |
|
442 | 442 |
|
Auch abrufbar als: Unified diff
Varianten: 'Eigenschaften bearbeiten' nach oben schieben und schließen