@moreonion/foundist 2.1.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/.vscode/settings.json +16 -0
  2. package/README.md +5 -9
  3. package/package.json +6 -31
  4. package/src/html/basic-action-page-cover-1col.html +27 -27
  5. package/src/html/basic-action-page-cover-2col-reversed.html +27 -27
  6. package/src/html/basic-action-page-cover-2col.html +27 -27
  7. package/src/html/basic-action-page-cover-banner.html +27 -27
  8. package/src/html/basic-action-page-reversed.html +22 -23
  9. package/src/html/basic-action-page-with-banner-reversed.html +27 -27
  10. package/src/html/basic-action-page-with-banner.html +27 -27
  11. package/src/html/basic-action-page-with-callouts.html +28 -28
  12. package/src/html/basic-action-page.html +22 -23
  13. package/src/html/build-index.html +9 -0
  14. package/src/html/dev-index.html +49 -0
  15. package/src/html/donation-action-page.html +20 -20
  16. package/src/html/e2t-action-page.html +25 -28
  17. package/src/html/includes/accordion.html +25 -25
  18. package/src/html/includes/basic-form-with-errors.html +28 -26
  19. package/src/html/includes/basic-form.html +11 -7
  20. package/src/html/includes/cookiebar.html +5 -5
  21. package/src/html/includes/donate-form.html +11 -11
  22. package/src/html/includes/e2t-single-form.html +29 -27
  23. package/src/html/includes/form-items/_macros.html +76 -0
  24. package/src/html/includes/form-items/checkboxes.html +18 -18
  25. package/src/html/includes/form-items/country-select-options.html +253 -0
  26. package/src/html/includes/form-items/donation-amount.html +63 -64
  27. package/src/html/includes/form-items/donation-interval.html +14 -13
  28. package/src/html/includes/form-items/fake-field.html +2 -2
  29. package/src/html/includes/form-items/fieldset.html +9 -7
  30. package/src/html/includes/form-items/file-upload.html +7 -7
  31. package/src/html/includes/form-items/giftaid.html +13 -13
  32. package/src/html/includes/form-items/inline-radios.html +14 -14
  33. package/src/html/includes/form-items/opt-in-checkbox.html +5 -5
  34. package/src/html/includes/form-items/opt-in-radios.html +7 -7
  35. package/src/html/includes/form-items/payment-icons.html +17 -17
  36. package/src/html/includes/form-items/paymethod-selector.html +24 -24
  37. package/src/html/includes/form-items/radios-with-error.html +8 -8
  38. package/src/html/includes/form-items/radios.html +14 -14
  39. package/src/html/includes/form-items/select-with-error.html +257 -257
  40. package/src/html/includes/form-items/textarea.html +2 -2
  41. package/src/html/includes/form-items/webform-steps.html +13 -13
  42. package/src/html/includes/language-switcher.html +10 -10
  43. package/src/html/includes/login-form.html +5 -3
  44. package/src/html/includes/menu.html +3 -3
  45. package/src/html/includes/overlay.html +4 -4
  46. package/src/html/includes/pagination.html +13 -13
  47. package/src/html/includes/pgbar-thermometer.html +8 -8
  48. package/src/html/includes/pgbar.html +5 -5
  49. package/src/html/includes/recent-supporters-agregated.html +32 -32
  50. package/src/html/includes/recent-supporters-comments.html +31 -31
  51. package/src/html/includes/recent-supporters-empty.html +3 -3
  52. package/src/html/includes/recent-supporters.html +26 -26
  53. package/src/html/includes/share-buttons.html +30 -28
  54. package/src/html/includes/sticky-button.html +1 -1
  55. package/src/html/includes/teasers.html +25 -5
  56. package/src/html/includes/toggle-element-show-more.html +3 -3
  57. package/src/html/includes/toggle-element-toggle.html +2 -2
  58. package/src/html/login-page.html +5 -7
  59. package/src/html/snippets-demo.html +13 -15
  60. package/src/html/teaser-page.html +7 -7
  61. package/src/html/templates/action-page-cover-1col.html +12 -83
  62. package/src/html/templates/action-page-cover-banner.html +15 -85
  63. package/src/html/templates/action-page-reversed.html +16 -82
  64. package/src/html/templates/action-page.html +21 -80
  65. package/src/html/templates/base.html +31 -0
  66. package/src/html/templates/page.html +93 -0
  67. package/src/html/templates/share-page.html +3 -0
  68. package/src/html/thank-you-page-cover-1col.html +14 -14
  69. package/src/html/thank-you-page-cover-2col.html +17 -13
  70. package/src/html/thank-you-page-cover-banner.html +14 -14
  71. package/src/html/thank-you-page-with-banner.html +14 -14
  72. package/src/html/thank-you-page.html +15 -15
  73. package/src/html/typography-static-page.html +18 -20
  74. package/src/js/foundist.js +6 -1
  75. package/src/scss/_settings.scss +3 -3
  76. package/src/scss/layout/_cover.scss +1 -1
  77. package/src/html/empty-action-page.html +0 -29
  78. package/src/html/empty-static-page.html +0 -21
  79. package/src/html/includes/form-items/country-select.html +0 -258
  80. package/src/html/includes/form-items/email.html +0 -4
  81. package/src/html/includes/form-items/first-name.html +0 -4
  82. package/src/html/includes/form-items/last-name.html +0 -4
  83. package/src/html/includes/form-items/password.html +0 -5
  84. package/src/html/includes/form-items/submit-button.html +0 -2
  85. package/src/html/includes/form-items/text-with-description.html +0 -5
  86. package/src/html/includes/form-items/text-with-error.html +0 -5
  87. package/src/html/includes/teaser.html +0 -17
  88. package/src/html/index.html +0 -51
  89. package/src/html/templates/action-page-cover-2col-reversed.html +0 -97
  90. package/src/html/templates/action-page-cover-2col.html +0 -97
  91. package/src/html/templates/action-page-with-banner-reversed.html +0 -91
  92. package/src/html/templates/action-page-with-banner.html +0 -91
  93. package/src/html/templates/static-page-cover-1col.html +0 -80
  94. package/src/html/templates/static-page-cover-2col.html +0 -88
  95. package/src/html/templates/static-page-cover-banner.html +0 -81
  96. package/src/html/templates/static-page-with-banner.html +0 -77
  97. package/src/html/templates/static-page.html +0 -73
  98. package/src/html/templates/teaser-page.html +0 -73
