Commit 273417d4 by Damien Moulard

information popup: fixes and improvements

parent 4b21ca29
...@@ -433,4 +433,8 @@ form[name="formEncaissement"] label { ...@@ -433,4 +433,8 @@ form[name="formEncaissement"] label {
.tav-cotisation-payment-form { .tav-cotisation-payment-form {
display: none; display: none;
margin-top: 1rem; margin-top: 1rem;
}
#infoForUserModal .modal-body {
word-break: break-all;
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
CKEditor 4 LTS ("Long Term Support") is available under the terms of the Extended Support Model.
*/
CKEDITOR.dialog.add("anchor",function(c){function f(b,a){return b.createFakeElement(b.document.createElement("a",{attributes:a}),"cke_anchor","anchor")}return{title:c.lang.link.anchor.title,minWidth:300,minHeight:60,getModel:function(b){var a=b.getSelection();b=a.getRanges()[0];a=a.getSelectedElement();b.shrink(CKEDITOR.SHRINK_ELEMENT);(a=b.getEnclosedNode())&&a.type===CKEDITOR.NODE_TEXT&&(a=a.getParent());a&&!a.is("a")&&(a=a.getAscendant("a")||a);b=a&&a.type===CKEDITOR.NODE_ELEMENT&&("anchor"===
a.data("cke-real-element-type")||a.is("a"))?a:void 0;return b||null},onOk:function(){var b=CKEDITOR.tools.trim(this.getValueOf("info","txtName")),b={id:b,name:b,"data-cke-saved-name":b},a=this.getModel(c);if(a)a.data("cke-realelement")?(b=f(c,b),b.replace(a),CKEDITOR.env.ie&&c.getSelection().selectElement(b)):a.setAttributes(b);else if(a=(a=c.getSelection())&&a.getRanges()[0],a.collapsed)b=f(c,b),a.insertNode(b);else{CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(b["class"]="cke_anchor");var d=a.clone();
d.enlarge(CKEDITOR.ENLARGE_ELEMENT);for(var e=new CKEDITOR.dom.walker(d),d=d.collapsed?d.startContainer:e.next(),g=a.createBookmark();d;)d.type===CKEDITOR.NODE_ELEMENT&&d.getAttribute("data-cke-saved-name")&&(d.remove(!0),e.reset()),d=e.next();a.moveToBookmark(g);b=new CKEDITOR.style({element:"a",attributes:b});b.type=CKEDITOR.STYLE_INLINE;b.applyToRange(a)}},onShow:function(){var b=c.getSelection(),a=this.getModel(c),d=a&&a.data("cke-realelement");if(a=d?CKEDITOR.plugins.link.tryRestoreFakeAnchor(c,
a):CKEDITOR.plugins.link.getSelectedLink(c)){var e=a.data("cke-saved-name");this.setValueOf("info","txtName",e||"");!d&&b.selectElement(a)}this.getContentElement("info","txtName").focus()},contents:[{id:"info",label:c.lang.link.anchor.title,accessKey:"I",elements:[{type:"text",id:"txtName",label:c.lang.link.anchor.name,required:!0,validate:function(){var b=this.getValue();return b?/[\u0020\u0009\u000a\u000c\u000d]/g.test(b)?(alert(c.lang.link.anchor.errorWhitespace),!1):!0:(alert(c.lang.link.anchor.errorName),
!1)}}]}]}});
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"/build/app.3644f7b2.js" "/build/app.3644f7b2.js"
], ],
"css": [ "css": [
"/build/app.8a3f698b.css" "/build/app.ec67f059.css"
] ]
}, },
"admin": { "admin": {
......
{ {
"build/app.css": "/build/app.8a3f698b.css", "build/app.css": "/build/app.ec67f059.css",
"build/app.js": "/build/app.3644f7b2.js", "build/app.js": "/build/app.3644f7b2.js",
"build/admin.css": "/build/admin.4de55830.css", "build/admin.css": "/build/admin.4de55830.css",
"build/admin.js": "/build/admin.a08fea06.js", "build/admin.js": "/build/admin.a08fea06.js",
......
...@@ -35,14 +35,15 @@ class InformationPopupAdmin extends AbstractAdmin ...@@ -35,14 +35,15 @@ class InformationPopupAdmin extends AbstractAdmin
'label' => 'Texte du bouton de validation', 'label' => 'Texte du bouton de validation',
'required' => true, 'required' => true,
'attr' => [ 'attr' => [
'placeholder' => 'Par exemple : "J\'ai compris", "Ok"...', 'placeholder' => 'Par exemple : "J\'ai compris", "J\'ai bien effectué l\'action"...',
] ],
'help' => 'Le clic sur ce bouton entraînera la fermeture définitive de cette popup pour cet utilisateur, il est donc conseillé d\'y renseigner un texte explicite.'
]) ])
->add('closingButtonText', TextType::class, [ ->add('closingButtonText', TextType::class, [
'label' => 'Texte du bouton de fermeture', 'label' => 'Texte du bouton de fermeture',
'required' => true, 'required' => true,
'attr' => [ 'attr' => [
'placeholder' => 'Par exemple : "Annuler", "Fermer pour l\'instant"...', 'placeholder' => 'Par exemple : "Fermer pour l\'instant", "Je le ferai plus tard"...',
] ]
]) ])
->add('enabled', null, [ ->add('enabled', null, [
......
<!-- Modal --> <!-- Modal -->
{% set informationPopupData = getInformationPopupData() %} {% set informationPopupData = getInformationPopupData() %}
<div class="modal fade" id="infoForUserModal" tabindex="-1" role="dialog" aria-labelledby="infoForUserModalTitle" aria-hidden="true"> <div class="modal fade" id="infoForUserModal" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="infoForUserModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
{% if informationPopupData %} {% if informationPopupData %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment