mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
rename template
This commit is contained in:
1 parent
9678cd1286
commit
ca009252ac
8 files changed
+159
-34
No files matched your search
@@ -2,8 +2,21 @@
|
||||
<div class="relative flex items-start justify-between w-full space-x-0">
|
||||
<div>
|
||||
<div id="template_title" class="flex">
|
||||
<% name_html = capture do %><% template.name.split(/(_)/).each do |item| %><%= item %><wbr><% end %><% end %>
|
||||
<h1 class="text-3xl md:text-[2em] font-semibold" style="overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;">
|
||||
<% template.name.split(/(_)/).each do |item| %><%= item %><wbr><% end %>
|
||||
<% if turbo_native_app? && !template.archived_at? && can?(:update, template) %>
|
||||
<form-prompt>
|
||||
<native-action data-placement="title" data-label="<%= t('name') %>">
|
||||
<%= form_for template, url: template_path(template), method: :put, html: { class: 'hidden' } do |f| %>
|
||||
<%= f.label :name, t('name') %>
|
||||
<%= f.hidden_field :name %>
|
||||
<% end %>
|
||||
</native-action>
|
||||
<%= name_html %>
|
||||
</form-prompt>
|
||||
<% else %>
|
||||
<%= name_html %>
|
||||
<% end %>
|
||||
<% if template.archived_at? %>
|
||||
<span class="ml-1 badge badge-outline badge-lg align-middle hidden md:inline-flex"><%= t('archived') %></span>
|
||||
<% end %>
|
||||
|
||||
@@ -63,7 +63,9 @@
|
||||
<%= t('form_preferences') %>
|
||||
</div>
|
||||
<div class="collapse-content">
|
||||
<%= render 'templates_prefillable_fields/form', template: @template %>
|
||||
<native-event data-on="submit" data-name="template-builder:update" data-dismiss="false" class="block">
|
||||
<%= render 'templates_prefillable_fields/form', template: @template %>
|
||||
</native-event>
|
||||
<%= form_for @template, url: template_preferences_path(@template), method: :post, html: { autocomplete: 'off', class: 'mt-1' }, data: { close_on_submit: false } do |f| %>
|
||||
<toggle-on-submit data-element-id="form_saved_alert"></toggle-on-submit>
|
||||
<% configs = AccountConfigs.find_or_initialize_for_key(current_account, AccountConfig::SUBMITTER_COMPLETED_EMAIL_KEY).value %>
|
||||
@@ -145,7 +147,9 @@
|
||||
</div>
|
||||
<% if show_recipients %>
|
||||
<div id="recipients" class="hidden mt-2 mb-4 px-5 pt-1 pb-2">
|
||||
<%= render 'recipients', template: @template %>
|
||||
<native-event data-on="submit" data-name="template-builder:update" class="block">
|
||||
<%= render 'recipients', template: @template %>
|
||||
</native-event>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if show_api %>
|
||||
|
||||
Reference in new issue
Block a user