@@ -1,48 +1,48 @@
1
- <extends src="templates/action-page-with-banner.html">
1
+ {% extends "src/html/templates/action-page.html" %}
2
2
 
3
- <block name="page-title">Take action now!</block>
3
+ {% set layout = "banner" %}
4
4
 
5
- <block name="banner">
5
+ {% block page_title %}Take action now!{% endblock %}
6
+
7
+ {% block banner %}
6
8
  <img src="http://placekitten.com/1280/588" alt="test image with cats" crossorigin="">
7
- </block>
9
+ {% endblock %}
8
10
 
9
- <block name="top">
11
+ {% block top %}
10
12
  <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
11
- </block>
13
+ {% endblock %}
12
14
 
13
- <block name="form-intro">
15
+ {% block form_intro %}
14
16
  <h2>Signup now!</h2>
15
17
  <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
16
- </block>
18
+ {% endblock %}
17
19
 
18
- <block name="progress-bar">
19
- <include src="pgbar.html"></include>
20
- </block>
20
+ {% block progress_bar %}
21
+ {% include "src/html/includes/pgbar.html" %}
22
+ {% endblock %}
21
23
 
22
- <block name="form">
23
- <include src="basic-form.html"></include>
24
- </block>
24
+ {% block form %}
25
+ {% include "src/html/includes/basic-form.html" %}
26
+ {% endblock %}
25
27
 
26
- <block name="recent-supporters">
27
- <include src="recent-supporters.html"></include>
28
- </block>
28
+ {% block recent_supporters %}
29
+ {% include "src/html/includes/recent-supporters.html" %}
30
+ {% endblock %}
29
31
 
30
- <block name="content-top">
32
+ {% block content_top %}
31
33
  <div class="media-stretch">
32
- <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
34
+ <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
33
35
  </div>
34
- </block>
36
+ {% endblock %}
35
37
 
36
- <block name="content">
38
+ {% block content %}
37
39
  <h2>Cougar British shorthair turkish angora</h2>
38
40
  <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
39
41
  <p>A very wise cat once said:</p>
40
42
  <blockquote><p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p></blockquote>
