diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/request/_bubble.rhtml | 11 | ||||
-rw-r--r-- | app/views/request/new.rhtml | 7 |
2 files changed, 10 insertions, 8 deletions
diff --git a/app/views/request/_bubble.rhtml b/app/views/request/_bubble.rhtml index 387ff7657..9ad023aad 100644 --- a/app/views/request/_bubble.rhtml +++ b/app/views/request/_bubble.rhtml @@ -2,13 +2,16 @@ <b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b><b class="xb5"></b><b class="xb6"></b><b class="xb7"></b> <div class="xboxcontent"> <% if not attachments.nil? and attachments.size > 0 %> - <p> - <% attachments.each do |a| %> - Attachment: + <p> <% attachments.each do |a| %> + <% if ['application/pdf', 'application/msword'].include?(a.content_type) %> + <img src="/images/icon_<%=a.content_type.sub('/', '_')%>_large.png" align="absmiddle"> + <% else %> + Attachment: + <% end %> <%= link_to (TMail::Mail.get_part_file_name(a) || "download.bin"), get_attachment_url(:id => incoming_message.info_request_id, :incoming_message_id => incoming_message.id, :part => a.url_part_number, :file_name => (TMail::Mail.get_part_file_name(a) || "download.bin")) %> - (<%= a.content_type %>) + <!-- (<%= a.content_type %>) --> <br> <% end %> </p> diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml index 7fb60cf6e..883a3963f 100644 --- a/app/views/request/new.rhtml +++ b/app/views/request/new.rhtml @@ -34,7 +34,7 @@ </div> <p> - <label class="form_label" for="public_body_id">Public body:</label> + <label class="form_label" for="info_request_public_body_id">Public body:</label> <%= @public_bodies = PublicBody.find(:all, :order => "name") f.collection_select(:public_body_id, @public_bodies, :id, :name) @@ -65,11 +65,10 @@ </p> <div class="form_button"> - <%= hidden_field_tag(:submitted_new_request, { :value => 1 } ) %> - <%= submit_tag "Make public Freedom of Information request >>" %> + <%= hidden_field_tag(:submitted_new_request, { :value => 1 } ) %> + <%= submit_tag "Make public Freedom of Information request >>" %> </div> - </div> <% end %> |