From 3edd1ab32d9a81e2b2a709ec3eecb02e202b588b Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Thu, 23 Jul 2026 21:20:22 +0300 Subject: [PATCH] fix invalid classes and html attributes --- app/views/esign_settings/_default_signature_row.html.erb | 2 +- app/views/esign_settings/show.html.erb | 2 +- app/views/icons/_brand_gdrive.html.erb | 2 +- app/views/mcp_settings/index.html.erb | 2 +- app/views/templates/_submission.html.erb | 2 +- app/views/templates/_template.html.erb | 2 +- app/views/templates_folders/edit.html.erb | 4 +--- app/views/templates_preferences/show.html.erb | 2 +- app/views/user_initials/edit.html.erb | 2 +- app/views/user_signatures/edit.html.erb | 2 +- app/views/users/index.html.erb | 2 +- app/views/webhook_events/_drawer_events.html.erb | 2 +- 12 files changed, 12 insertions(+), 14 deletions(-) diff --git a/app/views/esign_settings/_default_signature_row.html.erb b/app/views/esign_settings/_default_signature_row.html.erb index 46e86e4c..1cb2148c 100644 --- a/app/views/esign_settings/_default_signature_row.html.erb +++ b/app/views/esign_settings/_default_signature_row.html.erb @@ -1,4 +1,4 @@ - + <%= svg_icon('discount_check_filled', class: 'w-6 h-6 shrink-0 text-green-500') %> diff --git a/app/views/esign_settings/show.html.erb b/app/views/esign_settings/show.html.erb index bf9bf4a8..82a5a10e 100644 --- a/app/views/esign_settings/show.html.erb +++ b/app/views/esign_settings/show.html.erb @@ -72,7 +72,7 @@ <% @pkcs_list.each do |item| %> <% next if item['pkcs'].blank? %> - + <%= item['name'] %> diff --git a/app/views/icons/_brand_gdrive.html.erb b/app/views/icons/_brand_gdrive.html.erb index 2a9bffbb..d5059f45 100644 --- a/app/views/icons/_brand_gdrive.html.erb +++ b/app/views/icons/_brand_gdrive.html.erb @@ -1 +1 @@ - + diff --git a/app/views/mcp_settings/index.html.erb b/app/views/mcp_settings/index.html.erb index 7896a4e6..d0e5c46b 100644 --- a/app/views/mcp_settings/index.html.erb +++ b/app/views/mcp_settings/index.html.erb @@ -67,7 +67,7 @@ <% @mcp_tokens.each do |mcp_token| %> - + <%= mcp_token.name %> diff --git a/app/views/templates/_submission.html.erb b/app/views/templates/_submission.html.erb index 829dd3ab..8ac88786 100644 --- a/app/views/templates/_submission.html.erb +++ b/app/views/templates/_submission.html.erb @@ -1,5 +1,5 @@ <% status_badges = { 'awaiting' => 'badge-info', 'sent' => 'badge-info', 'completed' => 'badge-success', 'opened' => 'badge-warning', 'declined' => 'badge-error' } %> -
+
<% if local_assigns[:with_template] %> <% template = submission.template %> diff --git a/app/views/templates/_template.html.erb b/app/views/templates/_template.html.erb index 80f93c5c..79985645 100644 --- a/app/views/templates/_template.html.erb +++ b/app/views/templates/_template.html.erb @@ -60,7 +60,7 @@ <% end %> <% if can?(:destroy, template) %> - <%= button_to template_path(template), data: template.archived_at? ? { turbo_confirm: t('template_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } : {}, params: { permanently: template.archived_at? }.compact_blank, method: :delete, class: 'btn btn-xs hover:btn-outline bg-base-200 btn-circle', aria_label: t('restore') do %> + <%= button_to template_path(template), data: template.archived_at? ? { turbo_confirm: t('template_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } : {}, params: { permanently: template.archived_at? }.compact_blank, method: :delete, class: 'btn btn-xs hover:btn-outline bg-base-200 btn-circle', aria: { label: template.archived_at? ? t('delete') : t('archive') } do %> <%= svg_icon(template.archived_at? ? 'trash' : 'archive', class: 'w-4 h-4 enabled') %> <%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %> <% end %> diff --git a/app/views/templates_folders/edit.html.erb b/app/views/templates_folders/edit.html.erb index b9bea18c..cd2a83ee 100644 --- a/app/views/templates_folders/edit.html.erb +++ b/app/views/templates_folders/edit.html.erb @@ -10,9 +10,7 @@ <%= svg_icon('folder', class: 'w-5 h-5 flex-shrink-0 group-hover:hidden mr-1') %> <%= svg_icon('folder_share', class: 'w-5 h-5 flex-shrink-0 hidden group-hover:inline mr-1') %> - - <%= @template.folder.parent_folder&.name || @template.folder.name %> - + <%= @template.folder.parent_folder&.name || @template.folder.name %>
diff --git a/app/views/templates_preferences/show.html.erb b/app/views/templates_preferences/show.html.erb index 15fdb14d..df67e61b 100644 --- a/app/views/templates_preferences/show.html.erb +++ b/app/views/templates_preferences/show.html.erb @@ -10,7 +10,7 @@ <% options.each_with_index do |(label, value), index| %> <%= radio_button_tag 'option', value, value == 'general', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %> - diff --git a/app/views/user_initials/edit.html.erb b/app/views/user_initials/edit.html.erb index 512b81a2..584cc274 100644 --- a/app/views/user_initials/edit.html.erb +++ b/app/views/user_initials/edit.html.erb @@ -5,7 +5,7 @@ <% options.each_with_index do |(label, value), index| %> <%= radio_button_tag 'option', value, value == 'draw', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %> - diff --git a/app/views/user_signatures/edit.html.erb b/app/views/user_signatures/edit.html.erb index 307fc0b0..ebfffbfd 100644 --- a/app/views/user_signatures/edit.html.erb +++ b/app/views/user_signatures/edit.html.erb @@ -5,7 +5,7 @@ <% options.each_with_index do |(label, value), index| %> <%= radio_button_tag 'option', value, value == 'draw', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %> - diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 7b0ac011..89ac36b9 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -56,7 +56,7 @@ <% @users.each do |user| %> - + <%= user.full_name %> diff --git a/app/views/webhook_events/_drawer_events.html.erb b/app/views/webhook_events/_drawer_events.html.erb index 1f79804f..461ce0cb 100644 --- a/app/views/webhook_events/_drawer_events.html.erb +++ b/app/views/webhook_events/_drawer_events.html.erb @@ -6,7 +6,7 @@ <% next_attempt_at = last_attempt.created_at + (2**last_attempt.attempt).minutes %> <% if webhook_event.webhook_attempts.none?(&:success?) && last_attempt.attempt <= 10 && next_attempt_at > 30.seconds.ago %>
  • - + <%= svg_icon('clock', class: 'w-4 h-4 shrink-0') %>