41
43
  <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
42
- </block>
43
-
44
- <block name="footer">
45
- <include src="menu.html"></include>
46
- </block>
44
+ {% endblock %}
47
45
 
48
- </extends>
46
+ {% block footer %}
47
+ {% include "src/html/includes/menu.html" %}
48
+ {% endblock %}
@@ -1,48 +1,48 @@
1
- <extends src="templates/action-page.html">
1
+ {% extends "src/html/templates/action-page.html" %}
2
2
 
3
- <block name="messages">
3
+ {% set layout = "default" %}
4
+
5
+ {% block page_title %}Take action now!{% endblock %}
6
+
7
+ {% block messages %}
4
8
  <div class="callout success" data-closable="">
5
- <h2 class="show-for-sr">Status message</h2>
6
- Some message with a <a href="#">link</a>.
7
- <button class="close-button" aria-label="Dismiss alert" type="button" data-close=""></button>
9
+ <h2 class="show-for-sr">Status message</h2>
10
+ Some message with a <a href="#">link</a>.
11
+ <button class="close-button" aria-label="Dismiss alert" type="button" data-close=""></button>
8
12
  </div>
9
- </block>
13
+ {% endblock %}
10
14
 
11
- <block name="page-title">Take action now!</block>
12
-
13
- <block name="top">
15
+ {% block top %}
14
16
  <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
15
- </block>
17
+ {% endblock %}
16
18
 
17
- <block name="form-intro">
19
+ {% block form_intro %}
18
20
  <h2>Signup now!</h2>
19
21
  <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
20
- </block>
22
+ {% endblock %}
21
23
 
22
- <block name="progress-bar">
23
- <include src="pgbar.html"></include>
24
- </block>
24
+ {% block progress_bar %}
25
+ {% include "src/html/includes/pgbar.html" %}
26
+ {% endblock %}
25
27
 
26
- <block name="form">
27
- <include src="basic-form-with-errors.html"></include>
28
- </block>
28
+ {% block form %}
29
+ {% include "src/html/includes/basic-form-with-errors.html" %}
30
+ {% endblock %}
29
31
 
30
- <block name="recent-supporters">
31
- <include src="recent-supporters.html"></include>
32
- </block>
32
+ {% block recent_supporters %}
33
+ {% include "src/html/includes/recent-supporters.html" %}
34
+ {% endblock %}
33
35
 
34
- <block name="content-top">
36
+ {% block content_top %}
35
37
  <div class="media-stretch">
36
- <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
38
+ <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
37
39
  </div>
38
- </block>
40
+ {% endblock %}
39
41
 
40
- <block name="content">
42
+ {% block content %}
41
43
  <h2>Cougar British shorthair turkish angora</h2>
42
44
  <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
43
45
  <p>A very wise cat once said:</p>
44
46
  <blockquote><p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p></blockquote>
45
47
  <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
46
- </block>
47
-
48
- </extends>
48
+ {% endblock %}
@@ -1,41 +1,40 @@
1
- <extends src="templates/action-page.html">
1
+ {% extends "src/html/templates/action-page.html" %}
2
2
 
3
- <block name="page-title">Take action now!</block>
3
+ {% set layout = "default" %}
4
4
 
5
- <block name="top">
5
+ {% block page_title %}Take action now!{% endblock %}
6
+
7
+ {% block top %}
6
8
  <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
7
- </block>
9
+ {% endblock %}
8
10
 
9
- <block name="form-intro">
11
+ {% block form_intro %}
10
12
  <h2>Signup now!</h2>
11
13
  <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
12
- </block>
14
+ {% endblock %}
13
15
 
14
- <block name="progress-bar">
15
- <include src="pgbar.html"></include>
16
- </block>
16
+ {% block progress_bar %}
17
+ {% include "src/html/includes/pgbar.html" %}
18
+ {% endblock %}
17
19
 
18
- <block name="form">
19
- <include src="basic-form.html"></include>
20
- </block>
20
+ {% block form %}
21
+ {% include "src/html/includes/basic-form.html" %}
22
+ {% endblock %}
21
23
 
22
- <block name="recent-supporters">
23
- <include src="recent-supporters.html"></include>
24
- </block>
24
+ {% block recent_supporters %}
25
+ {% include "src/html/includes/recent-supporters.html" %}
26
+ {% endblock %}
25
27
 
