2020-06-16 22:46:26 +00:00
|
|
|
{%- assign name = include.field[0] -%}
|
|
|
|
{%- assign id = include.field[1].id | default: name -%}
|
|
|
|
{%- assign label = include.field[1]['path'].label[site.locale] -%}
|
|
|
|
{%- assign help = include.field[1]['path'].help[site.locale] -%}
|
2020-08-20 22:51:51 +00:00
|
|
|
{%- assign accept = include.field[1].accept -%}
|
|
|
|
|
|
|
|
<label>{{ label }}</label>
|
2020-06-16 22:46:26 +00:00
|
|
|
|
|
|
|
<div class="custom-file">
|
|
|
|
<input
|
|
|
|
{% if help %}
|
|
|
|
aria-describedby="help-{{ id }}"
|
|
|
|
{% endif %}
|
|
|
|
{% if include.field[1].required %}
|
|
|
|
required
|
|
|
|
{% endif %}
|
|
|
|
type="{{ include.field[1].type }}"
|
|
|
|
name="{{ name }}[path]"
|
|
|
|
id="{{ id }}_path"
|
2020-08-20 22:51:51 +00:00
|
|
|
{% if accept %}
|
|
|
|
accept="{{ accept }}"
|
2020-06-16 22:46:26 +00:00
|
|
|
{% endif %}
|
|
|
|
class="custom-file-input" />
|
|
|
|
|
|
|
|
<label for="{{ id }}_path" class="custom-file-label">
|
|
|
|
{{ label }}
|
|
|
|
{% if include.field[1].required %}*{% endif %}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
{%- if help -%}
|
|
|
|
<small id="help-{{ id }}" class="form-text">
|
|
|
|
{{ help }}
|
|
|
|
</small>
|
|
|
|
{%- endif -%}
|
|
|
|
</div>
|