2023-09-14 01:43:08 +03:00
|
|
|
<%= render 'shared/turbo_modal', title: @base_template ? 'Clone Template' : 'New Document Template' do %>
|
2023-05-31 23:19:20 +03:00
|
|
|
<%= form_for @template, data: { turbo_frame: :_top } do |f| %>
|
2023-06-18 16:26:51 +00:00
|
|
|
<% if @base_template %>
|
|
|
|
|
<%= hidden_field_tag :base_template_id, @base_template.id %>
|
|
|
|
|
<% end %>
|
2023-05-31 23:19:20 +03:00
|
|
|
<div class="form-control my-6">
|
|
|
|
|
<%= f.text_field :name, required: true, placeholder: 'Template Name', class: 'base-input' %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-control mt-4">
|
2023-06-28 00:22:34 +03:00
|
|
|
<%= f.button button_title(title: @base_template ? 'Submit' : 'Create', disabled_with: 'Creating'), class: 'base-button' %>
|
2023-05-31 23:19:20 +03:00
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|