aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/request/_describe_state.rhtml3
-rw-r--r--app/views/request/_request_listing.rhtml2
-rw-r--r--app/views/request/show.rhtml2
-rw-r--r--app/views/request_mailer/requires_admin.rhtml9
4 files changed, 16 insertions, 0 deletions
diff --git a/app/views/request/_describe_state.rhtml b/app/views/request/_describe_state.rhtml
index d1bfb1d95..b16955033 100644
--- a/app/views/request/_describe_state.rhtml
+++ b/app/views/request/_describe_state.rhtml
@@ -16,6 +16,9 @@
<br>
<%= radio_button "incoming_message", "described_state", "partially_successful" %>
<label for="incoming_message_described_state_partially_successful">I've received <strong>some of the information</strong> that I asked for</label>
+ <br>
+ <%= radio_button "incoming_message", "described_state", "requires_admin" %>
+ <label for="incoming_message_described_state_requires_admin"><strong>None</strong> of the above - e.g. add a new option here</label>
</p>
<p>Filling this in each time you get a new response helps us track the progress of your request.
</p>
diff --git a/app/views/request/_request_listing.rhtml b/app/views/request/_request_listing.rhtml
index 35300929e..623ccf535 100644
--- a/app/views/request/_request_listing.rhtml
+++ b/app/views/request/_request_listing.rhtml
@@ -23,6 +23,8 @@
Successful.
<% elsif status == 'waiting_clarification' %>
Waiting clarification.
+ <% elsif status == 'requires_admin' %>
+ Unusual response.
<% else %>
<% raise "unknown status " + status %>
<% end %>
diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml
index 74dd15239..d4e6ddb22 100644
--- a/app/views/request/show.rhtml
+++ b/app/views/request/show.rhtml
@@ -51,6 +51,8 @@
<%= user_link(@info_request.user) %>, please
<%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
<% end %>
+ <% elsif @status == 'requires_admin' %>
+ This request has had an unusual response, and <strong>requires attention</strong> from the foi.mysociety.org team.
<% else %>
<% raise "unknown status " + @status %>
<% end %>
diff --git a/app/views/request_mailer/requires_admin.rhtml b/app/views/request_mailer/requires_admin.rhtml
new file mode 100644
index 000000000..209e2f334
--- /dev/null
+++ b/app/views/request_mailer/requires_admin.rhtml
@@ -0,0 +1,9 @@
+A user has reported an FOI response as being unusual, or out of the scope of
+the system. Take a look, and contact the user to let them know what you are
+going to do about it.
+
+Request '<%=@info_request.title%>':
+<%= @url %>
+
+Administration URL:
+<%= @admin_url %>