From 7f9d24cbd23e723238bf3ff36ba5f582e49773ec Mon Sep 17 00:00:00 2001 From: f Date: Wed, 2 Jun 2021 15:37:19 -0300 Subject: [PATCH] provincia / estado --- _includes/state.html | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 _includes/state.html diff --git a/_includes/state.html b/_includes/state.html new file mode 100644 index 0000000..11724f4 --- /dev/null +++ b/_includes/state.html @@ -0,0 +1,52 @@ +{% if include.form %} + {%- assign name = include.field[0] | append: ']' | prepend: '[' | prepend: include.form -%} + {%- assign id = include.field[1].id | default: name | replace: '[', '_' | remove: ']' -%} +{% else %} + {%- assign name = include.field[0] -%} + {%- assign id = include.field[1].id | default: name %} +{% endif %} + +{%- assign label = include.field[1].label[site.locale] -%} +{%- assign help = include.field[1].help[site.locale] -%} +{%- assign error = include.field[1].error[site.locale] -%} +{%- assign autocomplete = include.field[1].autocomplete -%} + +
+ + + + + + + {%- if error -%} +
{{ error }}
+ {%- endif -%} + + {%- if help -%} + + {{ help }} + + {%- endif -%} + + + +