Commit 9ac24381 authored by wilhelmhb's avatar wilhelmhb

indication des champs obligatoires

parent 30a94dc6
......@@ -125,23 +125,23 @@
<div id="inscription_contenu" class="contenu formulaire">
<form class="formulaire" id="form-inscription">
<div>
<label for="apibundle_pscustomer_firstname" class="required">Prénom</label>
<label for="apibundle_pscustomer_firstname" class="required">Prénom<span style="color: red">*</span></label>
<input type="text" id="apibundle_pscustomer_firstname" name="apibundle_pscustomer[firstname]" placeholder="Prénom" maxlength="32" />
</div>
<div>
<label for="apibundle_pscustomer_lastname" class="required">Nom</label>
<label for="apibundle_pscustomer_lastname" class="required">Nom<span style="color: red">*</span></label>
<input type="text" id="apibundle_pscustomer_lastname" name="apibundle_pscustomer[lastname]" placeholder="Nom" maxlength="32" />
</div>
<div>
<label for="apibundle_pscustomer_email" class="required">Email</label>
<label for="apibundle_pscustomer_email" class="required">Email<span style="color: red">*</span></label>
<input type="email" id="apibundle_pscustomer_email" name="apibundle_pscustomer[email]" placeholder="Adresse mail" maxlength="128" />
</div>
<div>
<label for="apibundle_pscustomer_telephone" class="required">Téléphone</label>
<label for="apibundle_pscustomer_telephone" class="required">Téléphone<span style="color: red">*</span></label>
<input type="tel" id="apibundle_pscustomer_telephone" name="apibundle_pscustomer[telephone]" placeholder="Numéro de téléphone" maxlength="128" />
</div>
<div>
<label for="apibundle_pscustomer_password" class="required">Mot de passe</label>
<label for="apibundle_pscustomer_password" class="required">Mot de passe<span style="color: red">*</span></label>
<input type="password" id="apibundle_pscustomer_password" name="apibundle_pscustomer[password]" maxlength="32" />
</div>
<div class="bouton"><span>S'INSCRIRE</span></div>
......@@ -196,8 +196,9 @@
<div id="create_hive_contenu" class="contenu">
<div class="sizing"></div>
<form class="formulaire" id="form-create-hive">
<span style="color: red">*</span>Champ obligatoire
<div>
<label for="apibundle_pshive_name">Nom</label>
<label for="apibundle_pshive_name">Nom<span style="color: red">*</span></label>
<input type="text" id="apibundle_pshive_name" name="apibundle_pshive[name]" maxlength="64" />
<div class="cl"></div>
</div>
......@@ -254,7 +255,7 @@
</select>
</div>
<div>
<label for="apibundle_pshive_harvest" class="required">Récolte</label>
<label for="apibundle_pshive_harvest" class="required">Récolte (kg)<span style="color: red">*</span></label>
<input type="number" id="apibundle_pshive_harvest" name="apibundle_pshive[harvest]" required="required" min="0" max="100" />
</div>
<div>
......@@ -282,10 +283,11 @@
<h1></h1>
</div>
<div id="add_logger_contenu" class="contenu formulaire">
<span style="color: red">*</span>Champ obligatoire
<div class="sizing"></div>
<form class="formulaire" id="form-add-logger">
<div>
<label for="apibundle_psbox_serialNumber" class="required">Numéro de série du boîtier</label>
<label for="apibundle_psbox_serialNumber" class="required">Numéro de série du boîtier<span style="color: red">*</span></label>
<input type="text" id="apibundle_psbox_serialNumber" name="apibundle_psbox[serialNumber]" required="required" maxlength="32" />
</div>
<div class="bouton"><span>ENREGISTRER</span></div>
......
......@@ -57,11 +57,11 @@
<div class="contenu">
<form class="formulaire" id="form-create-hive-group">
<div>
<label for="apibundle_pshivegroup_name">Nom</label>
<label for="apibundle_pshivegroup_name">Nom<span style="color: red">*</span></label>
<input type="text" id="apibundle_pshivegroup_name" name="apibundle_pshivegroup[name]" maxlength="64" />
</div>
<div>
<label for="apibundle_pshivegroup_harvest" class="required">Récolte</label>
<label for="apibundle_pshivegroup_harvest" class="required">Récolte<span style="color: red">*</span></label>
<input type="number" id="apibundle_pshivegroup_harvest" name="apibundle_pshivegroup[harvest]" required="required" />
</div>
<div class="bouton"><span>CREER</span></div>
......@@ -211,21 +211,22 @@
</script>
<script type="text/html" id="tpl-params-generaux">
<form class="formulaire" id="form-params-generaux" method="POST">
<span style="color: red">*</span>Champ obligatoire
<div id="apibundle_pscustomer">
<div>
<label for="apibundle_pscustomer_firstname" class="required">Prénom</label>
<label for="apibundle_pscustomer_firstname" class="required">Prénom<span style="color: red">*</span></label>
<input type="text" id="apibundle_pscustomer_firstname" name="apibundle_pscustomer[firstname]" value="{{ firstname }}" maxlength="32" />
</div>
<div>
<label for="apibundle_pscustomer_lastname" class="required">Nom</label>
<label for="apibundle_pscustomer_lastname" class="required">Nom<span style="color: red">*</span></label>
<input type="text" id="apibundle_pscustomer_lastname" name="apibundle_pscustomer[lastname]" value="{{ lastname }}" maxlength="32" />
</div>
<div>
<label for="apibundle_pscustomer_email" class="required">Email</label>
<label for="apibundle_pscustomer_email" class="required">Email<span style="color: red">*</span></label>
<input type="text" id="apibundle_pscustomer_email" name="apibundle_pscustomer[email]" value="{{ email }}" maxlength="128" />
</div>
<div>
<label for="apibundle_pscustomer_password" class="required">Mot de passe</label>
<label for="apibundle_pscustomer_password" class="required">Mot de passe<span style="color: red">*</span></label>
<input type="password" id="apibundle_pscustomer_password" name="apibundle_pscustomer[password]" maxlength="32" />
</div>
</div>
......@@ -239,12 +240,13 @@
<script type="text/html" id="tpl-params-rucher">
<form class="formulaire" method="POST" id="form-params-ruchers">
<div id="apibundle_pshivegroup">
<span style="color: red">*</span>Champ obligatoire
<!--<div>
<label for="apibundle_pshivegroup_idClient" class="required">Id client</label>-->
<!--<input type="hidden" id="apibundle_pshivegroup_idClient" name="apibundle_pshivegroup[idClient]" value="" />
<!--</div>-->
<div>
<label for="apibundle_pshivegroup_name">Nom</label>
<label for="apibundle_pshivegroup_name">Nom<span style="color: red">*</span></label>
<input type="text" id="apibundle_pshivegroup_name" name="apibundle_pshivegroup[name]" value="{{name}}" maxlength="64" />
<div class="cl"></div>
</div>
......@@ -253,7 +255,7 @@
<textarea id="apibundle_pshivegroup_note" name="apibundle_pshivegroup[note]" maxlength="65535"></textarea>
</div>-->
<div>
<label for="apibundle_pshivegroup_harvest" class="required">Récolte</label>
<label for="apibundle_pshivegroup_harvest" class="required">Récolte (kg)<span style="color: red">*</span></label>
<input type="number" id="apibundle_pshivegroup_harvest" name="apibundle_pshivegroup[harvest]" value="{{harvest}}" required="required" />
<div class="cl"></div>
......@@ -272,13 +274,14 @@
<div id="goToSeuils" class="bouton2" style="text-align:center;clear:none;" >Notifications</div>
<form class="formulaire" id="form-params-hive" >
<span style="color: red">*</span>Champ obligatoire
<div id="apibundle_pshive">
<!--<div>
<label for="apibundle_pshive_idClient" class="required">Id client</label>
<input type="hidden" id="apibundle_pshive_idClient" name="apibundle_pshive[idClient]"/>
</div>-->
<div>
<label for="apibundle_pshive_name">Nom</label>
<label for="apibundle_pshive_name">Nom<span style="color: red">*</span></label>
<input type="text" value="{{ hive.name }}" id="apibundle_pshive_name" name="apibundle_pshive[name]" maxlength="64" />
<div class="cl"></div>
......@@ -298,7 +301,7 @@
<input type="text" id="apibundle_pshive_longitude" value="{{ hive.longitude }}" name="apibundle_pshive[longitude]" />
</div>-->
<div>
<label for="apibundle_pshive_hivegroup">Rucher</label>
<label for="apibundle_pshive_hivegroup">Rucher<span style="color: red">*</span></label>
<select type="text" id="apibundle_pshive_hivegroup" name="apibundle_pshive[idHiveGroup]">
{{#hivegroups}}
<option value="{{ id_hive_group }}" {{#isHiveGroup}}selected{{/isHiveGroup}}>{{ name }}</option>
......@@ -351,7 +354,7 @@
</select>
</div>
<div>
<label for="apibundle_pshive_harvest" class="required">Récolte (kg)</label>
<label for="apibundle_pshive_harvest" class="required">Récolte (kg)<span style="color: red">*</span></label>
<input type="number" id="apibundle_pshive_harvest" value="{{ hive.harvest }}" name="apibundle_pshive[harvest]" required="required" min="0" max="100" />
</div>
<!--<div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment