style documents preview

This commit is contained in:
Alex Turchyn
2023-05-31 00:50:43 +03:00
parent faf6f69e3e
commit 98fc9d964a
11 changed files with 404 additions and 83 deletions
+1 -8
View File
@@ -1,12 +1,5 @@
Hellp
<div>
<div class="max-w-6xl mx-auto px-2 py-3">
<%= link_to 'Create Flow', new_flow_path, data: { turbo_frame: :modal } %>
<%= link_to 'Storage settings', settings_storage_index_path %>
<%= link_to 'Email settings', settings_email_index_path %>
<%= link_to 'eSign', settings_esign_index_path %>
<%= link_to 'Users', settings_users_path %>
</div>
<div>
<% @flows.each do |flow| %>
<div>
<%= flow.name %> |
+16 -1
View File
@@ -1 +1,16 @@
<flow-builder data-flow="<%= @flow.to_json(include: { documents: { include: { preview_images: { methods: %i[url metadata filename] } } } }) %>"></flow-builder>
<!DOCTYPE html>
<html data-theme="docuseal" class="h-full">
<head>
<title>
Docuseal
</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%= javascript_pack_tag 'application', defer: true %>
<%= stylesheet_pack_tag 'application', media: 'all' %>
</head>
<body class="h-full" data>
<flow-builder data-flow="<%= @flow.to_json(include: { documents: { include: { preview_images: { methods: %i[url metadata filename] } } } }) %>"></flow-builder>
</body>
</html>