Subversion Repositories eFlore/Applications.cel

Rev

Rev 3269 | Rev 3274 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3269 Rev 3270
Line 120... Line 120...
120
										<input id="id_utilisateur" name="id_utilisateur" type="hidden">
120
										<input id="id_utilisateur" name="id_utilisateur" type="hidden">
121
									</div>
121
									</div>
122
								</div>
122
								</div>
Line 123... Line 123...
123
 
123
 
124
								<div id="zone-courriel-confirmation" class="control-group col-md-6 hidden">
124
								<div id="zone-courriel-confirmation" class="control-group col-md-6 hidden">
125
									<label for="courriel_confirmation" class="col-sm-8 obligatoire" title="Veuillez confirmer le courriel.">
125
									<label for="courriel_confirmation" class="col-sm-8 obligatoire" title="<?php echo $observateur['courriel-confirmation-title']; ?>">
126
										<i class="fa fa-envelope" aria-hidden="true"></i>
126
										<i class="fa fa-envelope" aria-hidden="true"></i>
127
										<?php echo $observateur['courriel-confirmation']; ?>
127
										<?php echo $observateur['courriel-confirmation']; ?>
128
									</label>
128
									</label>
129
									<div class="col-sm-8">
129
									<div class="col-sm-8">
Line 263... Line 263...
263
									</div>
263
									</div>
264
								<?php else : ?>
264
								<?php else : ?>
265
									<input id="referentiel" name="referentiel" value="<?php echo $widget['referentiel']; ?>" type="hidden">
265
									<input id="referentiel" name="referentiel" value="<?php echo $widget['referentiel']; ?>" type="hidden">
266
								<?php endif; ?>
266
								<?php endif; ?>
Line 267... Line 267...
267
 
267
 
268
								<div class="control-group">
268
								<div id="bloc-taxon" class="control-group">
269
									<?php $isTaxonListe = ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) > 0 ) ;?>
269
									<?php $isTaxonListe = ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) > 0 ) ;?>
270
									<label for="<?php echo ( !$isTaxonListe ) ? 'taxon' : 'taxon-liste';?>" class="col-sm-8" title="">
270
									<label for="<?php echo ( !$isTaxonListe ) ? 'taxon' : 'taxon-liste';?>" class="col-sm-8" title="">
271
										<i class="fa fa-leaf" aria-hidden="true"></i>
271
										<i class="fa fa-leaf" aria-hidden="true"></i>
272
										<?php echo $observation['espece']; ?><?php if ( !empty( $widget['referentiel'] ) ) echo " (" . $widget['referentiel'] . ")"; ?>
272
										<?php echo $observation['espece']; ?><?php if ( !empty( $widget['referentiel'] ) ) echo " (" . $widget['referentiel'] . ")"; ?>
273
									</label>
273
									</label>
274
									<div class="col-sm-8 mb-3">
274
									<div class="col-sm-8 mb-3">
275
										<?php if ( $widget['type_especes'] === 'fixe' || $widget['especes']['espece_imposee'] ) : ?>
275
										<?php if ( $widget['type_especes'] === 'fixe' || $widget['especes']['espece_imposee'] ) : ?>
276
													<input id="taxon" name="taxon" type="text" class="form-control" value="<?php echo $widget['especes']['nom_sci_espece_defaut']; ?>" />
276
													<input id="taxon" name="taxon" type="text" class="form-control taxon-validation" title"" value="<?php echo $widget['especes']['nom_sci_espece_defaut']; ?>"/>
277
												</div>
277
												</div>
Line 278... Line 278...
278
											</div>
278
											</div>
279
 
279
 
280
										<?php elseif ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) > 0 ) : ?>
280
										<?php elseif ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) > 0 ) : ?>
281
											<?php ksort( $widget['especes']['taxons'] ); ?>
281
											<?php ksort( $widget['especes']['taxons'] ); ?>
282
													<select id="taxon-liste" name="taxon-liste" class="form-control custom-select">
282
													<select id="taxon-liste" name="taxon-liste" class="form-control custom-select taxon-validation" title="<?php echo $observation['taxon-title'];?>">
