aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zerotb/around
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/zerotb/around')
-rw-r--r--templates/web/zerotb/around/_updates.html0
-rw-r--r--templates/web/zerotb/around/around_map_list_items.html9
-rw-r--r--templates/web/zerotb/around/intro.html1
-rw-r--r--templates/web/zerotb/around/location_error.html8
-rw-r--r--templates/web/zerotb/around/on_map_list_items.html7
-rw-r--r--templates/web/zerotb/around/postcode_form.html36
-rw-r--r--templates/web/zerotb/around/tabbed_lists.html14
7 files changed, 75 insertions, 0 deletions
diff --git a/templates/web/zerotb/around/_updates.html b/templates/web/zerotb/around/_updates.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/zerotb/around/_updates.html
diff --git a/templates/web/zerotb/around/around_map_list_items.html b/templates/web/zerotb/around/around_map_list_items.html
new file mode 100644
index 000000000..225ddde6e
--- /dev/null
+++ b/templates/web/zerotb/around/around_map_list_items.html
@@ -0,0 +1,9 @@
+[% IF around_map.size %]
+ [% FOREACH p IN around_map %]
+ [% INCLUDE 'report/_item.html'
+ problem = p.problem,
+ dist = tprintf("%.1f", (p.distance || 0) ) %]
+ [% END %]
+[% ELSE %]
+ <li><p>[% loc('No clinics found.') %]</p></li>
+[% END %]
diff --git a/templates/web/zerotb/around/intro.html b/templates/web/zerotb/around/intro.html
new file mode 100644
index 000000000..07d018f57
--- /dev/null
+++ b/templates/web/zerotb/around/intro.html
@@ -0,0 +1 @@
+<h2>[% loc('If a hospital, clinic or other health facility near you is experiencing <b>stockouts of tuberculosis drugs</b> you can use this form to report it') %]</h2>
diff --git a/templates/web/zerotb/around/location_error.html b/templates/web/zerotb/around/location_error.html
new file mode 100644
index 000000000..45428e723
--- /dev/null
+++ b/templates/web/zerotb/around/location_error.html
@@ -0,0 +1,8 @@
+<p class="form-error">
+[% IF location_error_no_areas %]
+ [% loc('This location seems to be outside the Dehli area.') %]
+[% ELSE %]
+ [% location_error %]
+[% END %]
+</p>
+
diff --git a/templates/web/zerotb/around/on_map_list_items.html b/templates/web/zerotb/around/on_map_list_items.html
new file mode 100644
index 000000000..838e2e9fa
--- /dev/null
+++ b/templates/web/zerotb/around/on_map_list_items.html
@@ -0,0 +1,7 @@
+[% IF on_map.size %]
+ [% FOREACH problem IN on_map %]
+ [% INCLUDE 'report/_item.html' %]
+ [% END %]
+[% ELSE %]
+ <li><p>[% loc('No clinics found.') %]</p></li>
+[% END %]
diff --git a/templates/web/zerotb/around/postcode_form.html b/templates/web/zerotb/around/postcode_form.html
new file mode 100644
index 000000000..484f41c5c
--- /dev/null
+++ b/templates/web/zerotb/around/postcode_form.html
@@ -0,0 +1,36 @@
+<div id="front-main">
+ <div id="front-main-container">
+ [% INCLUDE 'around/intro.html' %]
+
+ [%
+ question = c.cobrand.enter_postcode_text || loc('Enter a nearby street name and area');
+ %]
+
+ <div id="postcodeForm">
+ <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm">
+ <label for="pc">[% question %]:</label>
+ <div>
+ <input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200" placeholder="[% tprintf(loc('e.g. ā€˜%s’ or ā€˜%s’'), c.cobrand.example_places) %]">
+ <input type="submit" value="[% loc('Go') %]" id="sub">
+ </div>
+
+ [% IF partial_token %]
+ <input type="hidden" name="partial" value="[% partial_token.token %]">
+ [% END %]
+
+ </form>
+ <form action="[% c.uri_for( '/report' ) %]/" method="get" name="clinicForm">
+ <label for="clinic">[% loc('... or select a clinic by name' ) %]</label>
+ <div>
+ <select id="clinic" name="clinic">
+ [% FOR clinic IN c.cobrand.get_clinic_list %]
+ <option value="[% clinic.id %]">[% clinic.title %]</option>
+ [% END %]
+ </select>
+ <input class="green-btn" type="submit" value="[% loc('Go') %]" id="show_report">
+ </div>
+ </form>
+ </div>
+
+ </div>
+</div>
diff --git a/templates/web/zerotb/around/tabbed_lists.html b/templates/web/zerotb/around/tabbed_lists.html
new file mode 100644
index 000000000..8b8e8753e
--- /dev/null
+++ b/templates/web/zerotb/around/tabbed_lists.html
@@ -0,0 +1,14 @@
+<menu id="problems-nav" class="tab-nav">
+ <ul>
+ <li><a href="#current">[% loc('Clinics on the map') %]</a></li>
+ <li><a href="#current_near">[% loc( 'Clinics nearby' ) %]</a></li>
+ </ul>
+</menu>
+
+<ul id="current" class="issue-list-a tab">
+ [% INCLUDE "around/on_map_list_items.html" %]
+</ul>
+
+<ul id="current_near" class="issue-list-a tab">
+ [% INCLUDE "around/around_map_list_items.html" %]
+</ul>