/trunk/widget/modules/saisie/squelettes/florileges/florileges.tpl.html |
---|
643,18 → 643,35 |
<span class="add-on"> |
<i class="icon-leaf"></i> |
</span> |
<select id="taxon-liste" class="span10" name="taxon-liste"> |
<option value="" selected>Sélectionner une espèce</option> |
<option value="?">Autre espèce</option> |
<?php foreach ($taxons as $taxon) :?> |
<option |
class="<?=($taxon['nom_ret'] == $taxon['nom_fr']) ? 'nom-sci' : 'nom-fr' ?>" |
value="<?=$taxon['num_nom_sel']?>" |
title="<?=$taxon['nom_ret'].($taxon['nom_fr_autre'] != '' ? ' - '.$taxon['nom_fr_autre'] : '' )?>" |
> |
<?=$taxon['nom_fr']?> |
</option> |
<?php endforeach; ?> |
<optgroup id="taxon-liste-noms"> |
<?php foreach ($taxons['sci-et-fr'] as $taxon) :?> |
<option |
class="<?=$taxon['nom_type'] ?>" |
value="<?=$taxon['num_nom'] ?>" |
title="<?=$taxon['nom_title'] ?>" |
data-nom-a-sauver="<?=$taxon['nom_a_sauver'] ?>" |
> |
<?=$taxon['nom_a_afficher']?> |
</option> |
<?php endforeach; ?> |
</optgroup> |
<optgroup id="taxon-liste-special"> |
<?php foreach ($taxons['speciaux'] as $taxon) :?> |
<option |
class="<?=$taxon['nom_type'] ?>" |
value="<?=$taxon['num_nom'] ?>" |
title="<?=$taxon['nom_title'] ?>" |
data-nom-a-sauver="<?=$taxon['nom_a_sauver'] ?>" |
> |
<?=$taxon['nom_a_afficher']?> |
</option> |
<?php endforeach; ?> |
<option value="?">Autre espèce</option> |
</optgroup> |
</select> |
</div> |
</div> |
/trunk/widget/modules/saisie/squelettes/florileges/js/florileges.js |
---|
1061,7 → 1061,7 |
function afficherObs() { |
var numNomSel = ($('#taxon-liste').val() == '?') ? $('#taxon').data('numNomSel') : $('#taxon-liste').val(), |
taxon = ($('#taxon-liste').val() == '?') ? $('#taxon').val() : taxons[numNomSel]['nom_sel'], |
taxon = ($('#taxon-liste').val() == '?') ? $('#taxon').val() : $('#taxon-liste option:selected').data('nom-a-sauver'), |
referentiel = (numNomSel == undefined) ? '' : '['+NOM_SCI_PROJET+']', |
commune = $('#commune-nom').text(), |
codeInsee = $('#commune-code-insee').text(), |
1270,7 → 1270,7 |
function stockerObsData() { |
var nomHorsListe = $('#taxon-liste').val() == '?' ? true : false; |
numNomSel = nomHorsListe ? $('#taxon').data('numNomSel') : $('#taxon-liste').val(), |
nomSel = nomHorsListe ? $('#taxon').val() : taxons[numNomSel]['nom_sel'], |
nomSel = nomHorsListe ? $('#taxon').val() : $('#taxon-liste option:selected').data('nom-a-sauver'), |
nomRet = nomHorsListe ? $('#taxon').data('nomRet') : taxons[numNomSel]['nom_ret'], |
numNomRet = nomHorsListe ? $('#taxon').data('numNomRet') : taxons[numNomSel]['num_nom_ret'], |
numTaxon = nomHorsListe ? $('#taxon').data('nt') : taxons[numNomSel]['num_taxon'], |
/trunk/widget/modules/saisie/squelettes/florileges/css/florileges.css |
---|
278,6 → 278,9 |
#form-date .input-prepend input + label.error { |
display: block; |
} |
#taxon-liste optgroup + optgroup { |
border-top: 1px solid black; |
} |
/*+--------------------------------------------------------------------------------------------------------+*/ |
/* SLIDERs */ |
.slider-on { |