Subversion Repositories eFlore/Applications.cel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 3851 → Rev 3852

/trunk/widget/modules/saisie/squelettes/js/Utils.js
29,7 → 29,7
'erreur-formulaire' : 'Erreur: impossible de charger le formulaire',
'lieu-obs' : 'observé à',
'lieu-dit' : 'Lieu-dit',
'taxon-ou-image' : 'Veuillez transmettre au moins, soit une image, soit une espèce',
'taxon-ou-image' : 'Veuillez transmettre au moins, soit une image, soit une espèce',
'station' : 'Station',
'date-rue' : 'Un releve existe dejà à cette date pour cette rue.',
'rechargement-page' : 'Êtes vous sûr de vouloir quiter la page?\nLes observations saisies mais non transmises seront perdues.',
213,12 → 213,12
// To achieve the same effect, use some custom JavaScript
$( '#fenetre-modal' ).off( 'shown.bs.modal' ).on( 'shown.bs.modal' , function () {
$( '#myInput' ).trigger( 'focus' );
if( lthis.valOk( $( '#modale-aide-img' ) ) ) {
if( valOk( $( '#modale-aide-img' ) ) ) {
lthis.redimentionnerImgAide();
$( window ).on( 'resize', lthis.redimentionnerImgAide.bind( lthis ) );
}
});
if ( this.valOk( buttons ) ) {
if ( valOk( buttons ) ) {
buttonsHtml = '';
$.each( buttons, function( i, button ) {
dismiss = button.dismiss ? 'data-dismiss="modal"' : '';
236,10 → 236,10
 
Utils.prototype.redimentionnerImgAide = function() {
const espHorizDisp = $( '.modal-dialog' ).innerWidth() <= 1200 ? $( '.modal-dialog' ).innerWidth() - 30 : 1200,
cssImg = {
'width': espHorizDisp,
'height' : 'auto'
};
cssImg = {
'width': espHorizDisp,
'height' : 'auto'
};
 
$( '#modale-aide-img' ).css(cssImg).show(50);
};
290,7 → 290,7
otherId = PREFIX + dataName;
dataLabel = $( '.select' ).data( 'label' );
// Insertion du champ "Autre" après les boutons
if ( !lthis.valOk( $( '#'+otherId ) ) ) {
if ( !valOk( $( '#'+otherId ) ) ) {
optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName, dataLabel );
}
} else if ( $( this ).is( ':checked' ) ) {
299,7 → 299,7
dataLabel = $( this ).data( 'label' );
element = $( this ).data( 'element' );
// Insertion du champ "Autre" après les boutons
if ( !lthis.valOk( $( '#'+ otherId ) ) ) {
if ( !valOk( $( '#'+ otherId ) ) ) {
optionAdd( otherId, $( this ).parent( 'label' ), element, dataName, dataLabel );
}
}
311,7 → 311,7
dataLabel = $( this ).data( 'label' );
if( 'other' === $( this ).val() ) {
// Insertion du champ "Autre" après les boutons
if ( !lthis.valOk( $( '#'+otherId ) ) ) {
if ( !valOk( $( '#'+otherId ) ) ) {
optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName, dataLabel );
}
} else {
327,7 → 327,7
dataLabel = $( this ).data( 'label' );
if( 'other' === $( this ).val() ) {
// Insertion du champ "Autre" après les boutons
if ( !lthis.valOk( $( '#'+otherId ) ) ) {
if ( !valOk( $( '#'+otherId ) ) ) {
optionAdd( otherId, $( this ).parent( 'label' ), 'radio', dataName, dataLabel );
}
} else {
344,7 → 344,7
element = $( this ).data( 'element' );
if( $( this ).is( ':checked' ) ) {
// Insertion du champ "Autre" après les boutons
if ( !lthis.valOk( $( '#'+otherId ) ) ) {
if ( !valOk( $( '#'+otherId ) ) ) {
optionAdd( otherId, $( this ).parent( 'label' ), element, dataName, dataLabel );
}
} else {
/trunk/widget/modules/saisie/squelettes/js/tb-geoloc/img/photo-aide-geoloc.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/widget/modules/saisie/squelettes/js/tb-geoloc/img/photo-aide-geoloc.jpg
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/widget/modules/saisie/squelettes/js/WidgetsSaisiesCommun.js
186,6 → 186,15
$( '#coord' ).toggleClass( 'hidden', 'point' !== typeLocalisation );
// evenement location
$mapEl.on( 'location' , this.locationHandler.bind( this ) );
 
if ( 'rue' === typeLocalisation ) {
$( '#geoloc-label .help-button' ).on( 'click' , function () {
let label = 'Aide : Géolocaliser une rue ou un linéaire',
modaleContent = '<img id="modale-aide-img" src="' + URL_HELP_GEOLOC_POLYLINE + '" style="" alt="photo-aide-geoloc" />';
 
utils.activerModale( label, modaleContent, [] );
});
}
}
};
 
/trunk/widget/modules/saisie/squelettes/saisie.tpl.html
195,6 → 195,9
<label id="geoloc-label" for="geolocalisation" class="col-sm-8 obligatoire has-tooltip" data-toggle="tooltip" title="<?php echo $observation['geoloc-title']; ?>">
<i class="fa fa-street-view" aria-hidden="true"></i>
<?php echo $observation['geolocalisation']; ?>
<?php if ('rue' === $widget['type_localisation']) :?>
<div class="help-button help-geoloc btn btn-outline-info btn-sm border-0" data-key="photo-aide-geoloc" data-name="geolocalisation" data-mime-type="image/jpg"><i class="fas fa-info-circle"></i></div>
<?php endif; ?>
</label>
<?php if( $widget['type_localisation'] === 'rue' ) : ?>
<div class="aide-txt">
214,6 → 217,7
<script type="text/javascript">
const URL_GEOLOC_SERVICE = "<?php echo $url_ws_geoloc;?>";
const URL_BASE = "<?php echo $url_base;?>";
const URL_HELP_GEOLOC_POLYLINE = "<?php echo $url_base; ?>js/tb-geoloc/img/photo-aide-geoloc.jpg";
</script>
 
<div id="tb-places-zone" class="flex hidden">
220,7 → 224,7
<div class="form-col search-container">
<label for="tb-places" >Trouver un lieu</label>
<div class="input-search-container">
<input id="tb-places" class="tb-places" type="search" name="tb-places" placeholder="Recherchez une adresse ici" autocomplete="off">
<input id="tb-places" class="tb-places" type="search" name="tb-places" placeholder="Recherchez une adresse ou une ville" autocomplete="off">
<div class="tb-places-search-icon"></div>
<button class="tb-places-close hidden"></button>
</div>