mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
968 B
19 lines
968 B
<%= 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: "#{t('folder_name')}...", class: 'base-input w-full', autofocus: true, dir: 'auto' %>
|
|
</div>
|
|
<% if can?(:manage, Team.new(account: current_account)) %>
|
|
<div class="form-control mb-6">
|
|
<label class="label">
|
|
<span class="label-text"><%= t('team') %></span>
|
|
</label>
|
|
<%= f.select :team_id, current_account.teams.active.order(:name).map { |t| [t.name, t.id] }, { selected: @template_folder.team_id }, class: 'base-select w-full' %>
|
|
</div>
|
|
<% end %>
|
|
<div class="form-control">
|
|
<%= f.button button_title(title: t('save'), disabled_with: t('saving')), class: 'base-button' %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|