diff --git a/app/views/templates/show.html.erb b/app/views/templates/show.html.erb index 82ffb69e..feca3776 100644 --- a/app/views/templates/show.html.erb +++ b/app/views/templates/show.html.erb @@ -13,14 +13,18 @@ <% if params[:q].present? || params[:status].present? || filter_params.present? || @pagy.pages > 1 %> <%= render 'shared/search_input', title_selector: 'h2' %> <% end %> - <%= link_to new_template_submissions_export_path(@template, params.permit(:q, *Submissions::Filter::ALLOWED_PARAMS)), class: 'hidden md:flex btn btn-ghost text-base', data: { turbo_frame: 'modal' } do %> - <%= svg_icon('download', class: 'w-6 h-6 stroke-2') %> - <%= t('export') %> + <%= link_to new_template_submissions_export_path(@template, params.permit(:q, *Submissions::Filter::ALLOWED_PARAMS)), class: 'hidden md:flex btn btn-ghost text-base', aria: { label: "#{t('export')} - #{@template.name} #{t('submissions')}" }, data: { turbo_frame: 'modal' } do %> + <% end %> <% if !@template.archived_at? && can?(:create, Submission) %> - <%= link_to new_template_submission_path(@template), id: 'add_recipients_button', class: 'white-button !border', data: { turbo_frame: 'modal' } do %> - <%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %> - <%= t('add_recipients_html') %> + <%= link_to new_template_submission_path(@template), id: 'add_recipients_button', class: 'white-button !border', aria: { label: "#{t('add_recipients')} - #{@template.name}" }, data: { turbo_frame: 'modal' } do %> + <% end %> <% end %>