Loading src/UnicaenAutoform/View/Helper/partial/input/plus_custom.phtml +26 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,30 @@ $array = "[" . implode(",", $temp) . "]"; <script> function initTinymce() { tinymce.remove(); tinymce.init({ selector: '.tinymce', toolbar: 'newdocument undo redo | bold italic underline removeformat | bullist', resize: true, language: 'fr_FR', plugins: 'lists', statusbar: true, browser_spellcheck: true, branding: false, menu: {}, menubar: false, height: 250, body_id: 'description', setup: function (editor) { editor.on("focusout", function () { console.log(tinymce.get('description').getContent()); $('textarea').val(tinymce.get('description').getContent()); }); } }); }; function readOptions(optionsText) { let array = optionsText.split(';'); let fields = []; Loading Loading @@ -67,6 +91,8 @@ $array = "[" . implode(",", $temp) . "]"; } } } initTinymce(); }); function removeIt(element) { Loading src/UnicaenAutoform/View/Helper/partial/input/textarea.phtml +33 −19 Original line number Diff line number Diff line Loading @@ -9,6 +9,19 @@ use UnicaenAutoform\Entity\Db\Champ; $options = ($champ->getOptions() !== null)??explode(';', $champ->getOptions()); ?> <?php if (in_array('non modifiable', $options)) : ?> <div> <?php if ($champ->getTexte() !== 'nil') : ?> <?php echo $champ->getLibelle(); ?> : <?php endif; ?> <?php if ($reponse !== 'null') : ?> <div style="border-left: 1px solid grey; background: whitesmoke;margin: 0.25rem;padding: 0.5rem;"> <?php echo $reponse; ?> </div> <?php endif; ?> </div> <?php else : ?> <div class="row"> <div class="form-group"> <?php if (trim($champ->getLibelle()) !== 'nil') : ?> Loading @@ -32,6 +45,7 @@ $options = ($champ->getOptions() !== null)??explode(';', $champ->getOptions()); </div> </div> </div> <?php endif; ?> <style> textarea { Loading Loading
src/UnicaenAutoform/View/Helper/partial/input/plus_custom.phtml +26 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,30 @@ $array = "[" . implode(",", $temp) . "]"; <script> function initTinymce() { tinymce.remove(); tinymce.init({ selector: '.tinymce', toolbar: 'newdocument undo redo | bold italic underline removeformat | bullist', resize: true, language: 'fr_FR', plugins: 'lists', statusbar: true, browser_spellcheck: true, branding: false, menu: {}, menubar: false, height: 250, body_id: 'description', setup: function (editor) { editor.on("focusout", function () { console.log(tinymce.get('description').getContent()); $('textarea').val(tinymce.get('description').getContent()); }); } }); }; function readOptions(optionsText) { let array = optionsText.split(';'); let fields = []; Loading Loading @@ -67,6 +91,8 @@ $array = "[" . implode(",", $temp) . "]"; } } } initTinymce(); }); function removeIt(element) { Loading
src/UnicaenAutoform/View/Helper/partial/input/textarea.phtml +33 −19 Original line number Diff line number Diff line Loading @@ -9,6 +9,19 @@ use UnicaenAutoform\Entity\Db\Champ; $options = ($champ->getOptions() !== null)??explode(';', $champ->getOptions()); ?> <?php if (in_array('non modifiable', $options)) : ?> <div> <?php if ($champ->getTexte() !== 'nil') : ?> <?php echo $champ->getLibelle(); ?> : <?php endif; ?> <?php if ($reponse !== 'null') : ?> <div style="border-left: 1px solid grey; background: whitesmoke;margin: 0.25rem;padding: 0.5rem;"> <?php echo $reponse; ?> </div> <?php endif; ?> </div> <?php else : ?> <div class="row"> <div class="form-group"> <?php if (trim($champ->getLibelle()) !== 'nil') : ?> Loading @@ -32,6 +45,7 @@ $options = ($champ->getOptions() !== null)??explode(';', $champ->getOptions()); </div> </div> </div> <?php endif; ?> <style> textarea { Loading