mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
adjust nav
This commit is contained in:
1 parent
44972fcc39
commit
073859a4b7
17 files changed
+287
-72
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<% uuid = local_assigns[:uuid] || SecureRandom.uuid %>
|
||||
<% title_id = "#{uuid}-title" %>
|
||||
<%= tag.dialog id: uuid, class: 'modal items-start overflow-y-auto', inert: true, 'aria-labelledby': (title_id if local_assigns[:title]) do %>
|
||||
<div class="modal-box pt-4 pb-6 px-6 mt-20 max-h-none">
|
||||
<div class="modal-box pt-4 pb-6 px-6 <%= turbo_native_app? ? 'mt-32' : 'mt-20' %> max-h-none">
|
||||
<% if local_assigns[:title] %>
|
||||
<div class="flex justify-between items-center border-b pb-2 mb-2 font-medium">
|
||||
<span id="<%= title_id %>">
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
<native-action data-placement="profile" data-icon="settings">
|
||||
<%= link_to t('settings'), settings_path %>
|
||||
</native-action>
|
||||
<% if current_account.testing? && (can?(:manage, EncryptedConfig) || current_user != true_user) %>
|
||||
<native-action data-placement="test_mode" data-icon="code" data-label="<%= t('exit_test_mode') %>">
|
||||
<%= button_to '', testing_account_path, method: :delete, form: { data: { turbo_action: 'replace' } } %>
|
||||
</native-action>
|
||||
<% end %>
|
||||
<native-action data-placement="profile" data-icon="logout" data-native="sign_out" data-label="<%= t('sign_out') %>" data-destructive="true"></native-action>
|
||||
<% if can?(:create, ::Template) && controller_name.in?(%w[templates_dashboard submissions_dashboard template_folders]) %>
|
||||
<% folder_name = @template_folder&.full_name %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% if turbo_native_app? && !turbo_frame_request? %>
|
||||
<% content_for(:html_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<turbo-frame id="modal">
|
||||
<native-modal class="block max-w-lg mx-auto px-4 pb-6" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<native-modal class="block max-w-lg mx-auto pb-6" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<%= yield %>
|
||||
</native-modal>
|
||||
</turbo-frame>
|
||||
|
||||
Reference in new issue
Block a user