26
- <block name="content-top">
28
+ {% block content_top %}
27
29
  <div class="media-stretch">
28
- <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
30
+ <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
29
31
  </div>
30
- </block>
32
+ {% endblock %}
31
33
 
32
- <block name="content">
34
+ {% block content %}
33
35
  <h2>Cougar British shorthair turkish angora</h2>
34
36
  <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
35
37
  <p>A very wise cat once said:</p>
36
38
  <blockquote><p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p></blockquote>
37
39
  <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
38
-
39
- </block>
40
-
41
- </extends>
40
+ {% endblock %}
@@ -0,0 +1,9 @@
1
+ {% extends "./templates/base.html" %}
2
+
3
+ {% block page %}
4
+ <section id="main">
5
+ <div class="grid-container narrow">
6
+ <h1>Impact Stack theme assets for {{ settings.site_name }}</h1>
7
+ </div>
8
+ </section>
9
+ {% endblock %}
@@ -0,0 +1,49 @@
1
+ {% extends "./templates/page.html" %}
2
+
3
+ {% block page_title %}{{ settings.site_name }}{% endblock %}
4
+
5
+ {% block content %}
6
+ <p>Documentation for <a href="https://get.foundation/sites/docs/">Foundation</a></p>
7
+ <h2>Example pages</h2>
8
+ <ul class="no-bullet">
9
+ <li><a href="src/html/basic-action-page.html">Basic action page</a></li>
10
+ <li><a href="src/html/e2t-action-page.html">Email to target page</a></li>
11
+ <li><a href="src/html/donation-action-page.html">Donation page</a></li>
12
+ <li><a href="src/html/thank-you-page.html">Thank you page</a></li>
13
+ <li><a href="src/html/thank-you-page.html#overlay">Thank you page with overlay</a></li>
14
+ <li><a href="src/html/login-page.html">Login page</a></li>
15
+ <li><a href="src/html/teaser-page.html">Teasers</a></li>
16
+ <li><a href="src/html/basic-action-page-with-callouts.html">Basic action page with callout messages</a></li>
17
+ <li><a href="src/html/typography-static-page.html">Typographic elements</a></li>
18
+ <li><a href="src/html/snippets-demo.html">Snippets demo</a></li>
19
+ </ul>
20
+ <h3>Layout variations</h3>
21
+ <h4 class="h6">A: Standard (2 columns) &ensp;<small>default</small></h4>
22
+ <ul class="no-bullet">
23
+ <li><a href="src/html/basic-action-page.html">Basic action page</a></li>
24
+ <li><a href="src/html/basic-action-page-reversed.html">Basic action page reversed</a></li>
25
+ <li><a href="src/html/thank-you-page.html">Thank you page</a></li>
26
+ </ul>
27
+ <h4 class="h6">B: Banner image (2 columns) &ensp;<small>banner</small></h4>
28
+ <ul class="no-bullet">
29
+ <li><a href="src/html/basic-action-page-with-banner.html">Basic action page</a></li>
30
+ <li><a href="src/html/basic-action-page-with-banner-reversed.html">Basic action page reversed</a></li>
31
+ <li><a href="src/html/thank-you-page-with-banner.html">Thank you page</a></li>
32
+ </ul>
33
+ <h4 class="h6">C: Fixed background image (2 columns) &ensp;<small>cover-2col</small></h4>
34
+ <ul class="no-bullet">
35
+ <li><a href="src/html/basic-action-page-cover-2col.html">Basic action page</a></li>
36
+ <li><a href="src/html/basic-action-page-cover-2col-reversed.html">Basic action page reversed</a></li>
37
+ <li><a href="src/html/thank-you-page-cover-2col.html">Thank you page</a></li>
38
+ </ul>
39
+ <h4 class="h6">D: Fixed banner image (2 columns) &ensp;<small>cover-banner</small></h4>
40
+ <ul class="no-bullet">
41
+ <li><a href="src/html/basic-action-page-cover-banner.html">Basic action page</a></li>
42
+ <li><a href="src/html/thank-you-page-cover-banner.html">Thank you page</a></li>
43
+ </ul>
44
+ <h4 class="h6">E: Fixed background image (1 column) &ensp;<small>cover-1col</small></h4>
45
+ <ul class="no-bullet">
46
+ <li><a href="src/html/basic-action-page-cover-1col.html">Basic action page</a></li>
47
+ <li><a href="src/html/thank-you-page-cover-1col.html">Thank you page</a></li>
48
+ </ul>
49
+ {% endblock %}
@@ -1,33 +1,33 @@
1
- <extends src="templates/action-page.html">
1
+ {% extends "src/html/templates/action-page.html" %}
2
2
 
