-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- translating titles for form submit button + missed files.
- Loading branch information
Showing
6 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% set sizes = | ||
{ | ||
'1/12': 'form-col form-w-1/12', | ||
'2/12': 'form-col form-w-2/12', | ||
'3/12': 'form-col form-w-3/12', | ||
'4/12': 'form-col form-w-4/12', | ||
'5/12': 'form-col form-w-5/12', | ||
'6/12': 'form-col form-w-6/12', | ||
'7/12': 'form-col form-w-7/12', | ||
'8/12': 'form-col form-w-8/12', | ||
'9/12': 'form-col form-w-9/12', | ||
'10/12': 'form-col form-w-10/12', | ||
'12/12': 'form-col form-w-full', | ||
'12': 'form-col form-w-full' | ||
} | ||
%} | ||
|
||
<div class="form-wrapper {% if fieldset.size %}{{ sizes[fieldset.size] }}{% else %}{{ sizes[12] }}{% endif %}"> | ||
{% if fieldset.form.tabs %} | ||
<nav class="form-tabs__nav"> | ||
<div class="form-tabs__nav__links"> | ||
{% for key, section in fieldset.form.tabs %} | ||
<a href="javascript:;" class="form-tabs__nav__link {% if key == 'main' %} form-tabs__nav__link--active {% endif %}">{{ tr(section.title) }}</a> | ||
{% endfor %} | ||
</div> | ||
</nav> | ||
<div class="form-tabs"> | ||
{% include "plugins/form/fieldsets/multi-form.html" %} | ||
</div> | ||
{% else %} | ||
{% include "plugins/form/fieldsets/single-form.html" %} | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<form action="{% if fieldset.form.action %}{{ path_for(fieldset.form.action) }}{% endif %}" | ||
method="{% if fieldset.form.method %}{{ fieldset.form.method }}{% else %}post{% endif %}" | ||
{% if fieldset.form.id %}id="form-{{ fieldset.form.id }}"{% endif %} | ||
{% if fieldset.form.name %}id="form-{{ fieldset.form.name }}"{% endif %}> | ||
{{ csrf() }} | ||
<input type="hidden" id="form-save-action" name="form-save-action" value="form-save-action"> | ||
{% for key, tab in fieldset.form.tabs %} | ||
<div class="form-tabs__content {% if key == 'main' %} form-tabs__content--active {% endif %}"> | ||
<div class="form-row"> | ||
{% for element, properties in fieldset['form']['tabs'][key]['fields'] %} | ||
|
||
{% set field_name = form.getElementName(element) %} | ||
{% set field_id = form.getElementID(element) %} | ||
{% set field_value = form.getElementValue(element, values, properties) %} | ||
|
||
{% include "plugins/form/fieldsets/fields/fields.html" %} | ||
|
||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
{% if fieldset.form.submit %} | ||
<input type="submit" value="{{ tr(fieldset.form.submit.title) }}" class="form-button {{ fieldset.form.submit.class }}"> | ||
{% endif %} | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<form action="{% if fieldset.form.action %}{{ path_for(fieldset.form.action) }}{% endif %}" | ||
method="{% if fieldset.form.method %}{{ fieldset.form.method }}{% else %}post{% endif %}" | ||
{% if fieldset.form.id %}id="form-{{ fieldset.form.id }}"{% endif %} | ||
{% if fieldset.form.name %}id="form-{{ fieldset.form.name }}"{% endif %}> | ||
{{ csrf() }} | ||
<input type="hidden" id="form-save-action" name="form-save-action" value="form-save-action"> | ||
<div class="form-row"> | ||
{% for element, properties in fieldset.form.fields %} | ||
|
||
{% set field_name = form.getElementName(element) %} | ||
{% set field_id = form.getElementID(element) %} | ||
{% set field_value = form.getElementValue(element, values, properties) %} | ||
|
||
{% include "plugins/form/fieldsets/fields/fields.html" %} | ||
{% endfor %} | ||
</div> | ||
{% if fieldset.form.submit %} | ||
<input type="submit" value="{{ tr(fieldset.form.submit.title) }}" class="form-button {{ fieldset.form.submit.class }}"> | ||
{% endif %} | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters