diff options
Diffstat (limited to 'templates/web/zerotb/report')
-rw-r--r-- | templates/web/zerotb/report/_item.html | 5 | ||||
-rw-r--r-- | templates/web/zerotb/report/_main.html | 6 | ||||
-rw-r--r-- | templates/web/zerotb/report/display.html | 34 | ||||
-rw-r--r-- | templates/web/zerotb/report/update-form.html | 64 | ||||
-rw-r--r-- | templates/web/zerotb/report/updates-sidebar-notes.html | 3 |
5 files changed, 112 insertions, 0 deletions
diff --git a/templates/web/zerotb/report/_item.html b/templates/web/zerotb/report/_item.html new file mode 100644 index 000000000..92fb8e8d8 --- /dev/null +++ b/templates/web/zerotb/report/_item.html @@ -0,0 +1,5 @@ +<li> +<a class="text" href="[% c.uri_for('/report', problem.id ) %]"> + <h4>[% problem.title | html %]</h4> +</a> +</li> diff --git a/templates/web/zerotb/report/_main.html b/templates/web/zerotb/report/_main.html new file mode 100644 index 000000000..189b4eeb5 --- /dev/null +++ b/templates/web/zerotb/report/_main.html @@ -0,0 +1,6 @@ +<div class="problem-header cf"> + <h1>[% problem.title | html %]</h1> + + [% add_links( problem.detail ) | html_para %] + +</div> diff --git a/templates/web/zerotb/report/display.html b/templates/web/zerotb/report/display.html new file mode 100644 index 000000000..9161fb586 --- /dev/null +++ b/templates/web/zerotb/report/display.html @@ -0,0 +1,34 @@ +[% + PROCESS "report/photo-js.html"; + PROCESS "maps/${map.type}.html"; + + problem_title = problem.title_safe _ ' - ' _ loc('Viewing a Clinic'); + INCLUDE 'header.html' + title = problem_title + robots = 'index, nofollow' + bodyclass = 'mappage'; +%] + +[% map_html %] + +</div> + +[% INCLUDE 'report/banner.html' %] + +[% IF c.flash.comment_created %] +<p> +[% loc('Your report has been sent') %] +</p> +[% END %] + +[% INCLUDE 'report/_main.html' %] + +<div class="shadow-wrap"> + <ul id="key-tools"> + <li><a class="chevron" id="key-tool-problems-nearby" href="[% c.uri_for( '/around', { lat => short_latitude, lon => short_longitude } ) %]">[% loc( 'Clinics nearby' ) %]</a></li> + </ul> + +</div> + +[% INCLUDE 'report/update-form.html' %] +[% INCLUDE 'footer.html' %] diff --git a/templates/web/zerotb/report/update-form.html b/templates/web/zerotb/report/update-form.html new file mode 100644 index 000000000..b278b5f8d --- /dev/null +++ b/templates/web/zerotb/report/update-form.html @@ -0,0 +1,64 @@ +<div id="update_form"> + <h2>[% loc( 'Report a stockout') %]</h2> + + <div class="general-sidebar-notes"> + [% INCLUDE 'report/updates-sidebar-notes.html' %] + </div> + + [% INCLUDE 'errors.html' %] + + <form method="post" action="[% c.uri_for( '/report/update' ) %]" id="form_update_form" name="updateForm" class="validate"[% IF c.cobrand.allow_photo_upload %] enctype="multipart/form-data"[% END %]> + <fieldset> + <input type="hidden" name="submit_update" value="1"> + <input type="hidden" name="id" value="[% problem.id | html %]"> + + <label for="form_update">[% loc( 'Details' ) %]</label> + [% IF field_errors.update %] + <div class='form-error'>[% field_errors.update %]</div> + [% END %] + <textarea rows="7" cols="30" name="update" id="form_update" placeholder="[% loc('Please write your update here') %]" required>[% update.text | html %]</textarea> + + [% IF c.user_exists %] + + [% INCLUDE name %] + + <input class="final-submit green-btn" type="submit" id="update_post" value="[% loc('Post') %]"> + + + [% ELSE %] + + <label for="form_rznvy">[% loc('Email' ) %]</label> + + <div class="general-sidebar-notes"> + <p class="dark">[% loc('We never show your email or name') %]</p> + </div> + + [% IF field_errors.email %] + <p class='form-error'>[% field_errors.email %]</p> + [% END %] + <input type="email" name="rznvy" id="form_rznvy" value="[% update.user.email | html %]" placeholder="[% loc('Your email address' ) %]" required> + + <div id="form_sign_in"> + <div id="form_sign_in_no"> + [% INCLUDE name %] + + <div class="form-txt-submit-box"> + <input class="green-btn" type="submit" name="submit_register" id="submit_register" value="[% loc('Post') %]"> + </div> + </div> + </div> + + [% END %] + </fieldset> + </form> +</div> + +[% BLOCK name %] + [% INCLUDE 'report/new/extra_name.html' %] + <label for="form_name">[% loc('Name') %]</label> + [% IF field_errors.name %] + <p class='form-error'>[% field_errors.name %]</p> + [% END %] + <input type="text" [% IF problem.bodies_str == '2482' %]class="validName" [% END %]name="name" id="form_name" value="[% update.name || c.user.name | html %]" placeholder="[% loc('Your name') %]"> + +[% END %] diff --git a/templates/web/zerotb/report/updates-sidebar-notes.html b/templates/web/zerotb/report/updates-sidebar-notes.html new file mode 100644 index 000000000..28de7d4fa --- /dev/null +++ b/templates/web/zerotb/report/updates-sidebar-notes.html @@ -0,0 +1,3 @@ + <p> + [% loc( 'Please note that reports are sent to the clinic.' ) %] + [% loc( 'Your information will only be used in accordance with our <a href="/privacy">privacy policy</a>' ) %]</p> |