|
1 | 1 | <html xmlns="http://www.w3.org/1999/xhtml" |
| 2 | + xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
2 | 3 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
3 | 4 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
4 | | - xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
5 | | - i18n:domain="experimental.doodle" |
6 | 5 | metal:use-macro="context/@@main_template/macros/master" |
7 | | - > |
| 6 | + i18n:domain="experimental.doodle" |
| 7 | +> |
8 | 8 |
|
9 | 9 | <body> |
10 | 10 | <metal:slot fill-slot="main"> |
11 | 11 | <link rel="stylesheet" |
12 | | - tal:attributes="href string:${context/portal_url}/++resource++experimental.doodle/doodle.css" |
13 | | - /> |
| 12 | + tal:attributes=" |
| 13 | + href string:${context/portal_url}/++resource++experimental.doodle/doodle.css; |
| 14 | + " |
| 15 | + /> |
14 | 16 | <div class="doodle-card doodle-answer"> |
15 | 17 | <header class="doodle-header"> |
16 | 18 | <div class="doodle-header-top"> |
17 | 19 | <div class="doodle-header-text"> |
18 | 20 | <h1 tal:content="context/Title">Doodle title</h1> |
19 | | - <p class="doodle-subtitle" i18n:translate=""> |
| 21 | + <p class="doodle-subtitle" |
| 22 | + i18n:translate="" |
| 23 | + > |
20 | 24 | Which dates work for you? |
21 | 25 | </p> |
22 | 26 | </div> |
23 | 27 | <div class="doodle-header-actions" |
24 | 28 | tal:condition="view/is_creator" |
25 | | - > |
| 29 | + > |
26 | 30 | <a class="btn btn-secondary btn-sm" |
27 | | - tal:attributes="href view/results_url" |
| 31 | + tal:attributes=" |
| 32 | + href view/results_url; |
| 33 | + " |
28 | 34 | i18n:translate="" |
29 | | - >View results</a> |
| 35 | + >View results</a> |
30 | 36 | </div> |
31 | 37 | </div> |
32 | 38 | </header> |
33 | 39 |
|
34 | 40 | <div class="doodle-body"> |
35 | 41 | <div class="doodle-share-box" |
36 | 42 | tal:condition="view/is_creator" |
37 | | - > |
38 | | - <p class="doodle-share-label" i18n:translate="">Share this link</p> |
39 | | - <input type="text" |
| 43 | + > |
| 44 | + <p class="doodle-share-label" |
| 45 | + i18n:translate="" |
| 46 | + >Share this link</p> |
| 47 | + <input class="doodle-share-url" |
40 | 48 | readonly="readonly" |
41 | | - class="doodle-share-url" |
42 | | - tal:attributes="value context/absolute_url" |
43 | | - /> |
44 | | - <p class="doodle-share-warning" i18n:translate=""> |
| 49 | + type="text" |
| 50 | + tal:attributes=" |
| 51 | + value context/absolute_url; |
| 52 | + " |
| 53 | + /> |
| 54 | + <p class="doodle-share-warning" |
| 55 | + i18n:translate="" |
| 56 | + > |
45 | 57 | Remember to publish this doodle before sharing, or members will not be able to view it. |
46 | 58 | </p> |
47 | 59 | </div> |
|
53 | 65 | </p> |
54 | 66 | </div> |
55 | 67 |
|
56 | | - <form action="" |
| 68 | + <form class="doodle-answer-form" |
| 69 | + action="" |
57 | 70 | method="post" |
58 | | - class="doodle-answer-form" |
59 | | - > |
60 | | - <input type="hidden" name="form.submitted" value="1" /> |
61 | | - <span tal:replace="structure context/@@authenticator/authenticator" /> |
| 71 | + > |
| 72 | + <input name="form.submitted" |
| 73 | + type="hidden" |
| 74 | + value="1" |
| 75 | + /> |
| 76 | + <span tal:replace="structure context/@@authenticator/authenticator"></span> |
62 | 77 |
|
63 | 78 | <fieldset class="doodle-fieldset"> |
64 | 79 | <legend i18n:translate="">Available dates</legend> |
65 | 80 | <ul class="doodle-date-options"> |
66 | 81 | <li class="doodle-date-option" |
67 | 82 | tal:repeat="candidate view/candidate_dates" |
68 | | - > |
69 | | - <input type="checkbox" |
| 83 | + > |
| 84 | + <input class="doodle-date-checkbox" |
70 | 85 | name="selected_dates" |
71 | | - class="doodle-date-checkbox" |
72 | | - tal:attributes="id python:'doodle-date-' + candidate.isoformat(); |
73 | | - value candidate/isoformat; |
74 | | - checked python:candidate.isoformat() in view.selected" |
75 | | - /> |
| 86 | + type="checkbox" |
| 87 | + tal:attributes=" |
| 88 | + id python:'doodle-date-' + candidate.isoformat(); |
| 89 | + value candidate/isoformat; |
| 90 | + checked python:candidate.isoformat() in view.selected; |
| 91 | + " |
| 92 | + /> |
76 | 93 | <label class="doodle-date-label" |
77 | | - tal:attributes="for python:'doodle-date-' + candidate.isoformat()" |
78 | 94 | tal:content="python:view.format_date_long(candidate)" |
79 | | - >May 20, 2026 · Tuesday</label> |
| 95 | + tal:attributes=" |
| 96 | + for python:'doodle-date-' + candidate.isoformat(); |
| 97 | + " |
| 98 | + >May 20, 2026 · Tuesday</label> |
80 | 99 | </li> |
81 | 100 | </ul> |
82 | 101 | </fieldset> |
83 | 102 |
|
84 | 103 | <div class="doodle-form-footer"> |
85 | | - <button type="submit" |
86 | | - class="btn btn-primary" |
| 104 | + <button class="btn btn-primary" |
| 105 | + type="submit" |
87 | 106 | i18n:translate="" |
88 | | - >Save my answer</button> |
| 107 | + >Save my answer</button> |
89 | 108 | </div> |
90 | 109 | </form> |
91 | 110 | </div> |
|
0 commit comments