Commit 80242423 authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Début ajout recherche par orga

parent c8d34233
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -65,7 +65,8 @@ class ConventionModeleEtapeInformation
    const TYPE_CHOIX_D_UNE_SEULE_REPONSE_PARMI_DES_PROPOSITIONS = 'Choix d\'une seule réponse parmi des propositions';
    const TYPE_SAISIE_LIBRE = 'Saisie libre';
    const TYPE_DATE = 'Date';
    const TYPES = [\Oscar\Entity\ConventionModeleEtapeInformation::TYPE_CHOIX_D_UNE_SEULE_REPONSE_PARMI_DES_PROPOSITIONS, \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_SAISIE_LIBRE, \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_DATE];
    const TYPE_RECHERCHE_D_UNE_ORGANISATION = 'Recherche d\'une organisation';
    const TYPES = [\Oscar\Entity\ConventionModeleEtapeInformation::TYPE_CHOIX_D_UNE_SEULE_REPONSE_PARMI_DES_PROPOSITIONS, \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_SAISIE_LIBRE, \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_DATE, \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_RECHERCHE_D_UNE_ORGANISATION];

    /**
     * Liste des réponses.
+13 −2
Original line number Diff line number Diff line
@@ -79,13 +79,24 @@
          <?php elseif ($information->type == \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_SAISIE_LIBRE): ?>

          <div>
            <input type="text" size="80" id="<?= $reponse ?>" name="reponse-<?= $information->id ?>" <?= $information->obligatoire ? 'required' : '' ?> />
            <input type="text" size="80" id="reponse-<?= $information->id ?>" name="reponse-<?= $information->id ?>" <?= $information->obligatoire ? 'required' : '' ?> />
          </div>

          <?php elseif ($information->type == \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_DATE): ?>

          <div>
            <input type="date" id="<?= $reponse ?>" name="reponse-<?= $information->id ?>" <?= $information->obligatoire ? 'required' : '' ?> />
            <input type="date" id="reponse-<?= $information->id ?>" name="reponse-<?= $information->id ?>" <?= $information->obligatoire ? 'required' : '' ?> />
          </div>

          <?php elseif ($information->type == \Oscar\Entity\ConventionModeleEtapeInformation::TYPE_RECHERCHE_D_UNE_ORGANISATION): ?>

          <div>
            <label>Rechercher une organisation par SIREN, par nom... :</label> <input type="text" size="40" id="reponse-<?= $information->id ?>-recherche" name="reponse-<?= $information->id ?>-recherche" />
          </div>

          <div>
            <label>SIRET</label>
            <input type="text" size="80" id="reponse-<?= $information->id ?>-siret" name="reponse-<?= $information->id ?>-siret" />
          </div>

          <?php endif; ?>