modification de l'entité et le form intervention et des templates intervention _form et new
This commit is contained in:
parent
d048f55ad5
commit
3777067950
@ -108,19 +108,19 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
#vehicule1 {
|
#oui {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: 30.7% 0 0 25%;
|
margin: 30.7% 0 0 25%;
|
||||||
}
|
}
|
||||||
#oui {
|
#oui p {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: 30.3% 0 0 27%;
|
margin: 30.3% 0 0 27%;
|
||||||
}
|
}
|
||||||
#vehicule2 {
|
#non {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: 30.7% 0 0 32%;
|
margin: 30.7% 0 0 32%;
|
||||||
}
|
}
|
||||||
#non {
|
#non p {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: 30.3% 0 0 34%;
|
margin: 30.3% 0 0 34%;
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,10 @@ class Intervention
|
|||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $Status = null;
|
private ?string $Status = null;
|
||||||
|
|
||||||
|
// #[ORM\ManyToOne(targetEntity: Vehicule::class)]
|
||||||
|
// private ?Vehicule $vehicule = null;
|
||||||
|
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
|
@ -22,6 +22,14 @@ class InterventionType extends AbstractType
|
|||||||
->add('Address', TextType::class)
|
->add('Address', TextType::class)
|
||||||
->add('Status', TextType::class)
|
->add('Status', TextType::class)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
// // 👉 Sélecteur de véhicule
|
||||||
|
// ->add('vehicule', EntityType::class, [
|
||||||
|
// 'class' => Vehicule::class,
|
||||||
|
// 'choice_label' => 'immatriculation', // ou n'importe quel champ que tu veux afficher
|
||||||
|
// 'placeholder' => 'Aucun véhicule sélectionné',
|
||||||
|
// 'required' => false,
|
||||||
|
// ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configureOptions(OptionsResolver $resolver): void
|
public function configureOptions(OptionsResolver $resolver): void
|
||||||
|
@ -1,4 +1,47 @@
|
|||||||
|
{#{{ form_start(form) }}#}
|
||||||
|
{# {{ form_widget(form) }}#}
|
||||||
|
{# <button class="btn">{{ button_label|default('Save') }}</button>#}
|
||||||
|
{#{{ form_end(form) }}#}
|
||||||
|
|
||||||
|
|
||||||
{{ form_start(form) }}
|
{{ form_start(form) }}
|
||||||
{{ form_widget(form) }}
|
|
||||||
<button class="btn">{{ button_label|default('Save') }}</button>
|
<div class="form-group">
|
||||||
|
{{ form_label(form.Wording, 'Nom de l\'intervention') }}
|
||||||
|
{{ form_widget(form.Wording, {'attr': {'class': 'form-control'}}) }}
|
||||||
|
{{ form_errors(form.Wording) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
{{ form_label(form.Timestamp, 'Date') }}
|
||||||
|
{{ form_widget(form.Timestamp, {'attr': {'class': 'form-control'}}) }}
|
||||||
|
{{ form_errors(form.Timestamp) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
{{ form_label(form.Description, 'Description') }}
|
||||||
|
{{ form_widget(form.Description, {'attr': {'class': 'form-control'}}) }}
|
||||||
|
{{ form_errors(form.Description) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
{{ form_label(form.Address, 'Adresse') }}
|
||||||
|
{{ form_widget(form.Address, {'attr': {'class': 'form-control'}}) }}
|
||||||
|
{{ form_errors(form.Address) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
{{ form_label(form.Status, 'Statut') }}
|
||||||
|
{{ form_widget(form.Status, {'attr': {'class': 'form-control'}}) }}
|
||||||
|
{{ form_errors(form.Status) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{#<div class="form-group">#}
|
||||||
|
{# {{ form_label(form.vehicule, 'Véhicule associé') }}#}
|
||||||
|
{# {{ form_widget(form.vehicule, {'attr': {'class': 'form-control'}}) }}#}
|
||||||
|
{# {{ form_errors(form.vehicule) }}#}
|
||||||
|
{#</div>#}
|
||||||
|
|
||||||
|
<button class="btn btn-primary mt-3">{{ button_label|default('Enregistrer') }}</button>
|
||||||
|
|
||||||
{{ form_end(form) }}
|
{{ form_end(form) }}
|
||||||
|
@ -24,54 +24,56 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="background-intervention">
|
<div class="background-intervention">
|
||||||
<input required id="nom" placeholder="Nom de l'intervention">
|
{# <input required id="nom" placeholder="Nom de l'intervention">#}
|
||||||
|
|
||||||
<select required type="select" name="pannes" id="pannes">
|
{# <select required type="select" name="pannes" id="pannes">#}
|
||||||
<option value="pan1">pan1</option>
|
{# <option value="pan1">pan1</option>#}
|
||||||
<option value="pan2">pan2</option>
|
{# <option value="pan2">pan2</option>#}
|
||||||
<option value="pan3">pan3</option>
|
{# <option value="pan3">pan3</option>#}
|
||||||
<option value="pan4">pan4</option>
|
{# <option value="pan4">pan4</option>#}
|
||||||
<option value="pan5">pan5</option>
|
{# <option value="pan5">pan5</option>#}
|
||||||
<option value="pan6">pan6</option>
|
{# <option value="pan6">pan6</option>#}
|
||||||
</select>
|
{# </select>#}
|
||||||
|
|
||||||
<select required type="select" name="pannes" id="employesCompetences">
|
{# <select required type="select" name="pannes" id="employesCompetences">#}
|
||||||
<option value="emp1">employé1 - sa compétence</option>
|
{# <option value="emp1">employé1 - sa compétence</option>#}
|
||||||
<option value="emp2">employé2 - sa compétence</option>
|
{# <option value="emp2">employé2 - sa compétence</option>#}
|
||||||
<option value="emp3">employé3 - sa compétence</option>
|
{# <option value="emp3">employé3 - sa compétence</option>#}
|
||||||
<option value="emp4">employé4 - sa compétence</option>
|
{# <option value="emp4">employé4 - sa compétence</option>#}
|
||||||
<option value="emp5">employé5 - sa compétence</option>
|
{# <option value="emp5">employé5 - sa compétence</option>#}
|
||||||
<option value="emp6">employé6 - sa compétence</option>
|
{# <option value="emp6">employé6 - sa compétence</option>#}
|
||||||
</select>
|
{# </select>#}
|
||||||
|
|
||||||
<!-- <input required id="employesCompetences" placeholder="Liste des employés et de leurs compétences"> -->
|
{# <!-- <input required id="employesCompetences" placeholder="Liste des employés et de leurs compétences"> -->#}
|
||||||
<select required type="select" name="piece" id="piece">
|
{# <select required type="select" name="piece" id="piece">#}
|
||||||
<option value="pièce1">Pièce affecter 1</option>
|
{# <option value="pièce1">Pièce affecter 1</option>#}
|
||||||
<option value="pièce2">Pièce affecter 2</option>
|
{# <option value="pièce2">Pièce affecter 2</option>#}
|
||||||
<option value="pièce3">Pièce affecter 3</option>
|
{# <option value="pièce3">Pièce affecter 3</option>#}
|
||||||
<option value="pièce4">Pièce affecter 4</option>
|
{# <option value="pièce4">Pièce affecter 4</option>#}
|
||||||
<option value="pièce5">Pièce affecter 5</option>
|
{# <option value="pièce5">Pièce affecter 5</option>#}
|
||||||
<option value="pièce6">Pièce affecter 6</option>
|
{# <option value="pièce6">Pièce affecter 6</option>#}
|
||||||
</select>
|
{# </select>#}
|
||||||
|
|
||||||
<p id="vehicule">Véhicule nécessaire</p>
|
{# <p id="vehicule">Véhicule nécessaire</p>#}
|
||||||
<input type="checkbox" name="vehicule1" id="vehicule1">
|
{# <form>#}
|
||||||
<label for=”vehicule1” id="oui"> Oui </label>
|
{# <label id="oui">#}
|
||||||
<input type="checkbox" name="vehicule2" id="vehicule2">
|
{# <input type="radio" name="choix" value="option1">#}
|
||||||
<label for=”vehicule2” id="non"> Non </label>
|
{# Oui </label>#}
|
||||||
|
{# <label id="non">#}
|
||||||
|
{# <input type="radio" name="choix" value="option2">#}
|
||||||
|
{# Non </label>#}
|
||||||
|
{# </form>#}
|
||||||
|
|
||||||
<p id="date">Jour de l'intervention</p>
|
{# <p id="date">Jour de l'intervention</p>#}
|
||||||
<input type="date" id="calendar">
|
{# <input type="date" id="calendar">#}
|
||||||
|
|
||||||
<input type="text" id="description" placeholder="Description">
|
{# <input type="text" id="description" placeholder="Description">#}
|
||||||
<input type="text" id="adresse" placeholder="Adresse">
|
{# <input type="text" id="adresse" placeholder="Adresse">#}
|
||||||
|
|
||||||
<button type="submit" class="applique"> Appliquée </button>
|
{# <button type="submit" class="applique"> Appliquée </button>#}
|
||||||
<button type="reset" class="supprimer"> Supprimer </button>
|
{# <button type="reset" class="supprimer"> Supprimer </button>#}
|
||||||
|
|
||||||
|
{{ include('intervention/_form.html.twig') }}
|
||||||
|
|
||||||
<!-- {{ include('intervention/_form.html.twig') }} -->
|
|
||||||
|
|
||||||
<a href="{{ path('app_intervention_index') }}" id="liste">Retour à la liste</a>
|
<a href="{{ path('app_intervention_index') }}" id="liste">Retour à la liste</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user