diff --git a/README.md b/README.md index 9d41c3937..50665adff 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ En local, un utilisateur de test est créé automatiquement, avec les identifian AutoArchiveProcedureJob.set(cron: "* * * * *").perform_later WeeklyOverviewJob.set(cron: "0 8 * * 0").perform_later AutoReceiveDossiersForProcedureJob.set(cron: "* * * * *").perform_later(procedure_declaratoire_id, Dossier.states.fetch(:en_instruction)) + SendinblueUpdateAdministrateursJob.set(cron: "0 10 * * *").perform_later FindDubiousProceduresJob.set(cron: "0 0 * * *").perform_later Administrateurs::ActivateBeforeExpirationJob.set(cron: "0 8 * * *").perform_later WarnExpiringDossiersJob.set(cron: "0 0 1 * *").perform_later diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index 5a7579fa7..c8cb4138a 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -204,7 +204,7 @@ class StatsController < ApplicationController def max_date if administration_signed_in? - Time.zone.now.to_date + Time.zone.now else Time.zone.now.beginning_of_month - 1.second end diff --git a/app/controllers/webhook_controller.rb b/app/controllers/webhook_controller.rb index cdce598a5..8ee719820 100644 --- a/app/controllers/webhook_controller.rb +++ b/app/controllers/webhook_controller.rb @@ -33,7 +33,7 @@ class WebhookController < ActionController::Base private def link_to_manager(model, url) - "#{model.model_name.human}##{model.id}" + "#{model.model_name.human}##{model.id}" end def verify_signature! diff --git a/app/dashboards/procedure_dashboard.rb b/app/dashboards/procedure_dashboard.rb index 7e2b0df69..f56e6abed 100644 --- a/app/dashboards/procedure_dashboard.rb +++ b/app/dashboards/procedure_dashboard.rb @@ -35,7 +35,8 @@ class ProcedureDashboard < Administrate::BaseDashboard received_mail_template: MailTemplateField, closed_mail_template: MailTemplateField, refused_mail_template: MailTemplateField, - without_continuation_mail_template: MailTemplateField + without_continuation_mail_template: MailTemplateField, + attestation_template: AttestationTemplateField }.freeze # COLLECTION_ATTRIBUTES @@ -81,7 +82,8 @@ class ProcedureDashboard < Administrate::BaseDashboard :received_mail_template, :closed_mail_template, :refused_mail_template, - :without_continuation_mail_template + :without_continuation_mail_template, + :attestation_template ].freeze # FORM_ATTRIBUTES diff --git a/app/fields/attestation_template_field.rb b/app/fields/attestation_template_field.rb new file mode 100644 index 000000000..850d35d3d --- /dev/null +++ b/app/fields/attestation_template_field.rb @@ -0,0 +1,4 @@ +require "administrate/field/base" + +class AttestationTemplateField < Administrate::Field::Base +end diff --git a/app/helpers/string_to_html_helper.rb b/app/helpers/string_to_html_helper.rb index 2e01ab99b..76a595699 100644 --- a/app/helpers/string_to_html_helper.rb +++ b/app/helpers/string_to_html_helper.rb @@ -1,7 +1,7 @@ module StringToHtmlHelper def string_to_html(str) html_formatted = simple_format(str) - with_links = html_formatted.gsub(URI.regexp, '\0') - sanitize(with_links, attributes: ['href', 'target']) + with_links = html_formatted.gsub(URI.regexp, '\0') + sanitize(with_links, attributes: ['target', 'rel', 'href']) end end diff --git a/app/javascript/new_design/administrateur/DraggableItem.vue b/app/javascript/new_design/administrateur/DraggableItem.vue index 1351dc395..2de6f4075 100644 --- a/app/javascript/new_design/administrateur/DraggableItem.vue +++ b/app/javascript/new_design/administrateur/DraggableItem.vue @@ -96,7 +96,7 @@ Modèle