diff --git a/app/views/submissions_dashboard/index.html.erb b/app/views/submissions_dashboard/index.html.erb index d76b6ab7..2680bf9f 100644 --- a/app/views/submissions_dashboard/index.html.erb +++ b/app/views/submissions_dashboard/index.html.erb @@ -14,6 +14,16 @@ <% if params[:q].present? || @pagy.pages > 1 || filter_params.present? %> <%= render 'shared/search_input' %> <% end %> + <% if can?(:create, ::Template) %> + + <%= link_to new_template_path, class: 'white-button !border gap-2', data: { turbo_frame: :modal } do %> + <%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %> + + <% end %> + <% end %> + <% view_archived_html = capture do %> diff --git a/app/views/template_folders/show.html.erb b/app/views/template_folders/show.html.erb index 2934f6a2..2e09b881 100644 --- a/app/views/template_folders/show.html.erb +++ b/app/views/template_folders/show.html.erb @@ -33,7 +33,16 @@ <% if params[:q].present? || @pagy.pages > 1 || @template_folders.present? %> <%= render 'shared/search_input' %> <% end %> - + <% if can?(:create, ::Template) %> + + <%= link_to new_template_path(folder_name: @template_folder.full_name), class: 'white-button !border gap-2', data: { turbo_frame: :modal } do %> + <%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %> + + <% end %> + <% end %> + <% if @template_folders.present? %>