<%=l(:label_helpdesk_canned_response)%>

<%= labelled_form_for :canned_response, @canned_response, url: { action: 'update', project_id: @project }, html: { multipart: true } do |f| %>
<%= l(:label_change_properties) %>
<%= render partial: 'canned_responses/form', locals: { f: f } %>
<%= l(:label_attachment_plural) %> <% if @canned_response.attachments.any? && @canned_response.safe_attribute?('deleted_attachment_ids') %>
<%= link_to l(:label_edit_attachments), '#', onclick: "$('#existing-attachments').toggle(); return false;" %>
<% @canned_response.attachments.each do |attachment| %> <%= text_field_tag '', attachment.filename, class: 'icon icon-attachment filename', disabled: true %> <% end %>
<% end %>
<%= render partial: 'attachments/form', locals: { container: @canned_response } %>
<%= submit_tag l(:button_save) %> <% end %>