You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.5KB

  1. {% trans_default_domain 'lcshop' %}
  2. {% import '@LcShop/backend/default/block/macros.html.twig' as macros %}
  3. <div class="row">
  4. {{ macros.startCard(8, 'ProductFamily.propertyMain', 'light', true) }}
  5. <table class="table table-bordered">
  6. <thead>
  7. <tr>
  8. {#<th style="width: 10px">#</th>#}
  9. <th style="width: 40%">{{ 'field.default.property'|trans({}, 'lcshop') }}</th>
  10. <th style="width: 60%">{{ 'field.default.propertyValue'|trans({}, 'lcshop') }}</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. <tr>
  15. <td>{{ form_widget(form.propertyNoveltyExpirationDateActive, {"attr" : {'v-model' : 'propertyNoveltyExpirationDateActive'}}) }}</td>
  16. <td>
  17. <div v-show="propertyNoveltyExpirationDateActive == true">
  18. {{ form_widget(form.propertyNoveltyExpirationDate, {"attr" : {'v-model' : 'propertyNoveltyExpirationDate'}}) }}
  19. </div>
  20. </td>
  21. </tr>
  22. <tr>
  23. <td>{{ form_widget(form.propertyQualityLabelActive, {"attr" : {'v-model' : 'propertyQualityLabelActive' } }) }}</td>
  24. <td>
  25. <div class="form-widget" v-show="propertyQualityLabelActive == true">
  26. {{ form_widget(form.qualityLabels) }}
  27. </div>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td>{{ form_widget(form.propertyLargeVolume) }}</td>
  32. <td></td>
  33. </tr>
  34. </tbody>
  35. </table>
  36. {{ macros.endCard(true) }}
  37. {{ macros.startCard(0, 'ProductFamily.propertySecondary', 'light', true) }}
  38. <table class="table table-bordered">
  39. <thead>
  40. <tr>
  41. {#<th style="width: 10px">#</th>#}
  42. <th style="width: 40%">{{ 'field.default.property'|trans({}, 'lcshop') }}</th>
  43. <th style="width: 60%">{{ 'field.default.propertyValue'|trans({}, 'lcshop') }}</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <tr v-show="typeExpirationDate != null && typeExpirationDate != ''">
  48. <td><label style="text-transform: uppercase">${typeExpirationDate}</label></td>
  49. <td>{{ form_widget(form.propertyExpirationDate, {'attr' : {'v-model' : 'propertyExpirationDate'}}) }}</td>
  50. </tr>
  51. {{ macros.autoresizeField(form.propertyAllergens) }}
  52. {{ macros.autoresizeField(form.propertyComposition) }}
  53. {{ macros.autoresizeField(form.propertyFragrances) }}
  54. {{ macros.autoresizeField(form.propertyQuantity) }}
  55. {{ macros.autoresizeField(form.propertyWeight) }}
  56. {{ macros.autoresizeField(form.propertyCharacteristics) }}
  57. {{ macros.autoresizeField(form.propertyPackaging) }}
  58. {{ macros.autoresizeField(form.propertyAlcoholLevel) }}
  59. {{ macros.autoresizeField(form.propertyVariety) }}
  60. {{ macros.autoresizeField(form.propertyFeature) }}
  61. </tbody>
  62. </table>
  63. {{ macros.endCard() }}
  64. {{ macros.startCard(4, 'ProductFamily.property', 'light') }}
  65. <div class="col">
  66. {{ form_label(form.typeExpirationDate) }}
  67. {% for field in form.typeExpirationDate %}
  68. {{ form_widget(field, {"attr" : {"v-model" : 'typeExpirationDate'}}) }}
  69. {% endfor %}
  70. <div class="form-group" v-show="typeExpirationDate != null && typeExpirationDate != ''">
  71. {{ form_label(form.behaviorExpirationDate) }}
  72. {% for field in form.behaviorExpirationDate %}
  73. {{ form_widget(field, {"attr" : {"v-model" : 'behaviorExpirationDate'}}) }}
  74. {% endfor %}
  75. </div>
  76. </div>
  77. {{ macros.endCard() }}
  78. </div>