sutty-donaciones-jekyll-theme 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/_config.yml +50 -0
  3. data/_data/en.yml +7 -0
  4. data/_data/es.yml +8 -0
  5. data/_data/forms/contacto.yml +40 -0
  6. data/_data/layouts/boton.yml +9 -1
  7. data/_data/layouts/portada.yml +11 -3
  8. data/_includes/boolean.html +30 -0
  9. data/_includes/contact.html +19 -0
  10. data/_includes/email.html +1 -0
  11. data/_includes/form/boolean.html +1 -0
  12. data/_includes/form/email.html +1 -0
  13. data/_includes/form/hidden.html +1 -0
  14. data/_includes/form/input.html +1 -0
  15. data/_includes/form/number.html +1 -0
  16. data/_includes/form/predefined_array.html +1 -0
  17. data/_includes/form/section.html +1 -0
  18. data/_includes/form/separator.html +1 -0
  19. data/_includes/form/string.html +1 -0
  20. data/_includes/form/submit.html +1 -0
  21. data/_includes/form/text.html +1 -0
  22. data/_includes/form/url.html +1 -0
  23. data/_includes/hidden.html +5 -0
  24. data/_includes/input.html +33 -0
  25. data/_includes/navbar.html +2 -2
  26. data/_includes/number.html +1 -0
  27. data/_includes/predefined_array.html +39 -0
  28. data/_includes/section.html +1 -0
  29. data/_includes/separator.html +1 -0
  30. data/_includes/string.html +3 -0
  31. data/_includes/submit.html +1 -0
  32. data/_includes/text.html +32 -0
  33. data/_includes/url.html +1 -0
  34. data/_layouts/default.html +2 -0
  35. data/_layouts/home.html +2 -2
  36. data/_layouts/layout.html +15 -0
  37. data/assets/css/styles.scss +1 -0
  38. metadata +38 -2
  39. data/_includes/boolean.html +0 -1
  40. data/_includes/email.html +0 -1
  41. data/_includes/form/boolean.html +0 -25
  42. data/_includes/form/email.html +0 -1
  43. data/_includes/form/input.html +0 -24
  44. data/_includes/form/number.html +0 -1
  45. data/_includes/form/predefined_array.html +0 -30
  46. data/_includes/form/section.html +0 -1
  47. data/_includes/form/separator.html +0 -1
  48. data/_includes/form/string.html +0 -1
  49. data/_includes/form/submit.html +0 -1
  50. data/_includes/form/text.html +0 -24
  51. data/_includes/form/url.html +0 -1
  52. data/_includes/input.html +0 -1
  53. data/_includes/number.html +0 -1
  54. data/_includes/predefined_array.html +0 -1
  55. data/_includes/section.html +0 -1
  56. data/_includes/separator.html +0 -1
  57. data/_includes/string.html +0 -1
  58. data/_includes/submit.html +0 -1
  59. data/_includes/text.html +0 -1
  60. data/_includes/url.html +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ef9dbb555d69b574afa81daf403af2b37e1343482857877d0434623c1267433
4
- data.tar.gz: 6284daab5634547707060752165556c1288f6c5b957c70dd6ae867975098c13d
3
+ metadata.gz: 3dbca4b23da4014711715556ed461729ecdbb12fb245ab7f26fe15b6d350d892
4
+ data.tar.gz: d5330ccbf7ec4e5eece4df504cf616e4cf931863941b315f59ca8379a592a8bc
5
5
  SHA512:
