Feat: Multiplayer sessions added using CRUD database.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<!-- Input Number with +/- buttons -->
|
||||
<!-- requires:
|
||||
Product product
|
||||
Form_Product form - with product id attribute for accessing input element attribute
|
||||
int tmp_quantity - placeholder
|
||||
-->
|
||||
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
|
||||
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}" style="flex: none;">
|
||||
<div class="btn-decrement" {{ model.ATTR_ID_PRODUCT }}="{{ product.id_product }}" {{ model.ATTR_ID_PERMUTATION }}="{{ permutation.id_permutation }}" {{ model.ATTR_FORM_TYPE }}="{{ form.form_type }}">-</div>
|
||||
</div>
|
||||
<div class="{{ model.FLAG_CONTAINER }}-input {{ model.FLAG_COLUMN }}" style="flex: none;">
|
||||
{{ form.quantity(value=tmp_quantity) }} <!-- model.attr_id_product=product.id -->
|
||||
</div>
|
||||
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}" style="flex: none;">
|
||||
<div class="btn-increment" {{ model.ATTR_ID_PRODUCT }}="{{ product.id_product }}" {{ model.ATTR_ID_PERMUTATION }}="{{ permutation.id_permutation }}" {{ model.ATTR_FORM_TYPE }}="{{ form.form_type }}">+</div>
|
||||
</div>
|
||||
</div>
|
||||
1
templates/components/common/inputs/_option_blank.html
Normal file
1
templates/components/common/inputs/_option_blank.html
Normal file
@@ -0,0 +1 @@
|
||||
<option value="0">Select</option>
|
||||
14
templates/components/common/inputs/_td_active.html
Normal file
14
templates/components/common/inputs/_td_active.html
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
{% with _active = (active is not defined or active or active is none) %}
|
||||
<td class="{{ model.FLAG_ACTIVE }}">
|
||||
{% set attribute_text = model.ATTR_VALUE_CURRENT + '=' + _active | lower + ' ' + model.ATTR_VALUE_PREVIOUS + '=' + _active | lower + '' %}
|
||||
{% if _active %}
|
||||
{% set class_name = '' %}
|
||||
{% include 'components/common/buttons/_icon_trash.html' %}
|
||||
{% else %}
|
||||
{% set class_name = model.FLAG_ACTIVE %}
|
||||
{% include 'components/common/buttons/_icon_add.html' %}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endwith %}
|
||||
17
templates/components/common/inputs/_td_notes.html
Normal file
17
templates/components/common/inputs/_td_notes.html
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
{% with _notes = none if (is_blank_row or notes is not defined) else notes %}
|
||||
{% set value_formatted = model.format_null_string_as_blank(notes) %}
|
||||
{% set value_previous = value_formatted | escape %}
|
||||
|
||||
<td class="{{ model.FLAG_NOTES }}">
|
||||
<!--
|
||||
<input type="text"
|
||||
class="{{ model.FLAG_NOTES }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
|
||||
-->
|
||||
<textarea class="{{ model.FLAG_NOTES }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ value_previous }}" {{ model.ATTR_VALUE_PREVIOUS }}="{{ value_previous }}"
|
||||
>{{ value_formatted }}</textarea>
|
||||
</td>
|
||||
{% endwith %}
|
||||
Reference in New Issue
Block a user