add folders structure

This commit is contained in:
Alex Turchyn
2023-09-22 02:20:38 +03:00
parent f8712a9da9
commit 380f553a17
30 changed files with 405 additions and 56 deletions
+12
View File
@@ -0,0 +1,12 @@
<%= render 'shared/turbo_modal', title: 'Move Into Folder' do %>
<%= form_for '', url: template_folder_path(@template), method: :put, data: { turbo_frame: :_top }, html: { autocomplete: :off } do |f| %>
<div class="form-control my-6">
<folder-autocomplete class="block" data-submit-on-select="true">
<%= f.text_field :name, required: true, placeholder: 'New Folder Name...', class: 'base-input w-full', autofocus: true %>
</folder-autocomplete>
</div>
<div class="form-control">
<%= f.button button_title(title: 'Move', disabled_with: 'Moving'), class: 'base-button' %>
</div>
<% end %>
<% end %>