6
- metadata.gz: e42f639be33cd61359c4dd80fb514738eaf67744c65f9681cca00b8254975b7fd8e4c4925d79bd8765d4040e865f3bf350359ae11a3fa9152268cd04629ca5fb
7
- data.tar.gz: 7e0777a7b9c62069a6d09f1b35a450b5d4d92f35ae74cdca260ad9b75133d8c3b2f915e693c9d1592d0753fd06d3d43380280ca2f906f016389fe98a4ff1cd07
6
+ metadata.gz: 1b7d06287cbe6c690d149b7b93fd34cdc34bf7b21e907f7b9f1f626159567be28c72f87f75d0f388bfff1262f84978aaf52c21708e9b320583beef638206ad63
7
+ data.tar.gz: c315806e64e48fddc8e2c192cd0fe5da65a6a6071fb7245e562cc394a8d3eab18d028afb629b237c634e0b8c4fa121b543912d95db2589f6027a2a79b0dc6457
@@ -0,0 +1,50 @@
1
+ title: Donaciones
2
+ plugins:
3
+ - jekyll-locales
4
+ - jekyll-archives
5
+ - jekyll-relative-urls
6
+ - jekyll-feed
7
+ - jekyll-seo-tag
8
+ - jekyll-images
9
+ - jekyll-include-cache
10
+ # Agregar node_modules a la lista de directorios donde SASS busca
11
+ # archivos. Podríamos haber agregado solo "node_modules/bootstrap/scss"
12
+ # pero queríamos dejarlo abierto para poder cambiar de framework o
13
+ # llamar a varios a la vez.
14
+ sass:
15
+ load_paths:
16
+ - node_modules
17
+ # Opciones para generar las URLs de las páginas. Por defecto Jekyll
18
+ # crea /categoria/año/mes/dia/titulo.html que me parece innecesariamente
19
+ # larga.
20
+ #
21
+ # Con esto generamos URLs relativas (sin / al principio) y solo el
22
+ # titulo convertido en slug. El slug es la versión limpia del título,
23
+ # sin espacios ni mayusculas, a veces sin tildes.
24
+ #
25
+ # En realidad Jekyll es un poco confuso acá porque :title es el nombre
26
+ # del archivo usado en _posts/yyyy-mm-dd-slug.md y no el titulo
27
+ # slugificado. De todas formas Sutty se encarga de que coincidan.
28
+ permalink: ":title/"
29
+ # El nombre de la plantilla
30
+ # theme: sutty-base-jekyll-theme
31
+ # La lista de resoluciones de imágenes disponibles para jekyll-images.
32
+ # Estamos usando los puntos de quiebre de bootstrap.
33
+ #
34
+ # https://getbootstrap.com/docs/4.4/layout/overview/#responsive-breakpoints
35
+ images:
36
+ sizes:
37
+ - 576
38
+ - 768
39
+ - 992
40
+ - 1140
41
+ locales:
42
+ - es
43
+ # Esto va a ser heredado por jekyll-data
44
+ jekyll-archives:
45
+ enabled:
46
+ - layout
47
+ permalinks:
48
+ layout: ':name/'
49
+ layouts:
50
+ layout: layout
@@ -0,0 +1,7 @@
1
+ ---
2
+ menu:
3
+ items:
4
+ - title: 'Articles'
5
+ href: 'post/'
6
+ footer:
7
+ description: 'Made with [Sutty](https://sutty.nl/). [Make your own campaign!](https://panel.sutty.nl/)'
@@ -0,0 +1,8 @@
1
+ ---
2
+ date: '%d/%m/%Y'
3
+ menu:
4
+ items:
5
+ - title: 'Artículos'
6
+ href: 'post/'
7
+ footer:
8
+ description: 'Hecho con [Sutty](https://sutty.nl/). [¡Armá tu campaña de donaciones!](https://panel.sutty.nl/)'
@@ -0,0 +1,40 @@
1
+ ---
2
+ pronouns:
3
+ type: "string"
4
+ autocomplete: "sex"
5
+ label:
6
+ es: "Pronombres"
7
+ en: "Pronouns"
8
+ placeholder:
9
+ es: "¿Qué pronombres usás?"
10
+ en: "What are your pronouns?"
11
+ name:
12
+ type: "string"
13
+ autocomplete: "name"
14
+ label:
15
+ es: "Nombre"
16
+ en: "Name"
17
+ placeholder:
18
+ es: "Nombre elegido, pseudónimo, alias"
19
+ en: "Choosen name, pseudonym, alias"
20
+ from:
21
+ type: "email"
22
+ autocomplete: "email"
23
+ label:
24
+ es: "Correo electrónico"
25
+ en: "E-mail address"
26
+ body:
27
+ type: text
28
+ label:
29
+ es: Mensaje
30
+ en: Message
31
+ consent:
32
+ type: boolean
33
+ label:
34
+ es: Acepto las políticas de privacidad
35
+ en: I agree to the privacy policy
36
+ submit:
37
+ type: submit
38
+ label:
39
+ es: Enviar
40
+ en: Send
@@ -16,7 +16,7 @@ payment_url:
16
16
  en: 'Payment button link'
