266,12 → 266,12 |
<?php endif; ?> |
|
<div class="control-group"> |
<label for="taxon" class="col-sm-8 obligatoire" title=""> |
<label for="taxon" class="col-sm-8" title=""> |
<i class="fa fa-leaf" aria-hidden="true"></i> |
<?php echo $observation['espece']; ?><?php if ( $widget['referentiel'] !== '' && $widget['referentiel'] !== NULL ) echo " (" . $widget['referentiel'] . ")"; ?> |
</label> |
<div class="col-sm-8 mb-3"> |
<input id="taxon" name="taxon" class="form-control" type="text" required> |
<input id="taxon" name="taxon" class="form-control" type="text"> |
</div> |
</div> |
|
328,12 → 328,12 |
|
<?php foreach( $widget['chpSupp'][ $widget['projet'] ]['champs-supp'] as $champ ) : ?> |
<?php |
$min = ( $champ['fieldValues']['min'] )? ' min="' . $champ['fieldValues']['min'] . '"':''; |
$max = ( $champ['fieldValues']['max'] )? ' max="' . $champ['fieldValues']['max'] . '"':''; |
$step = ( $champ['fieldValues']['step'] )? ' step="' . $champ['fieldValues']['step'] . '"':''; |
$default = ( $champ['fieldValues']['default'] )? ' value="' . $champ['fieldValues']['default'] . '"':''; |
$description = ( $champ['description'] )? ' title="' . $champ['description'] . '"':''; |
$placeholder = ( $champ['fieldValues']['placeholder'] )? ' placeholder="' . $champ['fieldValues']['placeholder'] . '"':''; |
$min = ( isset( $champ['fieldValues']['min'] ) )? ' min="' . $champ['fieldValues']['min'] . '"':''; |
$max = ( isset( $champ['fieldValues']['max'] ) )? ' max="' . $champ['fieldValues']['max'] . '"':''; |
$step = ( isset( $champ['fieldValues']['step'] ) )? ' step="' . $champ['fieldValues']['step'] . '"':''; |
$default = ( isset( $champ['fieldValues']['default'] ) )? ' value="' . $champ['fieldValues']['default'] . '"':''; |
$description = ( isset( $champ['description'] ) )? ' title="' . $champ['description'] . '"':''; |
$placeholder = ( isset( $champ['fieldValues']['placeholder'] ) )? ' placeholder="' . $champ['fieldValues']['placeholder'] . '"':''; |
$required = ''; |
$mandatory = ''; |
$pattern = ''; |
477,7 → 477,7 |
<?php |
$div_range_min_max = ''; |
|
if ( $champ['fieldValues']['min'] ) { |
if ( isset( $champ['fieldValues']['min'] ) ) { |
$div_range_min_max = |
"<p class=\"col-sm-2 range-values text-center font-weight-bold\">". |
"Min " . $champ['fieldValues']['min'] . |
486,9 → 486,9 |
|
$div_range_min_max .= '<div class="range-live-value range-values text-center font-weight-bold col-sm-'; |
|
if ( $champ['fieldValues']['min'] && $champ['fieldValues']['max'] ) { |
if ( isset( $champ['fieldValues']['min'] ) && isset( $champ['fieldValues']['max'] ) ) { |
$div_range_min_max .= '8'; |
} elseif ( $champ['fieldValues']['min'] || $champ['fieldValues']['max'] ) { |
} elseif ( isset( $champ['fieldValues']['min'] ) || isset( $champ['fieldValues']['max'] ) ) { |
$div_range_min_max .= '10'; |
} else { |
$div_range_min_max .= '12'; |
496,7 → 496,7 |
|
$div_range_min_max .= '"></div>'; |
|
if( $champ['fieldValues']['max'] ) { |
if( isset( $champ['fieldValues']['max'] ) ) { |
$div_range_min_max .= |
"<p class=\"col-sm-2 range-values text-center font-weight-bold\">". |
"Max " . $champ['fieldValues']['max'] . |
671,10 → 671,10 |
var locationDatas = location.detail; |
var latitude = ''; |
var longitude = ''; |
if ( undefined !== locationDatas.geometry.features ) { |
if ( undefined !== locationDatas.geometry.features ) {// rue |
latitude = ( locationDatas.geometry.features[0].geometry.coordinates[0][1] + locationDatas.geometry.features[0].geometry.coordinates[1][1]) / 2; |
longitude = ( locationDatas.geometry.features[0].geometry.coordinates[0][0] + locationDatas.geometry.features[0].geometry.coordinates[1][0]) / 2; |
} else if ( undefined !== locationDatas.geometry.coordinates ) { |
} else if ( undefined !== locationDatas.geometry.coordinates ) {// point |
latitude = locationDatas.geometry.coordinates[1]; |
longitude = locationDatas.geometry.coordinates[0]; |
} |