mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
make template preferences button native
This commit is contained in:
1 parent
3f6cdcd15b
commit
f5b29642ee
1 file changed
+9
-7
@@ -44,13 +44,15 @@
|
|||||||
<% if !template.archived_at? %>
|
<% if !template.archived_at? %>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center space-x-2">
|
||||||
<% if can?(:update, template) %>
|
<% if can?(:update, template) %>
|
||||||
<div class="tooltip tooltip-no-touch hidden md:block" data-tip="<%= t('preferences') %>">
|
<native-action data-label="<%= t('preferences') %>" data-icon="adjustments_horizontal" data-placement="bar">
|
||||||
<%= link_to template_preferences_path(template), class: 'btn border border-base-200 bg-base-200 hover:bg-base-300 hover:border-base-300 btn-sm flex-1 hidden md:flex', data: { turbo_frame: :modal } do %>
|
<div class="tooltip tooltip-no-touch hidden md:block" data-tip="<%= t('preferences') %>">
|
||||||
<span class="flex items-center justify-center space-x-2">
|
<%= link_to template_preferences_path(template), class: 'btn border border-base-200 bg-base-200 hover:bg-base-300 hover:border-base-300 btn-sm flex-1 hidden md:flex', data: { turbo_frame: :modal } do %>
|
||||||
<%= svg_icon('adjustments_horizontal', class: 'w-6 h-6') %>
|
<span class="flex items-center justify-center space-x-2">
|
||||||
</span>
|
<%= svg_icon('adjustments_horizontal', class: 'w-6 h-6') %>
|
||||||
<% end %>
|
</span>
|
||||||
</div>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</native-action>
|
||||||
<% end %>
|
<% end %>
|
||||||
<open-modal-mobile class="absolute md:relative bottom-0 right-0 mt-1">
|
<open-modal-mobile class="absolute md:relative bottom-0 right-0 mt-1">
|
||||||
<%= link_to template_share_link_path(template), class: 'btn btn-xs md:btn-sm whitespace-nowrap btn-neutral text-white px-2', data: { turbo_frame: :modal } do %>
|
<%= link_to template_share_link_path(template), class: 'btn btn-xs md:btn-sm whitespace-nowrap btn-neutral text-white px-2', data: { turbo_frame: :modal } do %>
|
||||||
|
|||||||
Reference in new issue
Block a user