3
- <block name="page-title">Donate now!</block>
3
+ {% set layout = "default" %}
4
4
 
5
- <block name="top">
5
+ {% block page_title %}Donate now!{% endblock %}
6
+
7
+ {% block top %}
6
8
  <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
7
- </block>
9
+ {% endblock %}
8
10
 
9
- <block name="form-intro">
10
- <h2>Donate now</h2>
11
+ {% block form_intro %}
12
+ <h2>Signup now!</h2>
11
13
  <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
12
- </block>
14
+ {% endblock %}
13
15
 
14
- <block name="progress-bar">
15
- <include src="pgbar-thermometer.html"></include>
16
- </block>
16
+ {% block progress_bar %}
17
+ {% include "src/html/includes/pgbar-thermometer.html" %}
18
+ {% endblock %}
17
19
 
18
- <block name="form">
19
- <include src="donate-form.html"></include>
20
- </block>
20
+ {% block form %}
21
+ {% include "src/html/includes/donate-form.html" %}
22
+ {% endblock %}
21
23
 
22
- <block name="content-top">
24
+ {% block content_top %}
23
25
  <div class="media-stretch">
24
- <img src="http://placekitten.com/860/460" alt="test image with cats" crossorigin="">
26
+ <img src="http://placekitten.com/860/460" alt="test image with cats" crossorigin="">
25
27
  </div>
26
- </block>
28
+ {% endblock %}
27
29
 
28
- <block name="content">
30
+ {% block content %}
29
31
  <h2>Cougar British shorthair turkish angora</h2>
30
32
  <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
31
- </block>
32
-
33
- </extends>
33
+ {% endblock %}
@@ -1,43 +1,40 @@
1
- <extends src="templates/action-page.html">
1
+ {% extends "src/html/templates/action-page.html" %}
2
2
 
3
- <block name="page-title">Email your MP!</block>
3
+ {% set layout = "default" %}
4
4
 
5
- <block name="top">
5
+ {% block page_title %}Email your MP!{% endblock %}
6
+
7
+ {% block top %}
6
8
  <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
7
- </block>
9
+ {% endblock %}
8
10
 
9
- <block name="form-intro">
10
- <h2>Send your message now!</h2>
11
+ {% block form_intro %}
12
+ <h2>Signup now!</h2>
11
13
  <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
12
- </block>
13
-
14
- <block name="progress-bar">
15
- </block>
14
+ {% endblock %}
16
15
 
17
- <block name="form">
18
- <include src="e2t-single-form.html"></include>
19
- </block>
16
+ {% block form %}
17
+ {% include "src/html/includes/e2t-single-form.html" %}
18
+ {% endblock %}
20
19
 
21
- <block name="recent-supporters">
22
- <include src="recent-supporters-comments.html"></include>
23
- </block>
20
+ {% block recent_supporters %}
21
+ {% include "src/html/includes/recent-supporters-comments.html" %}
22
+ {% endblock %}
24
23
 
25
- <block name="content-top">
24
+ {% block content_top %}
26
25
  <div class="media-stretch">
27
- <img src="http://placekitten.com/860/460" alt="test image with cats" crossorigin="">
26
+ <img src="http://placekitten.com/860/460" alt="test image with cats" crossorigin="">
28
27
  </div>
29
- </block>
28
+ {% endblock %}
30
29
 
31
- <block name="content">
30
+ {% block content %}
32
31
  <h2>Cougar British shorthair turkish angora</h2>
33
32
  <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
34
33
  <div class="letter">
35
- <h5>Give cats a chance</h5>
36
- <p>A very wise cat once said: ignore the squirrels, you'll never catch them anyway. Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor.</p>
37
- <p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p>
38
- <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
39
- <p>Yours,<br>Kitty the Cat</p>
34
+ <h5>Give cats a chance</h5>
35
+ <p>A very wise cat once said: ignore the squirrels, you'll never catch them anyway. Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor.</p>
36
+ <p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p>
37
+ <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
38
+ <p>Yours,<br>Kitty the Cat</p>
40
39
  </div>
