chore(coldwired): data-turbo-force needs to be explicit
This commit is contained in:
parent
74cb7446ea
commit
c040cf5a65
10 changed files with 9 additions and 10 deletions
|
@ -73,7 +73,7 @@ class Attachment::EditComponent < ApplicationComponent
|
||||||
aria: { describedby: champ&.describedby_id },
|
aria: { describedby: champ&.describedby_id },
|
||||||
data: {
|
data: {
|
||||||
auto_attach_url:,
|
auto_attach_url:,
|
||||||
turbo_force: true
|
turbo_force: :server
|
||||||
}.merge(has_file_size_validator? ? { max_file_size: } : {})
|
}.merge(has_file_size_validator? ? { max_file_size: } : {})
|
||||||
.merge(user_can_replace? ? { replace_attachment_target: "input" } : {})
|
.merge(user_can_replace? ? { replace_attachment_target: "input" } : {})
|
||||||
}.merge(has_content_type_validator? ? { accept: accept_content_type } : {})
|
}.merge(has_content_type_validator? ? { accept: accept_content_type } : {})
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
= t('.action_choice')
|
= t('.action_choice')
|
||||||
- @api_token.allowed_procedures.each do |procedure|
|
- @api_token.allowed_procedures.each do |procedure|
|
||||||
= f.hidden_field :allowed_procedure_ids, value: procedure.id, multiple: true, id: dom_id(procedure, :allowed_procedure)
|
= f.hidden_field :allowed_procedure_ids, value: procedure.id, multiple: true, id: dom_id(procedure, :allowed_procedure)
|
||||||
.flex.justify-between.align-center{ 'data-turbo-force': true }
|
.flex.justify-between.align-center{ 'data-turbo-force': :server }
|
||||||
= f.select :allowed_procedure_ids, procedures_to_allow_options, {prompt: t('.prompt_choose_procedure')}, { class: 'no-margin width-66 small', name: "api_token[allowed_procedure_ids][]" }
|
= f.select :allowed_procedure_ids, procedures_to_allow_options, {prompt: t('.prompt_choose_procedure')}, { class: 'no-margin width-66 small', name: "api_token[allowed_procedure_ids][]" }
|
||||||
= f.button type: :submit, class: "fr-btn fr-btn--secondary" do
|
= f.button type: :submit, class: "fr-btn fr-btn--secondary" do
|
||||||
= t('.add')
|
= t('.add')
|
||||||
|
|
|
@ -36,7 +36,6 @@ export class TurboController extends ApplicationController {
|
||||||
element: document.body,
|
element: document.body,
|
||||||
schema: {
|
schema: {
|
||||||
forceAttribute: 'data-turbo-force',
|
forceAttribute: 'data-turbo-force',
|
||||||
permanentAttribute: 'data-turbo-permanent',
|
|
||||||
focusGroupAttribute: 'data-turbo-focus-group',
|
focusGroupAttribute: 'data-turbo-focus-group',
|
||||||
focusDirectionAttribute: 'data-turbo-focus-direction',
|
focusDirectionAttribute: 'data-turbo-focus-direction',
|
||||||
hiddenClassName: 'hidden'
|
hiddenClassName: 'hidden'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
= form_for procedure.administrateurs.new(user: User.new),
|
= form_for procedure.administrateurs.new(user: User.new),
|
||||||
url: { controller: 'procedure_administrateurs' },
|
url: { controller: 'procedure_administrateurs' },
|
||||||
html: { class: 'form', id: "new_administrateur" },
|
html: { class: 'form', id: "new_administrateur" },
|
||||||
data: { turbo: true, turbo_force: true } do |f|
|
data: { turbo: true, turbo_force: :server } do |f|
|
||||||
= f.label :email do
|
= f.label :email do
|
||||||
Ajouter un administrateur
|
Ajouter un administrateur
|
||||||
%p.notice Renseignez l’email d’un administrateur déjà enregistré sur #{APPLICATION_NAME} pour lui permettre de modifier « #{procedure.libelle} ».
|
%p.notice Renseignez l’email d’un administrateur déjà enregistré sur #{APPLICATION_NAME} pour lui permettre de modifier « #{procedure.libelle} ».
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
||||||
|
|
||||||
= f.label 'email', 'Recercher des administrateurs par email', class: 'fr-label'
|
= f.label 'email', 'Recercher des administrateurs par email', class: 'fr-label'
|
||||||
= f.search_field 'email', size: 40, class: 'fr-input', data: { turbo_force: true }
|
= f.search_field 'email', size: 40, class: 'fr-input', data: { turbo_force: :server }
|
||||||
.actions= link_to 'Voir la liste des démarches', all_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
.actions= link_to 'Voir la liste des démarches', all_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
||||||
.fr-table.fr-table--bordered
|
.fr-table.fr-table--bordered
|
||||||
%table#all-admins
|
%table#all-admins
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
||||||
|
|
||||||
= f.label :libelle, 'Rechercher des démarches par libellé', class: 'fr-label'
|
= f.label :libelle, 'Rechercher des démarches par libellé', class: 'fr-label'
|
||||||
= f.search_field 'libelle', size: 30, class: 'fr-input', data: { turbo_force: true }
|
= f.search_field 'libelle', size: 30, class: 'fr-input', data: { turbo_force: :server }
|
||||||
.actions
|
.actions
|
||||||
.link.fr-mx-1w= link_to 'Voir les administrateurs', administrateurs_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
.link.fr-mx-1w= link_to 'Voir les administrateurs', administrateurs_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
||||||
.link.fr-mx-1w{ "data-turbo": "false" }= link_to 'Exporter les résultats', all_admin_procedures_path(@filter.params.merge(format: :xlsx)), class: 'fr-btn fr-btn--secondary'
|
.link.fr-mx-1w{ "data-turbo": "false" }= link_to 'Exporter les résultats', all_admin_procedures_path(@filter.params.merge(format: :xlsx)), class: 'fr-btn fr-btn--secondary'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
%br
|
%br
|
||||||
= t('.fill_in_password')
|
= t('.fill_in_password')
|
||||||
|
|
||||||
= form_tag france_connect_particulier_merge_with_existing_account_path, data: { turbo: true, turbo_force: true }, class: 'mt-2 form fconnect-form' do
|
= form_tag france_connect_particulier_merge_with_existing_account_path, data: { turbo: true, turbo_force: :server }, class: 'mt-2 form fconnect-form' do
|
||||||
= hidden_field_tag :merge_token, merge_token
|
= hidden_field_tag :merge_token, merge_token
|
||||||
= hidden_field_tag :email, email
|
= hidden_field_tag :email, email
|
||||||
= label_tag :password, t('views.registrations.new.password_label', min_length: 8)
|
= label_tag :password, t('views.registrations.new.password_label', min_length: 8)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- if dossier.en_instruction?
|
- if dossier.en_instruction?
|
||||||
= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: { data: {'turbo-force': true} }, button_options: { class: [button_or_label_class(dossier)]}, role: dossier.en_instruction? ? :region : :menu) do |menu|
|
= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: { data: { turbo_force: :server } }, button_options: { class: [button_or_label_class(dossier)]}, role: dossier.en_instruction? ? :region : :menu) do |menu|
|
||||||
- menu.with_button_inner_html do
|
- menu.with_button_inner_html do
|
||||||
Instruire le dossier
|
Instruire le dossier
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
%p= t('views.invites.form.invite_to_edit_line1')
|
%p= t('views.invites.form.invite_to_edit_line1')
|
||||||
%p= t('views.invites.form.invite_to_edit_line2')
|
%p= t('views.invites.form.invite_to_edit_line2')
|
||||||
|
|
||||||
= form_tag dossier_invites_path(dossier), data: { turbo: true, turbo_force: true }, method: :post, class: 'form' do
|
= form_tag dossier_invites_path(dossier), data: { turbo: true, turbo_force: :server }, method: :post, class: 'form' do
|
||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
%span
|
%span
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
Tags
|
Tags
|
||||||
.fr-ml-1w.hidden{ 'data-expand-target': 'content' }
|
.fr-ml-1w.hidden{ 'data-expand-target': 'content' }
|
||||||
%div
|
%div
|
||||||
= f.search_field :tags, placeholder: 'Choisissez un tag', list: 'tags_list', class: 'fr-input', data: { no_autosubmit: 'input', turbo_force: true }, multiple: true
|
= f.search_field :tags, placeholder: 'Choisissez un tag', list: 'tags_list', class: 'fr-input', data: { no_autosubmit: 'input', turbo_force: :server }, multiple: true
|
||||||
%datalist#tags_list
|
%datalist#tags_list
|
||||||
- Procedure.tags.each do |tag|
|
- Procedure.tags.each do |tag|
|
||||||
%option{ value: tag }
|
%option{ value: tag }
|
||||||
|
|
Loading…
Reference in a new issue