17
17
  help:
18
18
  es: 'El provedor del sistema de pago tiene que proporcionarte un link al botón de pago'
19
- es: 'The system payment provider must give you the link to the payment button'
19
+ en: 'The system payment provider must give you the link to the payment button'
20
20
  color:
21
21
  type: 'color'
22
22
  label:
@@ -25,3 +25,11 @@ color:
25
25
  help:
26
26
  es: ''
27
27
  en: ''
28
+ order:
29
+ type: 'order'
30
+ label:
31
+ es: 'Orden'
32
+ en: 'Order'
33
+ help:
34
+ es: 'La posición del artículo en la lista de artículos'
35
+ en: 'The post position in the posts list'
@@ -16,14 +16,14 @@ description:
16
16
  en: 'Content warning or campaign description'
17
17
  help:
18
18
  es: |
19
- Resumen del contenido del contenido de la campaña, que también usarán redes
19
+ Resumen del contenido de la campaña, que también usarán redes
20
20
  sociales y buscadores. Si la campaña está relacionada con violencias y/u otros
21
21
  temas sensibles, te invitamos a usar este campo como alerta de
22
22
  contenido, para que las personas puedan determinar cuándo quieren
23
23
  abrirlo.
24
24
  en: |
25
25
  Summary of the campaign contents, also used by social media and search
26
- engines. If the campaign is related to violence and/or other sensitive
26
+ engines. If the campaign is related to violence and/or other sensitive
27
27
  topics, we invite you to use it as a content warning, so others
28
28
  can decide when they want to read it.
29
29
  author:
@@ -32,7 +32,7 @@ author:
32
32
  es: 'Autores'
33
33
  en: 'Authors'
34
34
  help:
35
- es: 'Quiénes son parte de esta campañao'
35
+ es: 'Quiénes son parte de esta campaña'
36
36
  en: 'Who is part of this campaign'
37
37
  image:
38
38
  type: 'image'
@@ -66,3 +66,11 @@ content:
66
66
  help:
67
67
  es: 'Motivaciones, plazos, formas de donación o cualquier dato relevante'
68
68
  en: 'Motivations, timeframes, donation types or any relevant information'
