|
|
|
@ -1,8 +1,9 @@
|
|
|
|
|
|
|
|
<%- if @templates.any? %>
|
|
|
|
<div class="flex justify-between mb-4">
|
|
|
|
<div class="flex justify-between mb-4">
|
|
|
|
<h1 class="text-4xl font-bold">Dashboard</h1>
|
|
|
|
<h1 class="text-4xl font-bold">Templates</h1>
|
|
|
|
<%= link_to new_template_path, class: 'btn btn-primary btn-md gap-2', data: { turbo_frame: :modal } do %>
|
|
|
|
<%= link_to new_template_path, class: 'btn btn-primary btn-md gap-2', data: { turbo_frame: :modal } do %>
|
|
|
|
<%= svg_icon('plus', class: 'w-6 h-6') %>
|
|
|
|
<%= svg_icon('plus', class: 'w-6 h-6') %>
|
|
|
|
<span class="hidden md:block">Create Template</span>
|
|
|
|
<span class="hidden md:block">Create</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid gap-4 md:grid-cols-3">
|
|
|
|
<div class="grid gap-4 md:grid-cols-3">
|
|
|
|
@ -24,3 +25,19 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
<div class="card bg-base-200 h-96 mb-2">
|
|
|
|
|
|
|
|
<div class="card-body text-center">
|
|
|
|
|
|
|
|
<div class="flex items-center h-full">
|
|
|
|
|
|
|
|
<div class="max-w-lg mx-auto">
|
|
|
|
|
|
|
|
<h1 class="text-5xl font-bold">Welcome to DocuSeal</h1>
|
|
|
|
|
|
|
|
<p class="py-6">Streamline document workflows, from creating customizable templates to filling and signing document forms, with DocuSeal</p>
|
|
|
|
|
|
|
|
<%= link_to new_template_path, class: 'btn btn-neutral', data: { turbo_frame: :modal } do %>
|
|
|
|
|
|
|
|
<%= svg_icon('plus', class: 'w-6 h-6') %>
|
|
|
|
|
|
|
|
<span>Create Template</span>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|