This commit is contained in:
Oleksandr Turchyn
2024-09-18 19:47:47 +03:00
committed by Oleksandr Turchyn
parent 3c60fb4ee6
commit e9d728fa4a
132 changed files with 1121 additions and 600 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
<%= render 'shared/turbo_modal', title: 'Rename Folder' do %>
<%= render 'shared/turbo_modal', title: t('rename_folder') do %>
<%= form_for @template_folder, url: folder_path(@template_folder), data: { turbo_frame: :_top }, html: { autocomplete: :off } do |f| %>
<div class="form-control my-6">
<%= f.text_field :name, required: true, placeholder: 'Folder Name...', class: 'base-input w-full', autofocus: true, dir: 'auto' %>
<%= f.text_field :name, required: true, placeholder: "#{t('folder_name')}...", class: 'base-input w-full', autofocus: true, dir: 'auto' %>
</div>
<div class="form-control">
<%= f.button button_title(title: 'Rename', disabled_with: 'Saving'), class: 'base-button' %>
<%= f.button button_title(title: t('rename'), disabled_with: t('saving')), class: 'base-button' %>
</div>
<% end %>
<% end %>
+3 -3
View File
@@ -1,7 +1,7 @@
<div>
<%= link_to root_path do %>
&larr;
<span>Home</span>
<span><%= t('home') %></span>
<% end %>
</div>
<div class="flex justify-between mb-4 items-center">
@@ -26,7 +26,7 @@
<%= render 'templates/upload_button', folder_name: @template_folder.name %>
<%= link_to new_template_path(folder_name: @template_folder.name), class: 'white-button !border gap-2', data: { turbo_frame: :modal } do %>
<%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
<span class="hidden md:block">Create</span>
<span class="hidden md:block"><%= t('create') %></span>
<% end %>
<% end %>
</div>
@@ -39,7 +39,7 @@
<% elsif params[:q].present? %>
<div class="text-center">
<div class="mt-16 text-3xl font-semibold">
Templates not Found
<%= t('templates_not_found') %>
</div>
</div>
<% end %>