69
+ order:
70
+ type: 'order'
71
+ label:
72
+ es: 'Orden'
73
+ en: 'Order'
74
+ help:
75
+ es: 'La posición del artículo en la lista de artículos'
76
+ en: 'The post position in the posts list'
@@ -0,0 +1,30 @@
1
+ {%- assign name = include.field[0] -%}
2
+ {%- assign id = include.field[1].id | default: name -%}
3
+ {%- assign label = include.field[1].label[site.locale] -%}
4
+ {%- assign help = include.field[1].help[site.locale] -%}
5
+ {%- assign autocomplete = include.field[1].autocomplete -%}
6
+
7
+ <div class="form-check text-left">
8
+ <input
9
+ {% if help %}
10
+ aria-describedby="help-{{ id }}"
11
+ {% endif %}
12
+ {% if include.field[1].required %}
13
+ required
14
+ {% endif %}
15
+ type="checkbox"
16
+ name="{{ name }}"
17
+ id="{{ id }}"
18
+ {% if autocomplete %}
19
+ autocomplete="{{ autocomplete }}"
20
+ {% endif %}
21
+ class="form-check-input" />
22
+
23
+ <label class="form-check-label" for="{{ id }}">{{ label }}</label>
24
+
25
+ {%- if help -%}
26
+ <small id="help-{{ id }}" class="form-text">
27
+ {{ help }}
28
+ </small>
29
+ {%- endif -%}
30
+ </div>
@@ -0,0 +1,19 @@
1
+ {% comment %}
2
+ Esta imagen obtiene una cookie desde la API de Sutty para autorizar el
3
+ envío del formulario.
4
+ {% endcomment %}
5
+ <img class="d-none" src="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/cookie.png" />
6
+
7
+ {% comment %}
8
+ El formulario se envía a la API. La definición del formulario se
9
+ encuentra en _data/forms/contacto.yml
10
+ {% endcomment %}
11
+ <form action="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/contacto"
12
+ method="post">
13
+ {%- for field in include.form -%}
14
+ {% assign template = field[1].type | append: '.html' %}
15
+ <div class="col{{ field[1].col | default: 12 | prepend: '-' }}">
16
+ {% include {{ template }} field=field %}
17
+ </div>
18
+ {%- endfor -%}
19
+ </form>
@@ -0,0 +1 @@
1
+ {% include input.html field=field %}
@@ -0,0 +1 @@
1
+ ../boolean.html
@@ -0,0 +1 @@
1
+ ../email.html
@@ -0,0 +1 @@
1
+ ../hidden.html
@@ -0,0 +1 @@
1
+ ../input.html
@@ -0,0 +1 @@
1
+ ../number.html
@@ -0,0 +1 @@
1
+ ../predefined_array.html
@@ -0,0 +1 @@
1
+ ../section.html
@@ -0,0 +1 @@
1
+ ../separator.html
@@ -0,0 +1 @@
1
+ ../string.html
@@ -0,0 +1 @@
1
+ ../submit.html
@@ -0,0 +1 @@
1
+ ../text.html
@@ -0,0 +1 @@
1
+ ../url.html
@@ -0,0 +1,5 @@
1
+ {%- assign name = include.field[0] -%}
2
+ {%- assign id = include.field[1].id | default: name -%}
3
+ {%- assign value = include.field[1].value -%}
4
+
5
+ <input type="hidden" value="{{ value }}" name="{{ name }}" id="{{ id }}" />
@@ -0,0 +1,33 @@
1
+ {%- assign name = include.field[0] -%}
2
+ {%- assign id = include.field[1].id | default: name -%}
3
+ {%- assign label = include.field[1].label[site.locale] -%}
4
+ {%- assign help = include.field[1].help[site.locale] -%}
5
+ {%- assign autocomplete = include.field[1].autocomplete -%}
6
+
7
+ <div class="form-group">
8
+ <label for="{{ id }}">
9
+ {{ label }}
10
+ {% if include.field[1].required %}*{% endif %}
11
+ </label>
12
+
13
+ <input
14
+ {% if help %}
15
+ aria-describedby="help-{{ id }}"
16
+ {% endif %}
17
+ {% if include.field[1].required %}
18
+ required
19
+ {% endif %}
20
+ type="{{ include.field[1].type }}"
21
+ name="{{ name }}"
22
+ id="{{ id }}"
23
+ {% if autocomplete %}
24
+ autocomplete="{{ autocomplete }}"
25
+ {% endif %}
26
+ class="form-control" />
27
+
28
+ {%- if help -%}
29
+ <small id="help-{{ id }}" class="form-text">
30
+ {{ help }}
31
+ </small>
32
+ {%- endif -%}
33
+ </div>
@@ -1,6 +1,6 @@
1
- <nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block" role="navigation" aria-label="{{ site.i18n.menu.title }}">
1
+ <nav class="navbar navbar-expand-lg navbar-light bg-light d-print-none" role="navigation" aria-label="{{ site.i18n.menu.title }}">
2
2
  <a class="navbar-brand" href="">
3
- {% include_cached logo.html %}
3
+ {{ site.title }}
4
4
  </a>
5
5
 
6
6
  {% comment %}
