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