41
- </block>
42
-
43
- </extends>
40
+ {% endblock %}
@@ -1,31 +1,31 @@
1
1
  <ul class="accordion" data-accordion data-allow-all-closed="true" data-multi-expand="true">
2
- <li class="accordion-item is-active" data-accordion-item>
3
- <a href="#" class="accordion-title">Accordion 1</a>
2
+ <li class="accordion-item is-active" data-accordion-item>
3
+ <a href="#" class="accordion-title">Accordion 1</a>
4
4
 
5
- <div class="accordion-content" data-tab-content>
6
- <p>Panel 1. Lorem ipsum dolor</p>
7
- <p>Starts in the open state due to using the <code>is-active</code> state class.</p>
8
- </div>
9
- </li>
5
+ <div class="accordion-content" data-tab-content>
6
+ <p>Panel 1. Lorem ipsum dolor</p>
7
+ <p>Starts in the open state due to using the <code>is-active</code> state class.</p>
8
+ </div>
9
+ </li>
10
10
 
11
- <li class="accordion-item" data-accordion-item>
12
- <a href="#" class="accordion-title">Accordion 2 has a very long and not very interesting title (but it wraps the line to see how it is wrapping)</a>
11
+ <li class="accordion-item" data-accordion-item>
12
+ <a href="#" class="accordion-title">Accordion 2 has a very long and not very interesting title (but it wraps the line to see how it is wrapping)</a>
13
13
 
14
- <div class="accordion-content" data-tab-content>
15
- <p>Panel 2. Lorem ipsum dolor</p>
16
- <a href="#">Nowhere to Go</a>
17
- </div>
18
- </li>
14
+ <div class="accordion-content" data-tab-content>
15
+ <p>Panel 2. Lorem ipsum dolor</p>
16
+ <a href="#">Nowhere to Go</a>
17
+ </div>
18
+ </li>
19
19
 
20
- <li class="accordion-item" data-accordion-item>
21
- <a href="#" class="accordion-title">Accordion 3</a>
20
+ <li class="accordion-item" data-accordion-item>
21
+ <a href="#" class="accordion-title">Accordion 3</a>
22
22
 
23
- <div class="accordion-content" data-tab-content>
24
- <p>Panel 3. Lorem ipsum dolor</p>
25
- <ol>
26
- <li>This is an ordered list</li>
27
- <li>It is the last item in the accordion container</li>
28
- </ol>
29
- </div>
30
- </li>
31
- </ul>
23
+ <div class="accordion-content" data-tab-content>
24
+ <p>Panel 3. Lorem ipsum dolor</p>
25
+ <ol>
26
+ <li>This is an ordered list</li>
27
+ <li>It is the last item in the accordion container</li>
28
+ </ol>
29
+ </div>
30
+ </li>
31
+ </ul>
@@ -1,28 +1,30 @@
1
+ {% from "./form-items/_macros.html" import input, select, button %}
2
+
1
3
  <div id="form">