@@ -0,0 +1 @@
1
+ {% include input.html field=field %}
@@ -0,0 +1,39 @@
1
+ {%- assign name = include.field[0] -%}
2
+ {%- assign id = include.field[1].id | default: name -%}
3
+ {%- assign label = include.field[1].label[site.locale] -%}
4
+ {%- assign help = include.field[1].help[site.locale] -%}
5
+ {%- assign autocomplete = include.field[1].autocomplete -%}
6
+
7
+ <div class="form-group">
8
+ <label for="{{ id }}">
9
+ {{ label }}
10
+ {% if include.field[1].required %}*{% endif %}
11
+ </label>
12
+
13
+ <select
14
+ {% if help %}
15
+ aria-describedby="help-{{ id }}"
16
+ {% endif %}
17
+ {% if include.field[1].required %}
18
+ required
19
+ {% endif %}
20
+ name="{{ name }}"
21
+ id="{{ id }}"
22
+ {% if autocomplete %}
23
+ autocomplete="{{ autocomplete }}"
24
+ {% endif %}
25
+ class="form-control">
26
+
27
+ <option value="" selected></option>
28
+
29
+ {%- for option in include.field[1].values -%}
30
+ <option value="{{ option }}">{{ option }}</option>
31
+ {%- endfor -%}
32
+ </select>
33
+
34
+ {%- if help -%}
35
+ <small id="help-{{ id }}" class="form-text">
36
+ {{ help }}
37
+ </small>
38
+ {%- endif -%}
39
+ </div>
@@ -0,0 +1 @@
1
+ <h2 id="{{ include.field[0] }}">{{ include.field[1].title }}</h2>
@@ -0,0 +1 @@
1
+ <hr/>
@@ -0,0 +1,3 @@
1
+ {% assign f = field %}
2
+ {% assign f.type = 'text' %}
3
+ {% include input.html field=f %}
@@ -0,0 +1 @@
1
+ <input type="submit" class="btn btn-success" value="{{ include.field[1].label[site.locale] }}" />
@@ -0,0 +1,32 @@
1
+ {%- assign name = include.field[0] -%}
2
+ {%- assign id = include.field[1].id | default: name -%}
3
+ {%- assign label = include.field[1].label[site.locale] -%}
4
+ {%- assign help = include.field[1].help[site.locale] -%}
5
+ {%- assign autocomplete = include.field[1].autocomplete -%}
6
+
7
+ <div class="form-group">
8
+ <label for="{{ id }}">
9
+ {% if include.field[1].required %}*{% endif %}
10
+ {{ label }}
11
+ </label>
12
+
13
+ <textarea
14
+ {% if help %}
15
+ aria-describedby="help-{{ id }}"
16
+ {% endif %}
17
+ {% if include.field[1].required %}
18
+ required
19
+ {% endif %}
20
+ name="{{ name }}"
21
+ id="{{ id }}"
22
+ {% if autocomplete %}
23
+ autocomplete="{{ autocomplete }}"
24
+ {% endif %}
25
+ class="form-control"></textarea>
26
+
27
+ {%- if .help -%}
28
+ <small id="help-{{ id }}" class="form-text">
29
+ {{ help }}
30
+ </small>
31
+ {%- endif -%}
32
+ </div>
@@ -0,0 +1 @@
1
+ {% include input.html field=field %}
@@ -14,6 +14,7 @@
14
14
  {% feed_meta %}
15
15
  </head>
16
16
  <body>
17
+ {% include navbar.html %}
17
18
  <main class="container">
18
19
  <div class="row justify-content-center d-print-block">
19
20
  <div class="col">
@@ -21,5 +22,6 @@
21
22
  </div>
22
23
  </div>
23
24
  </main>
25
+ <footer class="text-center">{{ site.i18n.footer.description | markdownify }}</footer>
24
26
  </body>
25
27
  </html>
@@ -5,7 +5,7 @@ layout: default
5
5
  {%- assign portada = site.posts | where: 'layout', 'portada' | first -%}
6
6
  {%- assign botones = site.posts | where: 'layout', 'boton' -%}
7
7
 
8
- <section>
8
+ <section class="mt-5 mb-5">
9
9
  <h1>{{ portada.title }}</h1>
10
10
  <p class="lead">{{ portada.author | join: ', ' }} &mdash; {{ portada.description }}</p>
11
11
 
