rename to templates

This commit is contained in:
Alex Turchyn
2023-05-31 23:19:20 +03:00
parent 98fc9d964a
commit 4a303cb423
59 changed files with 248 additions and 264 deletions
+10
View File
@@ -0,0 +1,10 @@
<%= render 'shared/turbo_modal', title: 'New Template' do %>
<%= form_for @template, data: { turbo_frame: :_top } do |f| %>
<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">
<%= f.button button_title('Create'), class: 'base-button' %>
</div>
<% end %>
<% end %>
+16
View File
@@ -0,0 +1,16 @@
<!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>
<template-builder data-template="<%= @template.to_json(include: { documents: { include: { preview_images: { methods: %i[url metadata filename] } } } }) %>"></template-builder>
</body>
</html>