2
- <!-- serverside error -->
3
- <div class="callout alert" data-closable="">
4
- <h2 class="show-for-sr">Error message</h2>
5
- <ul>
6
- <li>First name field is required.</li>
7
- <li>Last name field is required.</li>
8
- <li>Email address field is required.</li>
9
- <li>Do you want to receive our newsletter? field is required.</li>
10
- </ul>
11
- <button class="close-button" aria-label="Dismiss alert" type="button" data-close=""></button>
12
- </div>
13
- <!-- client side error that’s not displayed on the field -->
14
- <div class="messages error clientside-error">
15
- <ul>
16
- <li>
17
- <label for="email" generated="true" class="error">The value in Email address is not a valid email address.</label>
18
- </li>
19
- </ul>
20
- </div>
21
- <!-- form with clientside validation errors on individual fields -->
22
- <form method="post" accept-charset="UTF-8" novalidate="novalidate">
23
- <include src="form-items/text-with-error.html"></include>
24
- <include src="form-items/select-with-error.html"></include>
25
- <include src="form-items/radios-with-error.html"></include>
26
- <include src="form-items/submit-button.html" locals='{"value": "Take action now!"}'></include>
27
- </form>
4
+ <!-- serverside error -->
5
+ <div class="callout alert" data-closable="">
6
+ <h2 class="show-for-sr">Error message</h2>
7
+ <ul>
8
+ <li>First name field is required.</li>
9
+ <li>Last name field is required.</li>
10
+ <li>Email address field is required.</li>
11
+ <li>Do you want to receive our newsletter? field is required.</li>
12
+ </ul>
13
+ <button class="close-button" aria-label="Dismiss alert" type="button" data-close=""></button>
14
+ </div>
15
+ <!-- client side error that’s not displayed on the field -->
16
+ <div class="messages error clientside-error">
17
+ <ul>
18
+ <li>
19
+ <label for="email" generated="true" class="error">The value in Email address is not a valid email address.</label>
20
+ </li>
21
+ </ul>
22
+ </div>
23
+ <!-- form with clientside validation errors on individual fields -->
24
+ <form method="post" accept-charset="UTF-8" novalidate="novalidate">
25
+ {{ input("Textfield", error="Some error message for this field.") }}
26
+ {{ select("Country", error="That’s not right.", hide_label=true) }}
27
+ {% include "./form-items/radios-with-error.html" %}
28
+ {{ button("Take action now!", class="expanded primary button large")}}
29
+ </form>
28
30
  </div>
@@ -1,9 +1,13 @@
1
+ {% from "./form-items/_macros.html" import input, select, hidden, button %}
2
+
1
3
  <div id="form">
2
- <form method="post" accept-charset="UTF-8" novalidate="novalidate">
3
- <include src="form-items/first-name.html"></include>
4
- <include src="form-items/email.html"></include>
5
- <include src="form-items/country-select.html"></include>
6
- <include src="form-items/opt-in-radios.html"></include>
7
- <include src="form-items/submit-button.html" locals='{"value": "Take action now!"}'></include>
8
- </form>
4
+ <form method="post" accept-charset="UTF-8" novalidate="novalidate">
5
+ {{ input("First name", {size: 60, maxlength: 128, placeholder: "First name"}) }}
6
+ {{ input("Last name", {size: 60, maxlength: 128}) }}
7
+ {{ input("Email address", {type: "email", id: "email", size: 60, required: "required"}) }}
8
+ {{ select("Country", hide_label=true) }}
9
+ {% include "./form-items/opt-in-radios.html" %}
10
+ {{ hidden("token") }}
11
+ {{ button("Take action now!", class="expanded primary button large") }}
12
+ </form>
9
13
  </div>
@@ -1,7 +1,7 @@
1
1
  <section id="cookiebar">
2
- <div class="grid-container">
3
- <p>Cats can’t have cookies! Says who? <a href="#">More info</a></p>
4
- <button data-block class="small secondary button">Meow</button>
5
- <button data-accept class="small button">OK</button>
6
- </div>
2
+ <div class="grid-container">
3
+ <p>Cats can’t have cookies! Says who? <a href="#">More info</a></p>
4
+ <button data-block class="small secondary button">Meow</button>
5
+ <button data-accept class="small button">OK</button>
6
+ </div>
7
7
  </section>
@@ -1,13 +1,13 @@
1
- <div id="form">
2
- <form method="post" accept-charset="UTF-8" novalidate="novalidate">
3
- <include src="form-items/donation-interval.html"></include>
4
- <include src="form-items/donation-amount.html"></include>
5
- <include src="form-items/giftaid.html"></include>
6
- <br>
7
- <include src="form-items/paymethod-selector.html"></include>
8
-
9
- <include src="form-items/submit-button.html" locals='{"value": "Donate now"}'></include>
1
+ {% from "./form-items/_macros.html" import button %}
10
2
 
11
- <include src="form-items/payment-icons.html"></include>
12
- </form>
3
+ <div id="form">
4
+ <form method="post" accept-charset="UTF-8" novalidate="novalidate">
5
+ {% include "./form-items/donation-interval.html" %}
6
+ {% include "./form-items/donation-amount.html" %}
7
+ {% include "./form-items/giftaid.html" %}
8
+ <br>
9
+ {% include "./form-items/paymethod-selector.html" %}
10
+ {{ button("Donate now!", class="expanded primary button large") }}
11
+ {% include "./form-items/payment-icons.html" %}
12
+ </form>
13
13
  </div>