@@ -21,7 +21,7 @@ layout: default
21
21
  </div>
22
22
  </section>
23
23
 
24
- <section class="row justify-content-center">
24
+ <section class="row justify-content-center mb-5">
25
25
  <div class="col-md-6">
26
26
  {% for boton in botones %}
27
27
  <a
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% for post in page.posts %}
6
+ <div>
7
+ <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
8
+ <time datetime="{{ post.date | date_to_xmlschema }}">
9
+ {%- assign date_format = site.i18n.date | default: "%b %-d, %Y" -%}
10
+ {{ post.date | date: date_format }}
11
+ </time>
12
+
13
+ <p class="lead">{{ post.description }}</p>
14
+ </div>
15
+ {% endfor %}
@@ -12,6 +12,7 @@ $theme-colors: (
12
12
 
13
13
  @import "fonts";
14
14
 
15
+ $enable-rounded: false;
15
16
  $font-family-sans-serif: Saira, sans-serif;
16
17
  $primary: #f206f9;
17
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-donaciones-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-02 00:00:00.000000000 Z
12
+ date: 2020-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -109,6 +109,34 @@ dependencies:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: '1.1'
112
+ - !ruby/object:Gem::Dependency
113
+ name: jekyll-locales
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '0.1'
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '0.1'
126
+ - !ruby/object:Gem::Dependency
127
+ name: sutty-archives
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '2.2'
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '2.2'
112
140
  - !ruby/object:Gem::Dependency
113
141
  name: bundler
114
142
  requirement: !ruby/object:Gem::Requirement
@@ -149,13 +177,19 @@ extra_rdoc_files:
149
177
  files:
150
178
  - LICENSE.txt
151
179
  - README.md
180
+ - _config.yml
181
+ - _data/en.yml
182
+ - _data/es.yml
183
+ - _data/forms/contacto.yml
152
184
  - _data/layouts/boton.yml
153
185
  - _data/layouts/portada.yml
154
186
  - _data/layouts/post.yml
155
187
  - _includes/boolean.html
188
+ - _includes/contact.html
156
189
  - _includes/email.html
157
190
  - _includes/form/boolean.html
158
191
  - _includes/form/email.html
192
+ - _includes/form/hidden.html
159
193
  - _includes/form/input.html
160
194
  - _includes/form/number.html
161
195
  - _includes/form/predefined_array.html
@@ -165,6 +199,7 @@ files:
165
199
  - _includes/form/submit.html
166
200
  - _includes/form/text.html
167
201
  - _includes/form/url.html
202
+ - _includes/hidden.html
168
203
  - _includes/input.html
169
204
  - _includes/navbar.html
170
205
  - _includes/number.html
@@ -177,6 +212,7 @@ files:
177
212
  - _includes/url.html
178
213
  - _layouts/default.html
179
214
  - _layouts/home.html
215
+ - _layouts/layout.html
180
216
  - _layouts/post.html
181
217
  - _sass/fonts.scss
182
218
  - assets/css/styles.scss
@@ -1 +0,0 @@
1
- _includes/form/boolean.html
@@ -1 +0,0 @@
1
- _includes/form/email.html
@@ -1,25 +0,0 @@
1
- <div class="form-check text-left">
2
- <input
3
- {% if include.field[1].help %}
4
- aria-describedby="help-{{ include.field[0] }}"
5
- {% endif %}
6
- {% if include.field[1].required %}
7
- required
8
- {% endif %}
9
- type="checkbox"
10
- name="{{ include.field[0] }}"
11
- id="{{ include.field[1].id | default: include.field[0] }}"
12
- class="form-check-input" />
13
-
14
- <label
15
- class="form-check-label"
16
- for="{{ include.field[1].id | default: include.field[0] }}">
17
- {{ include.field[1].label }}
18
- </label>
19
-
20
- {%- if include.field[1].help -%}
21
- <small id="help-{{ include.field[0] }}" class="form-text">
22
- {{ include.field[1].help }}
23
- </small>
24
- {%- endif -%}
25
- </div>
@@ -1 +0,0 @@
1
- {% include input.html field=field %}
@@ -1,24 +0,0 @@
1
- <div class="form-group">
2
- <label for="{{ include.field[1].id | default: include.field[0] }}">
3
- {% if include.field[1].required %}*{% endif %}
4
- {{ include.field[1].label }}
5
- </label>
6
-
7
- <input
8
- {% if include.field[1].help %}
9
- aria-describedby="help-{{ include.field[0] }}"
10
- {% endif %}
11
- {% if include.field[1].required %}
12
- required
13
- {% endif %}
14
- type="{{ include.field[1].type }}"
15
- name="{{ include.field[0] }}"
16
- id="{{ include.field[1].id | default: include.field[0] }}"
17
- class="form-control" />
18
-
19
- {%- if include.field[1].help -%}
20
- <small id="help-{{ include.field[0] }}" class="form-text">
21
- {{ include.field[1].help }}
22
- </small>
23
- {%- endif -%}
24
- </div>
@@ -1 +0,0 @@
1
- {% include input.html field=field %}
@@ -1,30 +0,0 @@
1
- <div class="form-group">
2
- <label for="{{ include.field[1].id | default: include.field[0] }}">
3
- {% if include.field[1].required %}*{% endif %}
4
- {{ include.field[1].label }}
5
- </label>
6
-
7
- <select
8
- {% if include.field[1].help %}
9
- aria-describedby="help-{{ include.field[0] }}"
10
- {% endif %}
11
- {% if include.field[1].required %}
12
- required
13
- {% endif %}
14
- name="{{ include.field[0] }}"
15
- id="{{ include.field[1].id | default: include.field[0] }}"
16
- class="form-control">
17
-
18
- <option value="" selected></option>
19
-
20
- {%- for option in include.field[1].values -%}
21
- <option value="{{ option }}">{{ option }}</option>
22
- {%- endfor -%}
23
- </select>
24
-
25
- {%- if include.field[1].help -%}
26
- <small id="help-{{ include.field[0] }}" class="form-text">
27
- {{ include.field[1].help }}
28
- </small>
29
- {%- endif -%}
30
- </div>
@@ -1 +0,0 @@
1
- <h2 id="{{ include.field[0] }}">{{ include.field[1].title }}</h2>
@@ -1 +0,0 @@
1
- <hr/>
@@ -1 +0,0 @@
1
- {% include input.html field=field %}
@@ -1 +0,0 @@
1
- <input type="submit" class="btn btn-success" value="{{ include.field[1].label }}" />
@@ -1,24 +0,0 @@
1
- <div class="form-group">
2
- <label for="{{ include.field[0] }}">
3
- {% if include.field[1].required %}*{% endif %}
4
- {{ include.field[1].label }}
5
- </label>
6
-
7
- <textarea
8
- {% if include.field[1].help %}
9
- aria-describedby="help-{{ include.field[0] }}"
10
- {% endif -%}
11
- {% if include.field[1].required %}
12
- required
13
- {% endif %}
14
- name="{{ include.field[0] }}"
15
- id="{{ include.field[1].id | default: include.field[0] }}"
16
- class="form-control">
17
- </textarea>
18
-
19
- {%- if include.field[1].help -%}
20
- <small id="help-{{ include.field[0] }}" class="form-text">
21
- {{ include.field[1].help }}
22
- </small>
23
- {%- endif -%}
24
- </div>
@@ -1 +0,0 @@
1
- {% include input.html field=field %}
@@ -1 +0,0 @@
1
- _includes/form/input.html
@@ -1 +0,0 @@
1
- _includes/form/number.html
@@ -1 +0,0 @@
1
- _includes/form/predefined_array.html
@@ -1 +0,0 @@
1
- _includes/form/section.html
@@ -1 +0,0 @@
1
- _includes/form/separator.html
@@ -1 +0,0 @@
1
- _includes/form/string.html
@@ -1 +0,0 @@
1
- _includes/form/submit.html
@@ -1 +0,0 @@
1
- _includes/form/text.html
@@ -1 +0,0 @@
1
- _includes/form/url.html