-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ETQ admin je suis informé des infos remontées par le champ SIRET #11013
Merged
colinux
merged 3 commits into
demarches-simplifiees:main
from
colinux:admin-knows-api-fields
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
...ssiers/invalid_ineligibilite_rules_component/invalid_ineligibilite_rules_component.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
fr: | ||
en: | ||
modal: | ||
title: "Your file does not match submission criteria" | ||
close: "Close" | ||
close_alt: "Close this modal" | ||
body: "The procedure « %{procedure_libelle} » have submission criteria, unfortunately your file does not match them. You can not submit your file" | ||
title: 'Your file does not match submission criteria' |
4 changes: 1 addition & 3 deletions
4
...ssiers/invalid_ineligibilite_rules_component/invalid_ineligibilite_rules_component.fr.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
fr: | ||
modal: | ||
title: "Vous ne pouvez pas déposer votre dossier" | ||
close: "Fermer" | ||
close_alt: "Fermer la fenêtre modale" | ||
title: 'Vous ne pouvez pas déposer votre dossier' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ApplicationController } from './application_controller'; | ||
|
||
interface HTMLTurboFrameElement extends HTMLElement { | ||
src: string | null; | ||
} | ||
|
||
export default class LazyModalController extends ApplicationController { | ||
static targets = ['frame']; | ||
|
||
declare readonly frameTarget: HTMLTurboFrameElement; | ||
|
||
load(event: Event): void { | ||
const button = event.currentTarget as HTMLButtonElement; | ||
const frame = this.frameTarget; | ||
|
||
const src = button.getAttribute('src'); | ||
if (src) { | ||
frame.src = src; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/views/administrateurs/procedures/api_champ_columns.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
= turbo_frame_tag("api-champ-columns") do | ||
%h1#fr-modal-api-champ-columns-h1.fr-modal__title | ||
= t('.title', type_de_champ: t(@type_de_champ.type_champ, scope: 'activerecord.attributes.type_de_champ.type_champs')) | ||
|
||
%p.fr-hint-text | ||
= t('.hint_html') | ||
|
||
%ul.two-column-list.fr-mb-3w | ||
- @column_labels.each do |label| | ||
%li= label.upcase_first | ||
|
||
- if @type_de_champ.type_champ == "siret" | ||
%p.fr-hint-text | ||
Nous affichons aussi aux instructeurs un lien vers l’annuaire de l‘entreprise, | ||
qui comporte davantage d’informations comme des données équivalentes aux extraits KBIS. | ||
= link_to("Voir un exemple", annuaire_link("35600000000048"), **external_link_attributes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je trouve ça dommage de sortir de la grosse artillerie alors qu'on a l'information.
contre proposition
prefix
etname
aux colonnesdef label = prefix + name
et tu fais un simple
filter_map { _1.name }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Au départ j'étais parti sur un truc dans ce genre là. Ça amenait bcp de code "juste pour ça" ici surtout que c'est plus qu'une histoire de préfixe. Je sais plus bien mais ya déjà une notion de prefix et label qui a une logique un peu différente, ça menait de la confusion et exposait de nouvelles méthodes publiques. Avec je sais plus qui on était pas chaud pour changer le contrat maintenant.
Par contre sur le moyen terme quand on aura déployé ça à autre tdc , le bloc personne morale etc, et qu'on y verra plus clair sur nos besoins, on pourra carrément un plan plus uniforme