<%= Folder.icon %>
Editing <%= folder.title %>
<%= f.label 'Folder name' %>
<%= f.text_field :title, placeholder: 'Folder name' %>
<%=
f.select :parent_folder_id, current_user.folders.where.not(id: folder.id).pluck(:title, :id),
{ include_blank: 'None' }
%>
<%= f.label 'Parent folder' %>
More actions
<%=
link_to 'Delete this folder', folder_path(folder),
method: :DELETE,
class: 'red-text',
data: {
confirm: "Are you sure? This will delete the folder and move all documents within it back to your default 'Documents' page."
}
%>
<% end %>