AlchemyCMS/alchemy_cms

View on GitHub
app/views/alchemy/admin/attachments/edit.html.erb

Summary

Maintainability
Test Coverage
<%= alchemy_form_for([:admin, @attachment],
  url: {action: :update, q: search_filter_params[:q], page: params[:page]}) do |f| -%>
  <%= f.input :name, input_html: {autofocus: true} %>
  <%= f.input :file_name, input_html: {autofocus: true}, hint: Alchemy.t(:attachment_filename_notice) %>
  <%= render Alchemy::Admin::TagsAutocomplete.new do %>
    <%= f.input :tag_list, input_html: { value: f.object.tag_list.join(",") } %>
  <% end %>
  <%= f.submit Alchemy.t(:save) %>
<% end %>