From c5333887ccf6bf7c9456d38e86c06788b3b065a8 Mon Sep 17 00:00:00 2001 From: afornerot Date: Thu, 8 Dec 2022 10:12:54 +0100 Subject: [PATCH] ajout info dnma --- .../Cadoles/PortalBundle/Form/ItemType.php | 1 + .../Resources/views/Item/dnma.html.twig | 138 ++++++++++++++++++ .../Resources/views/Item/edit.html.twig | 23 ++- 3 files changed, 159 insertions(+), 3 deletions(-) create mode 100644 src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/dnma.html.twig diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php index 59376d62..5b49bce4 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php @@ -159,6 +159,7 @@ class ItemType extends AbstractType ->add('clicksondeservice', ChoiceType::class, [ "label" => 'Type de Service associé à la sonde', + "label_attr" => array("style" => "display:inline"), "placeholder" => 'Sélectionner un service', "required" => false, "choices" => [ diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/dnma.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/dnma.html.twig new file mode 100644 index 00000000..466d10b6 --- /dev/null +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/dnma.html.twig @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig index ae1f9fc2..690e9946 100755 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig @@ -68,9 +68,9 @@ {% endif %} {% if form.clicksondeservice is defined %} -
- {{ form_row(form.clicksondeservice) }} -
+ {{ form_label(form.clicksondeservice) }} + + {{ form_widget(form.clicksondeservice) }}
{% endif %} {{ form_row(form.color) }} @@ -89,6 +89,23 @@ {{ form_end(form) }} + + + + {% endblock %} {% block localjavascript %}