Subir archivos y texto
This commit is contained in:
parent
ae624fde2b
commit
86f317d91f
6 changed files with 38 additions and 0 deletions
1
_includes/content.html
Normal file
1
_includes/content.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{% include text.html field=field %}
|
33
_includes/file.html
Normal file
33
_includes/file.html
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{%- 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] -%}
|
||||||
|
{%- assign autocomplete = include.field[1].autocomplete -%}
|
||||||
|
|
||||||
|
<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"
|
||||||
|
{% if autocomplete %}
|
||||||
|
autocomplete="{{ autocomplete }}"
|
||||||
|
{% 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>
|
1
_includes/form/content.html
Symbolic link
1
_includes/form/content.html
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../content.html
|
1
_includes/form/file.html
Symbolic link
1
_includes/form/file.html
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../file.html
|
1
_includes/form/markdown_content.html
Symbolic link
1
_includes/form/markdown_content.html
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../markdown_content.html
|
1
_includes/markdown_content.html
Normal file
1
_includes/markdown_content.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{% include text.html field=field %}
|
Loading…
Reference in a new issue