Commit 51ce7426 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

syntaxe améliorée pour la création de widgets

parent 41503a26
Loading
Loading
Loading
Loading
+1 −2
Changes for module/Application/view/application/autres/saisie.phtml: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ echo $this->form()->openTag($form); ?>
    $(function ()
    {

        $.widget("ose.dossierAutres", {
        WidgetInitializer.add('autres-saisir', {
            jsonValueEditor: null,
            sqlValueEditor: null,

@@ -122,7 +122,6 @@ echo $this->form()->openTag($form); ?>
            }
        });

        WidgetInitializer.add('autres-saisir', 'dossierAutres');
    });


+3 −3
Changes for module/Application/view/application/contrat/modeles-editer.phtml: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -56,7 +56,8 @@ WHERE c.contrat_id = :contrat</pre>
        </div>
    <?php endfor; ?>
    <button type="button" class="btn btn-default btn-xs ajout-bloc">
        <span class="glyphicon glyphicon-plus"></span> Ajouter un bloc</button>
        <span class="glyphicon glyphicon-plus"></span> Ajouter un bloc
    </button>
</div>
<?php
echo $this->formSubmit($form->get('submit'));
@@ -68,7 +69,7 @@ echo $this->form()->closeTag();

    $(function ()
    {
        $.widget("ose.contratModelesEditer", {
        WidgetInitializer.add('contrat-modeles-editer', {
            requeteEditor: null,
            blocs: {},

@@ -148,7 +149,6 @@ echo $this->form()->closeTag();
            }
        });

        WidgetInitializer.add('contrat-modeles-editer', 'contratModelesEditer');
    });

</script>
+2 −2
Changes for module/Application/view/application/etat-sortie/saisir.phtml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@ echo $this->form()->closeTag();

    $(function ()
    {
        $.widget("ose.etatSortieSaisir", {

        WidgetInitializer.add('etat-sortie-saisir', {
            requeteEditor: null,
            paramsEditor: null,
            traitementPdfEditor: null,
@@ -208,7 +209,6 @@ echo $this->form()->closeTag();
            }
        });

        WidgetInitializer.add('etat-sortie-saisir', 'etatSortieSaisir');
    });

</script>
+1 −3
Changes for module/Application/view/application/formule/test-saisir.phtml: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -487,7 +487,7 @@ echo $this->tag('h1', ['class' => 'page-header'])->html($title);
<script type="text/javascript">
    $(function () {

        $.widget("ose.formuleTestIntervenant", {
        WidgetInitializer.add('formule-test-intervenant', {
            id: null,
            saving: false,
            structures: [],
@@ -1007,7 +1007,5 @@ echo $this->tag('h1', ['class' => 'page-header'])->html($title);

        });

        WidgetInitializer.add('formule-test-intervenant', 'formuleTestIntervenant');

    });
</script>
 No newline at end of file
+1 −2
Changes for module/Application/view/application/intervenant/saisir.phtml: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ if ($errors) {

        $(function ()
        {
            $.widget("ose.formIntervenantEdition", {
            WidgetInitializer.add('form-intervenant-edition', {

                _create: function ()
                {
@@ -192,7 +192,6 @@ if ($errors) {
                getUserUtilisateurElement: function () { return this.element.find('input[name="utilisateur[id]"]'); }
            });

            WidgetInitializer.add('form-intervenant-edition', 'formIntervenantEdition');
        })
        ;
    </script>
Loading