diff --git a/_includes/file.html b/_includes/file.html index 14744bf..053b95e 100644 --- a/_includes/file.html +++ b/_includes/file.html @@ -2,7 +2,9 @@ {%- 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 -%} +{%- assign accept = include.field[1].accept -%} + +
diff --git a/_includes/form/image.html b/_includes/form/image.html new file mode 120000 index 0000000..5b78d22 --- /dev/null +++ b/_includes/form/image.html @@ -0,0 +1 @@ +../image.html \ No newline at end of file diff --git a/_includes/form/tel.html b/_includes/form/tel.html new file mode 120000 index 0000000..875b65a --- /dev/null +++ b/_includes/form/tel.html @@ -0,0 +1 @@ +../tel.html \ No newline at end of file diff --git a/_includes/image.html b/_includes/image.html new file mode 100644 index 0000000..75b12e3 --- /dev/null +++ b/_includes/image.html @@ -0,0 +1,32 @@ +{%- 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] -%} + + + +
+ + + + + {%- if help -%} + + {{ help }} + + {%- endif -%} +
diff --git a/_includes/tel.html b/_includes/tel.html new file mode 100644 index 0000000..a92aa57 --- /dev/null +++ b/_includes/tel.html @@ -0,0 +1 @@ +{% include input.html field=field %}