Subversion Repositories eFlore/Applications.cel

Rev

Rev 3881 | Rev 3904 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3881 Rev 3901
Line 231... Line 231...
231
													<div class="tb-places-results-container hidden">
231
													<div class="tb-places-results-container hidden">
232
														<ul class="tb-places-results"></ul>
232
														<ul class="tb-places-results"></ul>
233
													</div>
233
													</div>
234
												</div>
234
												</div>
235
											</div>
235
											</div>
-
 
236
											<?php if( $widget['type_localisation'] === 'rue' ) : ?>
-
 
237
												<div class="aide-txt">
-
 
238
													<p><?php echo $observation['info-saisie-ligne']; ?></p>
-
 
239
												</div>
-
 
240
											<?php endif; ?>
Line 236... Line 241...
236
 
241
 
237
											<div id="map-container">
242
											<div id="map-container">
238
												<div
243
												<div
239
													id="tb-geolocation"
244
													id="tb-geolocation"
Line 610... Line 615...
610
													<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
615
													<label for="<?php echo $champ['key']; ?>" class="col-sm-8<?php echo $mandatory; ?>"><?php echo $champ['name'] . $help_button; ?></label>
611
													<div class="col-sm-8 mb-3">
616
													<div class="col-sm-8 mb-3">
612
														<div class="select-wrapper add-field-select <?php echo $help; ?>">
617
														<div class="select-wrapper add-field-select <?php echo $help; ?>">
613
															<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; ?>>
618
															<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 614... Line 619...
614
 
619
 
Line 615... Line 620...
615
																<?php foreach ( $champ['fieldValues']['listValue'] as $list_value_array ) : ?>
620
																<?php foreach ( $champ['fieldValues']['listValue'] as $index => $list_value_array ) : ?>
616
 
621
 
617
																	<?php
622
																	<?php
618
																		$selected = '';
623
																		$is_default = '#' === substr( $list_value_array[0], -1 );
-
 
624
																		$is_placeholder = null === $list_value_array[0];
619
																		if ( '#' === substr( $list_value_array[0], -1 ) ) :
625
																		$selected = $is_default || $is_placeholder ? ' selected="selected"' : '';
620
																			$selected = ' selected="selected"';
626
																		if ( $is_default ) :
621
																			$list_value_array[0] = substr( $list_value_array[0], 0, -1 );
627
																			$list_value_array[0] = substr( $list_value_array[0], 0, -1 );
Line 622... Line 628...
622
																		endif;
628
																		endif;
623
																	?>
629
																	?>
624
 
630
 
625
																	<?php if( 'other' !== $list_value_array ) : ?>
631
																	<?php if( 'other' !== $list_value_array ) : ?>
626
																		<option value="<?php echo $list_value_array[0]; ?>"<?php echo $selected; ?> data-name="<?php echo $champ['key']; ?>">
632
																		<option value="<?php echo $list_value_array[0]; ?>"<?php echo $selected; ?><?php echo $is_placeholder ? ' hidden': ''; ?> data-name="<?php echo $champ['key']; ?>">
627
																			<?php echo ( '' !== $list_value_array[1] ) ? ucfirst($list_value_array[1]) : ucfirst($list_value_array[0]); ?>
633
																			<?php echo ( '' !== $list_value_array[1] ) ? ucfirst($list_value_array[1]) : ucfirst($list_value_array[0]); ?>
628
																		</option>
634
																		</option>