-
Notifications
You must be signed in to change notification settings - Fork 42
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
Créneaux type : améliorations cosmétiques & d'url #627
Conversation
{{ form_end(delete_form) }} | ||
<a href="#remove-period" class="modal-trigger btn waves-effect waves-light red" title="supprimer le créneau type"> | ||
Supprimer | ||
</a> |
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.
Tu utilises une modal pour faire la confirmation, est-ce qu'on ne devrait pas essayer d'uniformiser la façon de faire avec les autres vues ?
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.
tu voudrais uniformiser dans le sens du onsubmit="return confirm()
ou du modal-trigger
?
je penche pour le modal-trigger
, on l'utilise pour la suppression de compte, mais aussi à d'autres endroits pour avoir des formulaires dans la modale, ca permet de mettre d'avantage de contexte. Par exemple dans cette modale on pourrait lister en détails les impacts d'une suppression d'un créneau type, alors que dans une alert JS c'est très/trop minimaliste non ?
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.
@petitalb up :)
je pensais ensuite faire les modifs d'ajout de modal de confirmation dans bucket_modal
(dans une autre PR)
{{ form_widget(positions_delete_form[position.id]) }} | ||
<a href="#" onclick="var r = confirm('Supprimer ce poste ?!'); if (r == true) {$(this).closest('form').submit();}; event.stopPropagation();" title="Supprimer ce poste" class="red-text">✗</a> | ||
{{ form_end(positions_delete_form[position.id]) }} | ||
</div> |
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.
Est-ce qu'on veut vraiment modifier ça ? Je veux dire par là que c'est bien d'un point de vu UX de garder la même façon de faire pour la partie "semaine type" et la partie "créneau généré".
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.
Justement, en terme d'UX je trouve que ce fonctionnement ici (icone de croix rouge tout à droite + alerte JS) n'est pas homogène avec le reste de l'app (bouton Supprimer claire + situé en dessous des infos + modale de confirmation pour être sûr)
853abcf
to
d65e3ae
Compare
d65e3ae
to
e849cff
Compare
* Add confirmation form on period delete * Improve url mapping of periodController (CRUD) * Same for book & free endpoints * Move periodposition delete form to collapsible content * Commit post-rebase. add createDeletePeriodPositionForm
Modifications apportées :
collapsible-body
/period/{id}/position
^^