Line 173... |
Line 173... |
173 |
<h2><?php echo $observation['titre']; ?></h2>
|
173 |
<h2><?php echo $observation['titre']; ?></h2>
|
174 |
<div id="zone-observation" class="row">
|
174 |
<div id="zone-observation" class="row">
|
175 |
<div class="col-md-6">
|
175 |
<div class="col-md-6">
|
Line 176... |
Line 176... |
176 |
|
176 |
|
177 |
<div class="mb-3">
|
177 |
<div class="mb-3">
|
178 |
<label for="geolocalisation" class="col-sm-8 obligatoire">
|
178 |
<label for="geolocalisation" class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observation['geoloc-title']; ?>">
|
179 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
179 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
180 |
<?php echo $observation['geolocalisation']; ?>
|
180 |
<?php echo $observation['geolocalisation']; ?>
|
181 |
</label>
|
181 |
</label>
|
182 |
<div class="control-group">
|
182 |
<div class="control-group">
|
Line 186... |
Line 186... |
186 |
<input type="hidden" id="latitude" name="latitude" value="" style="display:none">
|
186 |
<input type="hidden" id="latitude" name="latitude" value="" style="display:none">
|
187 |
<input type="hidden" id="longitude" name="longitude" value="" style="display:none">
|
187 |
<input type="hidden" id="longitude" name="longitude" value="" style="display:none">
|
188 |
<input type="hidden" id="altitude" name="altitude" value="" style="display:none">
|
188 |
<input type="hidden" id="altitude" name="altitude" value="" style="display:none">
|
189 |
<input type="hidden" id="commune-insee" name="commune-insee" value="" style="display:none">
|
189 |
<input type="hidden" id="commune-insee" name="commune-insee" value="" style="display:none">
|
190 |
</div>
|
190 |
</div>
|
191 |
<div id="geoloc" class="col-sm-8" title="<?php echo $observation['geoloc-title']; ?>">
|
191 |
<div id="geoloc" class="col-sm-8">
|
192 |
<tb-geolocation-element
|
192 |
<tb-geolocation-element
|
193 |
id="tb-geolocation"
|
193 |
id="tb-geolocation"
|
194 |
layer='osm'
|
194 |
layer='osm'
|
195 |
zoom_init="4"
|
195 |
zoom_init="4"
|
196 |
lat_init="46.5"
|
196 |
lat_init="46.5"
|
Line 212... |
Line 212... |
212 |
<label for="lieudit" class="col-sm-8">
|
212 |
<label for="lieudit" class="col-sm-8">
|
213 |
<i class="fa fa-map-signs" aria-hidden="true"></i>
|
213 |
<i class="fa fa-map-signs" aria-hidden="true"></i>
|
214 |
<?php echo $observation['lieudit']; ?>
|
214 |
<?php echo $observation['lieudit']; ?>
|
215 |
</label>
|
215 |
</label>
|
216 |
<div class="col-sm-8 mb-3">
|
216 |
<div class="col-sm-8 mb-3">
|
217 |
<input type="text" id="lieudit" name="lieudit" class="form-control" title="<?php echo $observation['lieudit-title']; ?>">
|
217 |
<input type="text" id="lieudit" name="lieudit" class="form-control has-tooltip" data-toggle="tooltip" title="<?php echo $observation['lieudit-title']; ?>">
|
218 |
</div>
|
218 |
</div>
|
219 |
</div>
|
219 |
</div>
|
220 |
<div class="control-group">
|
220 |
<div class="control-group">
|
221 |
<label for="station" class="col-sm-8">
|
221 |
<label for="station" class="col-sm-8">
|
222 |
<i class="fa fa-map-marker" aria-hidden="true"></i>
|
222 |
<i class="fa fa-map-marker" aria-hidden="true"></i>
|
223 |
<?php echo $observation['station']; ?>
|
223 |
<?php echo $observation['station']; ?>
|
224 |
</label>
|
224 |
</label>
|
225 |
<div class="col-sm-8 mb-3">
|
225 |
<div class="col-sm-8 mb-3">
|
226 |
<input type="text" id="station" name="station" class="form-control" title="<?php echo $observation['station-title']; ?>">
|
226 |
<input type="text" id="station" name="station" class="form-control has-tooltip" data-toggle="tooltip" data-placement="bottom"title="<?php echo $observation['station-title']; ?>">
|
227 |
</div>
|
227 |
</div>
|
228 |
</div>
|
228 |
</div>
|
Line 229... |
Line 229... |
229 |
|
229 |
|
Line 230... |
Line 230... |
230 |
</div>
|
230 |
</div>
|
Line 231... |
Line 231... |
231 |
|
231 |
|
232 |
<div class="col-md-6">
|
232 |
<div class="col-md-6">
|
233 |
|
233 |
|
234 |
<div class="control-group">
|
234 |
<div class="control-group">
|
235 |
<label for="date_releve" class="col-sm-8 obligatoire" title="<?php echo $observation['date-title']; ?>">
|
235 |
<label for="date_releve" class="col-sm-8 obligatoire">
|
236 |
<i class="fa fa-calendar" aria-hidden="true"></i>
|
236 |
<i class="fa fa-calendar" aria-hidden="true"></i>
|
237 |
<?php echo $observation['date']; ?>
|
237 |
<?php echo $observation['date']; ?>
|
238 |
</label>
|
238 |
</label>
|
239 |
<div class="col-sm-8 mb-3" title="<?php echo $observation['date-title']; ?>">
|
239 |
<div class="col-sm-8 mb-3 has-tooltip" data-toggle="tooltip" title="<?php echo $observation['date-title']; ?>">
|
Line 240... |
Line 240... |
240 |
<input type="date" id="date_releve" name="date_releve" class="form-control" max="<?php echo date('Y-m-d', time()); ?>" placeholder="jj/mm/aaaa" title="jj/mm/aaaa" required>
|
240 |
<input type="date" id="date_releve" name="date_releve" class="form-control" max="<?php echo date('Y-m-d', time()); ?>" placeholder="jj/mm/aaaa" title="jj/mm/aaaa" required>
|
Line 246... |
Line 246... |
246 |
<label for="referentiel" class="col-sm-8 obligatoire">
|
246 |
<label for="referentiel" class="col-sm-8 obligatoire">
|
247 |
<i class="fa fa-book" aria-hidden="true"></i>
|
247 |
<i class="fa fa-book" aria-hidden="true"></i>
|
248 |
<?php echo $observation['referentiel']; ?>
|
248 |
<?php echo $observation['referentiel']; ?>
|
249 |
</label>
|
249 |
</label>
|
250 |
<div class="col-sm-8 mb-3">
|
250 |
<div class="col-sm-8 mb-3">
|
251 |
<select id="referentiel" class="form-control custom-select" title="<?php echo $observation['referentiel-title']; ?>">
|
251 |
<select id="referentiel" class="form-control custom-select has-tooltip" data-toggle="tooltip" title="<?php echo $observation['referentiel-title']; ?>">
|
252 |
<option class="choisir" value="" selected hidden><?php echo $general['choisir']; ?></option>
|
252 |
<option class="choisir" value="" selected hidden><?php echo $general['choisir']; ?></option>
|
253 |
<option value="bdtfxr" selected="selected" title="Trachéophytes de France métropolitaine">Métropole (index réduit)</option>
|
253 |
<option value="bdtfxr" selected="selected" title="Trachéophytes de France métropolitaine">Métropole (index réduit)</option>
|
254 |
<option value="bdtfx" title="Trachéophytes de France métropolitaine">Métropole (BDTFX)</option>
|
254 |
<option value="bdtfx" title="Trachéophytes de France métropolitaine">Métropole (BDTFX)</option>
|
255 |
<option value="bdtxa" title="Trachéophytes des Antilles">Antilles françaises (BDTXA)</option>
|
255 |
<option value="bdtxa" title="Trachéophytes des Antilles">Antilles françaises (BDTXA)</option>
|
256 |
<option value="bdtre" title="Trachéophytes de La Réunion">Réunion (BDTRE)</option>
|
256 |
<option value="bdtre" title="Trachéophytes de La Réunion">Réunion (BDTRE)</option>
|
Line 279... |
Line 279... |
279 |
</div>
|
279 |
</div>
|
280 |
</div>
|
280 |
</div>
|
Line 281... |
Line 281... |
281 |
|
281 |
|
282 |
<?php elseif ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) > 0 ) : ?>
|
282 |
<?php elseif ( isset( $widget['especes']['taxons'] ) && count( (array) $widget['especes']['taxons'] ) > 0 ) : ?>
|
283 |
<?php ksort( $widget['especes']['taxons'] ); ?>
|
283 |
<?php ksort( $widget['especes']['taxons'] ); ?>
|
284 |
<select id="taxon-liste" name="taxon-liste" class="form-control custom-select taxon-validation" title="<?php echo $observation['liste-espece-title']; ?>">
|
284 |
<select id="taxon-liste" name="taxon-liste" class="form-control custom-select taxon-validation has-tooltip" data-toggle="tooltip" title="<?php echo $observation['liste-espece-title']; ?>">
|
285 |
<option class="choisir" value="inconnue" selected hidden><?php echo $general['choisir']; ?></option>
|
285 |
<option class="choisir" value="inconnue" selected hidden><?php echo $general['choisir']; ?></option>
|
286 |
<?php foreach ($widget['especes']['taxons'] as $taxon) : ?>
|
286 |
<?php foreach ($widget['especes']['taxons'] as $taxon) : ?>
|
287 |
<option
|
287 |
<option
|
288 |
class="nom-sci"
|
288 |
class="nom-sci"
|
Line 305... |
Line 305... |
305 |
<label for="taxon-autre" class="col-sm-8" title="">
|
305 |
<label for="taxon-autre" class="col-sm-8" title="">
|
306 |
<i class="fab fa-pagelines" aria-hidden="true"></i>
|
306 |
<i class="fab fa-pagelines" aria-hidden="true"></i>
|
307 |
<?php echo $observation['autre-espece']; ?>
|
307 |
<?php echo $observation['autre-espece']; ?>
|
308 |
</label>
|
308 |
</label>
|
309 |
<div class="col-sm-8 mb-3">
|
309 |
<div class="col-sm-8 mb-3">
|
310 |
<input id="taxon-autre" name="taxon-autre" class="form-control" type="text" title="<?php echo $observation['espece-title']; ?>">
|
310 |
<input id="taxon-autre" name="taxon-autre" class="form-control has-tooltip" type="text" data-toggle="tooltip" title="<?php echo $observation['espece-title']; ?>">
|
311 |
</div>
|
311 |
</div>
|
312 |
</div>
|
312 |
</div>
|
313 |
<?php else : ?>
|
313 |
<?php else : ?>
|
314 |
<input id="taxon" name="taxon" class="form-control taxon-validation" type="text" title="<?php echo $observation['espece-title']; ?>">
|
314 |
<input id="taxon" name="taxon" class="form-control taxon-validation has-tooltip" type="text" data-toggle="tooltip" title="<?php echo $observation['espece-title']; ?>">
|
315 |
<span for="taxon" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
|
315 |
<span for="taxon" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
|
316 |
</div>
|
316 |
</div>
|
317 |
</div>
|
317 |
</div>
|
318 |
<?php endif; ?>
|
318 |
<?php endif; ?>
|
Line 321... |
Line 321... |
321 |
<label for="certitude" class="col-sm-8 obligatoire">
|
321 |
<label for="certitude" class="col-sm-8 obligatoire">
|
322 |
<i class="fa fa-question" aria-hidden="true"></i>
|
322 |
<i class="fa fa-question" aria-hidden="true"></i>
|
323 |
<?php echo $observation['certitude']; ?>
|
323 |
<?php echo $observation['certitude']; ?>
|
324 |
</label>
|
324 |
</label>
|
325 |
<div class="col-sm-8 mb-3">
|
325 |
<div class="col-sm-8 mb-3">
|
326 |
<select id="certitude" name="certitude" class="form-control custom-select" title="<?php echo $observation['certitude-title']; ?>">
|
326 |
<select id="certitude" name="certitude" class="form-control custom-select has-tooltip" data-toggle="tooltip" title="<?php echo $observation['certitude-title']; ?>">
|
327 |
<option class="aDeterminer" value="à determiner" ><?php echo $observation['certADet']; ?></option>
|
327 |
<option class="aDeterminer" value="à determiner" ><?php echo $observation['certADet']; ?></option>
|
328 |
<option class="douteuse" value="douteuse" ><?php echo $observation['certDout']; ?></option>
|
328 |
<option class="douteuse" value="douteuse" ><?php echo $observation['certDout']; ?></option>
|
329 |
<option class="certaine" value="certaine" selected="selected" ><?php echo $observation['certCert']; ?></option>
|
329 |
<option class="certaine" value="certaine" selected="selected" ><?php echo $observation['certCert']; ?></option>
|
330 |
</select>
|
330 |
</select>
|
331 |
</div>
|
331 |
</div>
|
Line 335... |
Line 335... |
335 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
335 |
<i class="fa fa-street-view" aria-hidden="true"></i>
|
336 |
<?php echo $observation['milieu']; ?>
|
336 |
<?php echo $observation['milieu']; ?>
|
337 |
</label>
|
337 |
</label>
|
338 |
<div class="col-sm-8 mb-3">
|
338 |
<div class="col-sm-8 mb-3">
|
339 |
<?php if ( 0 < count( (array) $widget['milieux'] ) ) :?>
|
339 |
<?php if ( 0 < count( (array) $widget['milieux'] ) ) :?>
|
340 |
<select id="milieu" class="form-control custom-select" title="<?php echo $observation['liste-milieu-title']; ?>">
|
340 |
<select id="milieu" class="form-control custom-select has-tooltip" data-toggle="tooltip" title="<?php echo $observation['liste-milieu-title']; ?>">
|
341 |
<option class="choisir" value="" selected hidden><?php echo $general['choisir']; ?></option>
|
341 |
<option class="choisir" value="" selected hidden><?php echo $general['choisir']; ?></option>
|
342 |
<?php foreach ( $widget['milieux'] as $milieu ) :?>
|
342 |
<?php foreach ( $widget['milieux'] as $milieu ) :?>
|
343 |
<option value="<?php echo $milieu; ?>"><?php echo $milieu; ?></option>
|
343 |
<option value="<?php echo $milieu; ?>"><?php echo $milieu; ?></option>
|
344 |
<?php endforeach; ?>
|
344 |
<?php endforeach; ?>
|
345 |
</select>
|
345 |
</select>
|
346 |
<?php else : ?>
|
346 |
<?php else : ?>
|
347 |
<input id="milieu" name="milieu" class="form-control" type="text" placeholder="<?php echo $observation['milieu-ph']; ?>" title="<?php echo $observation['milieu-title']; ?>">
|
347 |
<input id="milieu" name="milieu" class="form-control has-tooltip" data-toggle="tooltip" type="text" placeholder="<?php echo $observation['milieu-ph']; ?>" title="<?php echo $observation['milieu-title']; ?>">
|
348 |
<?php endif; ?>
|
348 |
<?php endif; ?>
|
349 |
</div>
|
349 |
</div>
|
350 |
</div>
|
350 |
</div>
|
351 |
<div class="">
|
351 |
<div class="">
|
352 |
<label for="notes" class="col-sm-8">
|
352 |
<label for="notes" class="col-sm-8">
|
353 |
<i class="fa fa-pen" aria-hidden="true"></i>
|
353 |
<i class="fa fa-pen" aria-hidden="true"></i>
|
354 |
<?php echo $observation['notes']; ?>
|
354 |
<?php echo $observation['notes']; ?>
|
355 |
</label>
|
355 |
</label>
|
356 |
<div class="col-sm-8 mb-3">
|
356 |
<div class="col-sm-8 mb-3">
|
357 |
<textarea id="notes" form="form-observation" class="col-md-12" rows="7" name="notes" placeholder="<?php echo $observation['notes_ph']; ?>" title="<?php echo $observation['notes-title']; ?>"></textarea>
|
357 |
<textarea id="notes" form="form-observation" class="col-md-12 has-tooltip" data-toggle="tooltip" rows="7" name="notes" placeholder="<?php echo $observation['notes_ph']; ?>" title="<?php echo $observation['notes-title']; ?>"></textarea>
|
358 |
</div>
|
358 |
</div>
|
359 |
</div>
|
359 |
</div>
|
Line 360... |
Line 360... |
360 |
|
360 |
|
361 |
</div>
|
361 |
</div>
|
Line 387... |
Line 387... |
387 |
<?php
|
387 |
<?php
|
388 |
$min = ( isset( $champ['fieldValues']['min'] ) )? ' min="' . $champ['fieldValues']['min'] . '"':'';
|
388 |
$min = ( isset( $champ['fieldValues']['min'] ) )? ' min="' . $champ['fieldValues']['min'] . '"':'';
|
389 |
$max = ( isset( $champ['fieldValues']['max'] ) )? ' max="' . $champ['fieldValues']['max'] . '"':'';
|
389 |
$max = ( isset( $champ['fieldValues']['max'] ) )? ' max="' . $champ['fieldValues']['max'] . '"':'';
|
390 |
$step = ( isset( $champ['fieldValues']['step'] ) )? ' step="' . $champ['fieldValues']['step'] . '"':'';
|
390 |
$step = ( isset( $champ['fieldValues']['step'] ) )? ' step="' . $champ['fieldValues']['step'] . '"':'';
|
391 |
$default = ( isset( $champ['fieldValues']['default'] ) )? ' value="' . $champ['fieldValues']['default'] . '" data-default="' . $champ['fieldValues']['default'] . '"' :'';
|
391 |
$default = ( isset( $champ['fieldValues']['default'] ) )? ' value="' . $champ['fieldValues']['default'] . '" data-default="' . $champ['fieldValues']['default'] . '"' :'';
|
392 |
$description = ( isset( $champ['description'] ) )? ' title="' . $champ['description'] . '"':'';
|
392 |
$description = ( isset( $champ['description'] ) )? ' data-toggle="tooltip" title="' . $champ['description'] . '"':'';
|
393 |
$placeholder = ( isset( $champ['fieldValues']['placeholder'] ) )? ' placeholder="' . $champ['fieldValues']['placeholder'] . '"':'';
|
393 |
$placeholder = ( isset( $champ['fieldValues']['placeholder'] ) )? ' placeholder="' . $champ['fieldValues']['placeholder'] . '"':'';
|
394 |
$required = '';
|
394 |
$required = '';
|
395 |
$mandatory = '';
|
395 |
$mandatory = '';
|
396 |
$pattern = '';
|
396 |
$pattern = '';
|
397 |
$obs_radio = '';
|
397 |
$obs_radio = '';
|
Line 411... |
Line 411... |
411 |
}
|
411 |
}
|
Line 412... |
Line 412... |
412 |
|
412 |
|
413 |
switch( $champ['element'] ) {
|
413 |
switch( $champ['element'] ) {
|
414 |
case 'radio':
|
414 |
case 'radio':
|
415 |
case 'checkbox': ?>
|
415 |
case 'checkbox': ?>
|
416 |
<div class="control-group <?php echo $champ['element']; ?> mb-3"<?php echo $description . $required; ?> data-name="<?php echo $champ['key']; ?>[]">
|
416 |
<div class="control-group <?php echo $champ['element']; ?> mb-3"<?php echo $required; ?> data-name="<?php echo $champ['key']; ?>[]">
|
417 |
<div class="col-sm-8 list-label<?php echo $help . $mandatory; ?>">
|
417 |
<div class="col-sm-8 list-label<?php echo $help . $mandatory; ?>">
|
418 |
<?php echo $champ['name'] . $help_button; ?>
|
418 |
<?php echo $champ['name'] . $help_button; ?>
|
419 |
</div>
|
419 |
</div>
|
Line 420... |
Line 420... |
420 |
<div class="col-sm-8">
|
420 |
<div class="col-sm-8 has-tooltip" <?php echo $description; ?>>
|
Line 421... |
Line 421... |
421 |
|
421 |
|
422 |
<?php foreach ( $champ['fieldValues']['listValue'] as $i => $list_value ) : ?>
|
422 |
<?php foreach ( $champ['fieldValues']['listValue'] as $i => $list_value ) : ?>
|
Line 447... |
Line 447... |
447 |
</div>
|
447 |
</div>
|
448 |
<?php break;
|
448 |
<?php break;
|
Line 449... |
Line 449... |
449 |
|
449 |
|
450 |
case 'list-checkbox': ?>
|
450 |
case 'list-checkbox': ?>
|
451 |
<div class="multiselect <?php echo $champ['element'] . $help; ?>">
|
451 |
<div class="multiselect <?php echo $champ['element'] . $help; ?>">
|
- |
|
452 |
<label class="col-sm-8<?php echo $mandatory; ?>" title="<?php echo $chpsupp['select-checkboxes-texte'];?>">
|
- |
|
453 |
<?php echo $champ['name'] . $help_button; ?>
|
452 |
<label class="col-sm-8<?php echo $mandatory; ?>" title="<?php echo $chpsupp['select-checkboxes-texte'];?>"><?php echo $champ['name'] . $help_button; ?></label>
|
454 |
</label>
|
453 |
<div class="control-group col-sm-8 mb-3">
|
455 |
<div class="control-group col-sm-8 mb-3 has-tooltip" <?php echo $description; ?>>
|
454 |
<div class="selectBox">
|
456 |
<div class="selectBox">
|
455 |
<select class="form-control list-checkbox custom-select" id="list-checkbox-<?php echo $champ['key']; ?>"<?php echo $description; ?> class="form-control">
|
457 |
<select class="form-control list-checkbox custom-select" id="list-checkbox-<?php echo $champ['key']; ?>">
|
456 |
<option><?php echo $chpsupp['select-checkboxes-texte'];?></option>
|
458 |
<option><?php echo $chpsupp['select-checkboxes-texte'];?></option>
|
457 |
</select>
|
459 |
</select>
|
458 |
<div class="overSelect"></div>
|
460 |
<div class="overSelect"></div>
|
459 |
</div>
|
461 |
</div>
|
Line 487... |
Line 489... |
487 |
</div>
|
489 |
</div>
|
488 |
<?php break;
|
490 |
<?php break;
|
Line 489... |
Line 491... |
489 |
|
491 |
|
490 |
case 'select': ?>
|
492 |
case 'select': ?>
|
491 |
<div class="control-group mb-3">
|
493 |
<div class="control-group mb-3">
|
492 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"<?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
494 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
|
493 |
<div class="champ col-sm-8 mb-3">
|
495 |
<div class="champ col-sm-8 mb-3">
|
494 |
<div class="select-wrapper add-field-select <?php echo $help; ?>">
|
496 |
<div class="select-wrapper add-field-select <?php echo $help; ?>">
|
Line 495... |
Line 497... |
495 |
<select id="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . ' ' . $champ['element']; ?> form-control custom-select mb-2"<?php echo $required; ?> data-label="<?php echo $champ['name']; ?>" data-name="<?php echo $champ['key']; ?>">
|
497 |
<select id="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . ' ' . $champ['element']; ?> form-control has-tooltip custom-select mb-2"<?php echo $required; ?> data-label="<?php echo $champ['name']; ?>" data-name="<?php echo $champ['key']; ?>" <?php echo $description; ?>>
|
Line 496... |
Line 498... |
496 |
|
498 |
|
497 |
<?php foreach ( $champ['fieldValues']['listValue'] as $list_value ) : ?>
|
499 |
<?php foreach ( $champ['fieldValues']['listValue'] as $list_value ) : ?>
|
Line 520... |
Line 522... |
520 |
</div>
|
522 |
</div>
|
521 |
<?php break;
|
523 |
<?php break;
|
Line 522... |
Line 524... |
522 |
|
524 |
|
523 |
case 'textarea': ?>
|
525 |
case 'textarea': ?>
|
524 |
<div class="control-group">
|
526 |
<div class="control-group">
|
525 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
527 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?> " ><?php echo $champ['name'] . $help_button; ?></label>
|
526 |
<div class="col-sm-8 mb-3">
|
528 |
<div class="col-sm-8 mb-3">
|
527 |
<textarea type="<?php echo $champ['element']; ?>" id="<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>"></textarea>
|
529 |
<textarea type="<?php echo $champ['element']; ?>" id="<?php echo $champ['key']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control has-tooltip" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>"></textarea>
|
528 |
</div>
|
530 |
</div>
|
529 |
</div>
|
531 |
</div>
|
Line 530... |
Line 532... |
530 |
<?php break;
|
532 |
<?php break;
|
531 |
|
533 |
|
532 |
case 'range': ?>
|
534 |
case 'range': ?>
|
533 |
<div class="control-group">
|
535 |
<div class="control-group">
|
534 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
536 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $help . $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
|
535 |
<div class="col-sm-8 mb-3 row">
|
537 |
<div class="col-sm-8 mb-3 row">
|
Line 536... |
Line 538... |
536 |
<?php
|
538 |
<?php
|
Line 562... |
Line 564... |
562 |
"</p>";
|
564 |
"</p>";
|
563 |
}
|
565 |
}
|
Line 564... |
Line 566... |
564 |
|
566 |
|
565 |
echo $div_range_min_max;
|
567 |
echo $div_range_min_max;
|
566 |
?>
|
568 |
?>
|
567 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="pl-3 custom-range <?php echo $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
569 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="pl-3 custom-range <?php echo $champ['key'] . $help; ?> form-control has-tooltip" <?php echo $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
568 |
</div>
|
570 |
</div>
|
569 |
</div>
|
571 |
</div>
|
Line 570... |
Line 572... |
570 |
<?php break;
|
572 |
<?php break;
|
571 |
|
573 |
|
572 |
case 'number':
|
574 |
case 'number':
|
573 |
case 'date': ?>
|
575 |
case 'date': ?>
|
574 |
<div class="control-group">
|
576 |
<div class="control-group">
|
575 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
577 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
|
576 |
<div class="col-sm-8 mb-3">
|
578 |
<div class="col-sm-8 mb-3">
|
577 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control"<?php echo $pattern . $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
579 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control has-tooltip"<?php echo $pattern . $description . $placeholder . $step . $default . $min . $max . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
578 |
</div>
|
580 |
</div>
|
Line 579... |
Line 581... |
579 |
</div>
|
581 |
</div>
|
580 |
<?php break;
|
582 |
<?php break;
|
581 |
|
583 |
|
582 |
case 'text' :
|
584 |
case 'text' :
|
583 |
case 'email':
|
585 |
case 'email':
|
584 |
default: ?>
|
586 |
default: ?>
|
585 |
<div class="control-group">
|
587 |
<div class="control-group">
|
586 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>" <?php echo $description; ?>><?php echo $champ['name'] . $help_button; ?></label>
|
588 |
<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
|
587 |
<div class="col-sm-8 mb-3">
|
589 |
<div class="col-sm-8 mb-3">
|
588 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
590 |
<input type="<?php echo $champ['element']; ?>" name="<?php echo $champ['key']; ?>" class="<?php echo $champ['key'] . $help; ?> form-control has-tooltip" <?php echo $description . $placeholder . $required; ?> data-label="<?php echo $champ['name']; ?>">
|
589 |
</div>
|
591 |
</div>
|
590 |
</div>
|
592 |
</div>
|
Line 609... |
Line 611... |
609 |
<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
|
611 |
<span class="label-text"><i class="fas fa-download"></i> <?php echo $image['ajouter']; ?></span>
|
610 |
<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
|
612 |
<input type="file" id="fichier" name="fichier" class="input-file" accept="image/jpeg" multiple>
|
611 |
<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
|
613 |
<input type="hidden" name="MAX_FILE_SIZE" value="5242880">
|
612 |
</label>
|
614 |
</label>
|
613 |
</div>
|
615 |
</div>
|
614 |
<span for="fichier" class="error" style="display: none;"><?php echo $observation['taxon-title'];?></span>
|
616 |
<span for="fichier" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
|
Line 615... |
Line 617... |
615 |
|
617 |
|
616 |
<div id="miniatures"></div>
|
618 |
<div id="miniatures"></div>
|
617 |
<p class="miniature-msg" class="span12"> </p>
|
619 |
<p class="miniature-msg" class="span12"> </p>
|
618 |
</div>
|
620 |
</div>
|