2023-05-31 00:50:43 +03:00
|
|
|
<div class="max-w-6xl mx-auto px-2 py-3">
|
2023-05-31 23:19:20 +03:00
|
|
|
<%= link_to 'Create Template', new_template_path, data: { turbo_frame: :modal } %>
|
|
|
|
|
<% @templates.each do |template| %>
|
2023-05-21 17:59:36 +03:00
|
|
|
<div>
|
2023-05-31 23:19:20 +03:00
|
|
|
<%= template.name %> |
|
|
|
|
|
<a href="<%= template_path(template) %>">edit</a> |
|
|
|
|
|
<a href="<%= template_submissions_path(template) %>">submissions</a> |
|
2023-05-21 17:59:36 +03:00
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|