Browse Source

[product] add description3,4 and 5

refactoring
Nico Schottelius 3 years ago
parent
commit
79a705bc94
  1. 12
      models/product.ini
  2. 27
      templates/product.html

12
models/product.ini

@ -24,6 +24,18 @@ type = markdown
label = Description 2
type = markdown
[fields.description3]
label = Description 3
type = markdown
[fields.description4]
label = Description 4
type = markdown
[fields.description5]
label = Description 5
type = markdown
[fields.link]
label = Link
type = url

27
templates/product.html

@ -49,6 +49,15 @@
</div>
</div>
</div>
{% if this.description3 %}
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
{{ this.description3 }}
</div>
</div>
</div>
{% endif %}
<div class="container">
<div class="row mb-3">
<div class="col-md-4">
@ -87,6 +96,15 @@
</div>
</div>
<hr/>
{% if this.description4 %}
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
{{ this.description4 }}
</div>
</div>
</div>
{% endif %}
<div class="container">
<div class="row mb-3">
@ -100,4 +118,13 @@
</div>
</div>
</div>
{% if this.description5 %}
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
{{ this.description5 }}
</div>
</div>
</div>
{% endif %}
{% endblock %}

Loading…
Cancel
Save