<%- if @templates.any? %>

Templates

<%= 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') %> <% end %>
<% @templates.each do |template| %>

<%= link_to template.name, template_submissions_path(template) %> <%= link_to 'Edit', template_path(template), class: 'btn btn-outline btn-xs' %>

Created by <%= template.author.full_name %>

<%= svg_icon('calendar', class: 'w-4 h-4') %> <%= l(template.created_at, format: :long) %>

<% end %>
<% else %>

Welcome to DocuSeal

Streamline document workflows, from creating customizable templates to filling and signing document forms, with DocuSeal

<%= link_to new_template_path, class: 'btn btn-neutral', data: { turbo_frame: :modal } do %> <%= svg_icon('plus', class: 'w-6 h-6') %> Create Template <% end %>
<% end %>