<% 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| %>
<%= template.name %>

<%= svg_icon('user', class: 'w-4 h-4') %> <%= template.author.full_name %>

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

<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'Templates' %> <% 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 %>