diff options
Diffstat (limited to 'lib/views/help/contact.html.erb')
-rw-r--r-- | lib/views/help/contact.html.erb | 154 |
1 files changed, 76 insertions, 78 deletions
diff --git a/lib/views/help/contact.html.erb b/lib/views/help/contact.html.erb index d228aa3..21e5349 100644 --- a/lib/views/help/contact.html.erb +++ b/lib/views/help/contact.html.erb @@ -4,99 +4,97 @@ <h1><%= @title %></h1> -<div id="contact_preamble"> - - <% if !flash[:notice] %> - <h2>Contact an authority to get official information</h2> - <ul> - <li><a href="<%= new_request_path %>">Go here</a> to make a request, in public, for information - from public authorities.</li> - - <li> - Asking for private information about yourself? - Please read our - <a href="<%= help_requesting_path(:anchor => 'data_protection') %>">help page</a>. - </li> - </ul> - - <% end %> - - <h2>Contact the <%= site_name %> team</h2> - <% if !flash[:notice] %> - <ul> - <li> - Please read the <a href="<%= help_about_path %>">help page</a> first, as it may - answer your question quicker. - </li> - - <li>We'd love to hear how you've found using this site. - Either fill in this form, or send an email to <a - href="mailto:<%=@contact_email%>"><%=@contact_email%></a> - </li> - - <li>We are a <strong>charity</strong> and not part of the - Government.</li> - </ul> - <% end %> +<div id="contact_preamble" class="contact_preamble"> + + <% if !flash[:notice] %> + <h2>Contact an authority to get official information</h2> + <ul> + <li><a href="<%= new_request_path %>">Go here</a> to make a request, in public, for information + from public authorities.</li> + + <li> + Asking for private information about yourself? + Please read our + <a href="<%= help_requesting_path(:anchor => 'data_protection') %>">help page</a>. + </li> + </ul> + + <% end %> + + <h2>Contact the <%= site_name %> team</h2> + <% if !flash[:notice] %> + <ul> + <li> + Please read the <a href="<%= help_about_path %>">help page</a> first, as it may + answer your question quicker. + </li> + + <li>We'd love to hear how you've found using this site. + Either fill in this form, or send an email to <a + href="mailto:<%=@contact_email%>"><%=@contact_email%></a> + </li> + + <li>We are a <strong>charity</strong> and not part of the + Government.</li> + </ul> + <% end %> </div> <%= form_for :contact do |f| %> - <% if not @user %> - <p> - <label class="form_label" for="contact_name">Your name:</label> - <%= f.text_field :name, :size => 20 %> - (or <%= link_to "sign in", signin_path(:r => request.fullpath) %>) - </p> - - <p> - <label class="form_label" for="contact_email">Your email:</label> - <%= f.text_field :email, :size => 20 %> - </p> - <% end %> - + <% if not @user %> <p> - <label class="form_label" for="contact_subject">Subject:</label> - <%= f.text_field :subject, :size => 50 %> + <label class="form_label" for="contact_name">Your name:</label> + <%= f.text_field :name, :size => 20 %> + (or <%= link_to "sign in", signin_path(:r => request.fullpath) %>) </p> <p> - <label class="form_label" for="contact_message">Message to website:</label> - <%= f.text_area :message, :rows => 10, :cols => 60 %> + <label class="form_label" for="contact_email">Your email:</label> + <%= f.text_field :email, :size => 20 %> </p> + <% end %> + + <p> + <label class="form_label" for="contact_subject">Subject:</label> + <%= f.text_field :subject, :size => 50 %> + </p> + + <p> + <label class="form_label" for="contact_message">Message to website:</label> + <%= f.text_area :message, :rows => 10, :cols => 60 %> + </p> + + <p style="display:none;"> + <%= f.label :comment, 'Do not fill in this field' %> + <%= f.text_field :comment %> + </p> - <p style="display:none;"> - <%= f.label :comment, 'Do not fill in this field' %> - <%= f.text_field :comment %> + <% if !@last_request.nil? %> + <p> + <label class="form_label" for="contact_message">Include link to request:</label> + <%=request_link(@last_request) %> + <%= submit_tag "remove", :name => 'remove' %> + </p> + <% end %> + <% if !@last_body.nil? %> + <p> + <label class="form_label" for="contact_message">Include link to authority:</label> + <%=public_body_link(@last_body) %> + <%= submit_tag "remove", :name => 'remove' %> </p> + <% end %> - <% if !@last_request.nil? %> - <p> - <label class="form_label" for="contact_message">Include link to request:</label> - <%=request_link(@last_request) %> - <%= submit_tag "remove", :name => 'remove' %> - </p> - <% end %> - <% if !@last_body.nil? %> - <p> - <label class="form_label" for="contact_message">Include link to authority:</label> - <%=public_body_link(@last_body) %> - <%= submit_tag "remove", :name => 'remove' %> - </p> - <% end %> - - <p class="form_note"> + <p class="form_note"> We can only help you with <strong>technical problems</strong>, or questions about Freedom of Information. - </P> + </p> - <div class="form_button"> - <%= hidden_field_tag(:submitted_contact_form, 1) %> - <%= submit_tag "Send message to the charity", :disable_with => "Sending..." %> - <-- we run this site, not the Government! - </div> + <div class="form_button"> + <%= hidden_field_tag(:submitted_contact_form, 1) %> + <%= submit_tag "Send message to the charity", :disable_with => "Sending..." %> + <-- we run this site, not the Government! + </div> <% end %> - - |