283
														<option class="choisir"  value="inconnue" selected hidden><?php echo $general['choisir']; ?></option>
283
														<option class="choisir"  value="inconnue" selected hidden><?php echo $general['choisir']; ?></option>
284
														<?php foreach ($widget['especes']['taxons'] as $taxon)  : ?>
284
														<?php foreach ($widget['especes']['taxons'] as $taxon)  : ?>
285
															<option
285
															<option
Line 293... Line 293...
293
																data-famille="<?php echo $taxon['famille'];?>"
293
																data-famille="<?php echo $taxon['famille'];?>"
294
															><?php echo $taxon['nom_sel'];?></option>
294
															><?php echo $taxon['nom_sel'];?></option>
295
														<?php endforeach; ?>
295
														<?php endforeach; ?>
296
														<option value="autre"><?php echo $observation['autre-espece']; ?></option>
296
														<option value="autre"><?php echo $observation['autre-espece']; ?></option>
297
													</select>
297
													</select>
-
 
298
													<span for="taxon-liste" class="error" style="display: none;"><?php echo $observation['taxon-title'];?></span>
298
													<input id="taxon" name="taxon" class="form-control" type="hidden">
299
													<input id="taxon" name="taxon" class="form-control" type="hidden" />
299
												</div>
300
												</div>
300
											</div>
301
											</div>
301
											<div id="taxon-input-groupe" class="control-group hidden">
302
											<div id="taxon-input-groupe" class="control-group hidden">
302
												<label for="taxon-autre" class="col-sm-8" title="">
303
												<label for="taxon-autre" class="col-sm-8" title="">
303
													<i class="fab fa-pagelines" aria-hidden="true"></i>
304
													<i class="fab fa-pagelines" aria-hidden="true"></i>
Line 306... Line 307...
306
												<div class="col-sm-8 mb-3">
307
												<div class="col-sm-8 mb-3">
307
													<input id="taxon-autre" name="taxon-autre" class="form-control" type="text">
308
													<input id="taxon-autre" name="taxon-autre" class="form-control" type="text">
308
												</div>
309
												</div>
309
											</div>
310
											</div>
310
										<?php else : ?>
311
										<?php else : ?>
311
													<input id="taxon" name="taxon" class="form-control" type="text">
312
													<input id="taxon" name="taxon" class="form-control taxon-validation" type="text" title="<?php echo $observation['taxon-title'];?>">
-
 
313
													<span for="taxon" class="error" style="display: none;"><?php echo $observation['taxon-title'];?></span>
312
												</div>
314
												</div>
313
											</div>
315
											</div>
314
										<?php endif; ?>
316
										<?php endif; ?>
Line 315... Line 317...
315
 
317
 
Line 605... Line 607...
605
									<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
607
									<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
606
									<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
608
									<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
607
									<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
609
									<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
608
								</label>
610
								</label>
609
							</div>
611
							</div>
-
 
612
							<span for="fichier" class="error" style="display: none;"><?php echo $observation['taxon-title'];?></span>
Line 610... Line 613...
610
 
613
 
611
							<div id="miniatures"></div>
614
							<div id="miniatures"></div>
612
							<p class="miniature-msg" class="span12">&nbsp;</p>
615
							<p class="miniature-msg" class="span12">&nbsp;</p>
613
						</div>
616
						</div>
Line 614... Line -...
614
					</form>
-
 
615
 
-
 
616
					<!-- Messages d'erreur du formulaire-->
-
 
617
					<div class="zone-alerte">
-
 
618
						<div id="dialogue-image-or-taxon" class="alert alert-warning alert-block hidden">
-
 
619
							<a class="close">×</a>
-
 
620
							<h4 class="alert-heading"><?php echo $observation['alert-img-tax-title']; ?></h4>
-
 
621
							<p><?php echo $observation['alert-img-tax']; ?></p>
-
 
622
						</div>
-
 
623
					</div>
617
					</form>
624
 
618
 
Line 625... Line 619...
625
					<div id="image" class="row"></div>
619
					<div id="image" class="row"></div>
626
				</div>
620
				</div>