/trunk/widget/modules/saisie2/squelettes/css/saisie.css |
---|
423,13 → 423,12 |
#miniatures .miniature { |
position: relative; |
display: inline-block; |
margin-bottom: 3rem; |
} |
#miniatures .miniature .miniature-img { |
width: 10vw; |
vertical-align: top; |
width: 5rem; |
height: 100%; |
} |
#miniatures .miniature .effacer-miniature { |
437,26 → 436,25 |
position: absolute; |
left: 0; |
right: 0; |
top: 0; |
bottom: 0; |
font-size: 2rem; |
background-color: rgba(0, 0, 0, 0.3); |
opacity: 0; |
color: #ff5d55; |
bottom: -1.9rem; |
font-size: 1rem; |
background-color: #ff5d55; |
opacity: 1; |
color: #ffffff; |
padding: 0; |
margin: 0; |
height: 100%; |
width: 100%; |
height: 2rem; |
align-items:center; |
justify-content: center; |
cursor: pointer; |
border-bottom-right-radius: 0.2rem; |
border-bottom-left-radius: 0.2rem; |
} |
#miniatures .miniature .effacer-miniature:hover, |
#miniatures .miniature .effacer-miniature:focus { |
opacity: 1; |
#miniatures .miniature .effacer-miniature:hover { |
background-color: #ff847e; |
} |
.obs { |
height: 10rem; |
padding: 1rem; |
585,6 → 583,12 |
width: 100%; |
position: static; |
} |
#miniatures .miniature .miniature-img { |
width: 22.9vw; |
} |
#miniatures .miniature .effacer-miniature { |
font-size: 0.8rem; |
} |
#transmettre-obs.droite { |
float: none; |
/trunk/widget/modules/saisie2/squelettes/js/ReleveASL.js |
---|
105,11 → 105,11 |
event.preventDefault(); |
$( this ).addClass( 'disabled' ); |
$( '.arbre-info' ).not( $( this ) ).removeClass( 'disabled' ); |
lthis.scrollFormTop( '#zone-arbres' ); |
var numArbre = $( this ).data( 'arbre-info' ); |
lthis.chargerInfosArbre( numArbre ); |
lthis.scrollFormTop( '#zone-arbres' ); |
}); |
// après avoir visualisé les champs d'un arbre, retour à la saisie |
$( '#retour' ).on( 'click', function( event ) { |
117,7 → 117,6 |
var numArbre = lthis.numArbre + 1; |
lthis.scrollFormTop( '#zone-arbres' ); |
// activation des champs et retour à la saisie |
lthis.modeArbresBasculerActivation( false, numArbre ); |
$( '#taxon' ) |
130,6 → 129,7 |
'nt', |
'famille' |
]); |
lthis.scrollFormTop( '#zone-arbres' ); |
}); |
// chargement plantes ou lichens |
var btnChargementForm = this.determinerBtnsChargementForm( '#' ); |
155,7 → 155,6 |
} |
}); |
this.scrollFormTop( '#zone-observation', '#releve-date' ) |
if ( |
this.valOk( $( '#latitude-releve' ).val() ) && |
this.valOk( $( '#longitude-releve' ).val() ) && |
165,6 → 164,7 |
$( '#geoloc' ).addClass( 'hidden' ); |
$( '#geoloc-datas' ).removeClass( 'hidden' ); |
} |
this.scrollFormTop( '#zone-observation', '#releve-date' ) |
}; |
/** |
230,7 → 230,6 |
.off(); |
$( '#form-observation' ).find( 'input, textarea' ).prop( 'disabled', true ); |
$( '#zone-arbres,#geoloc-datas,#bouton-nouveau-releve' ).removeClass( 'hidden' ); |
this.scrollFormTop( '#zone-arbres' ); |
this.confirmerSortie(); |
if ( !this.valOk( $( '#releve-data' ).val() ) ) { |
var releveDatasTmp = { |
288,6 → 287,7 |
}; |
this.transfererCarto( donnesResetCarto ); |
this.scrollFormTop( '#zone-arbres' ); |
} |
}; |
/trunk/widget/modules/saisie2/squelettes/js/WidgetsSaisiesCommun.js |
---|
550,6 → 550,7 |
* la miniature d'une image ajoutée à l'obs |
*/ |
WidgetsSaisiesCommun.prototype.afficherMiniature = function( reponse ) { |
console.log(reponse); |
if ( this.debug ) { |
var debogage = $( 'debogage', reponse ).text(); |
} |
569,11 → 570,11 |
*/ |
WidgetsSaisiesCommun.prototype.creerWidgetMiniature = function( reponse ) { |
var miniatureUrl = $( 'miniature-url', reponse ).text(); |
var imgNom = $( 'image-nom', reponse ).text(); |
var imgNom = $( 'image-nom', reponse ).text(); |
var html = |
'<div class="miniature mb-3 mr-3">'+ |
'<img class="miniature-img" class="miniature img-rounded" alt="' + imgNom + '" src="' + miniatureUrl + '"/>'+ |
'<a class="effacer-miniature"><i class="fas fa-times"></i></a>'+ |
'<div class="miniature mr-3">'+ |
'<img class="miniature-img" class="miniature img-rounded" alt="' + imgNom + '" src="' + miniatureUrl + '" style="min-height:100%;"/>'+ |
'<a class="effacer-miniature">Supprimer</a>'+ |
'</div>'; |
return html; |
/trunk/widget/modules/saisie2/squelettes/js/WidgetsSaisiesASL.js |
---|
177,7 → 177,6 |
if ( this.valOk( $( '#releve-data' ).val() ) ) { |
$( '#charger-form' ).html( squelette ); |
this.confirmerSortie(); |
this.scrollFormTop( '#zone-' + nomSquelette ); |
const releveDatas = $.parseJSON( $( '#releve-data' ).val() ); |
const nbArbres = releveDatas.length -1; |
188,6 → 187,7 |
'</option>' |
); |
} |
this.scrollFormTop( '#zone-' + nomSquelette ); |
} |
}; |