Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3255 Rev 3262
Line 76... Line 76...
76
                  <input type="text" name="motscles" id="motscles" class="form-control" value="" />
76
                  <input type="text" name="motscles" id="motscles" class="form-control" value="" />
77
                </div>
77
                </div>
Line 78... Line 78...
78
 
78
 
79
                <div class="col-sm-12 mb-3">
79
                <div class="col-sm-12 mb-3">
80
                  <label for="type">Type de widget</label>
80
                  <label for="type">Type de widget</label>
81
                  <select  id="type" name="type" class="form-control">
81
                  <select  id="type" name="type" class="form-control custom-select">
82
                    <option value=""> ----</option>
82
                    <option value=""> ----</option>
83
                    <?php foreach ( $type as $id => $projet ) : ?>
83
                    <?php foreach ( $type as $id => $projet ) : ?>
84
                      <option <?php echo ( isset( $widget['projet'] ) && $projet['projet'] === $widget['projet'] ) ? 'selected="selected"' : ''; ?> value="<?= $projet['projet']; ?>"><?= $projet['projet']; ?></option>
84
                      <option <?php echo ( isset( $widget['projet'] ) && $projet['projet'] === $widget['projet'] ) ? 'selected="selected"' : ''; ?> value="<?= $projet['projet']; ?>"><?= $projet['projet']; ?></option>
85
                    <?php endforeach; ?>
85
                    <?php endforeach; ?>
Line 97... Line 97...
97
                <div class="col-sm-12 mb-3">
97
                <div class="col-sm-12 mb-3">
98
                  <label for="langue">Langue</label>
98
                  <label for="langue">Langue</label>
99
                  <?php if ( $mode === 'modification' ) : ?>
99
                  <?php if ( $mode === 'modification' ) : ?>
100
                    <input id="langue" name="langue" class="form-control" readonly value="<?= $widget['langue']; ?>">
100
                    <input id="langue" name="langue" class="form-control" readonly value="<?= $widget['langue']; ?>">
101
                  <?php else : ?>
101
                  <?php else : ?>
102
                    <select id="langue" name="langue" class="form-control">
102
                    <select id="langue" name="langue" class="form-control custom-select">
103
                    <?php foreach ( $langues as $code => $langue ) : ?>
103
                    <?php foreach ( $langues as $code => $langue ) : ?>
104
                      <option value="<?= $code; ?>" <?= ( $code === 'fr' ) ? 'selected' : '';?>><?= $langue['nom']; ?></option>
104
                      <option value="<?= $code; ?>" <?= ( $code === 'fr' ) ? 'selected' : '';?>><?= $langue['nom']; ?></option>
105
                    <?php endforeach; ?>
105
                    <?php endforeach; ?>
106
                    </select>
106
                    </select>
107
                  <?php endif; ?>
107
                  <?php endif; ?>
Line 174... Line 174...
174
              <div class="register-section row" id="profile-details-fields-section">
174
              <div class="register-section row" id="profile-details-fields-section">
175
                <h2>Champs</h2>
175
                <h2>Champs</h2>
Line 176... Line 176...
176
 
176
 
177
                <div class="col-sm-12 mb-3">
177
                <div class="col-sm-12 mb-3">
178
                  <label for="type_localisation">Type de localisation</label>
178
                  <label for="type_localisation">Type de localisation</label>
179
                  <select  id="type_localisation" name="type_localisation" class="form-control">
179
                  <select  id="type_localisation" name="type_localisation" class="form-control custom-select">
180
                    <option value="<?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point'; ?>"><?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point'; ?></option>
180
                    <option value="<?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point'; ?>"><?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point'; ?></option>
181
                    <option value="<?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue' ) ? 'point' : 'rue'; ?>"><?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue') ? 'point' : 'rue'; ?></option>
181
                    <option value="<?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue' ) ? 'point' : 'rue'; ?>"><?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue') ? 'point' : 'rue'; ?></option>
182
                  </select>
182
                  </select>
Line 192... Line 192...
192
                  <input type="text" name="milieux" id="milieux" class="form-control" value="<?php echo isset( $widget['milieux'] ) ? $widget['milieux'] : ''; ?>">
192
                  <input type="text" name="milieux" id="milieux" class="form-control" value="<?php echo isset( $widget['milieux'] ) ? $widget['milieux'] : ''; ?>">
193
                </div>
193
                </div>
Line 194... Line 194...
194
 
194
 
195
                <div class="col-sm-12 mb-3">
195
                <div class="col-sm-12 mb-3">
196
                  <label for="type_especes">Type liste espèce *</label>
196
                  <label for="type_especes">Type liste espèce *</label>
197
                  <select  id="type_especes" name="type_especes" required class="form-control">
197
                  <select  id="type_especes" name="type_especes" required class="form-control custom-select">
198
                    <option selected="selected" value="referentiel">Référentiel</option>
198
                    <option selected="selected" value="referentiel">Référentiel</option>
199
                    <option value="liste">Liste</option>
199
                    <option value="liste">Liste</option>
200
                    <option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option>
200
                    <option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option>
201
                    <option value="fixe">Espèce fixée</option>
201
                    <option value="fixe">Espèce fixée</option>
Line 219... Line 219...
219
                  </div>
219
                  </div>
220
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
220
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
221
                  <div class="file-return especes hidden"></div>
221
                  <div class="file-return especes hidden"></div>
222
                </div>
222
                </div>
223
                <div class="col-sm-12 mb-3">
223
                <div class="col-sm-12 mb-3">
224
                  <a href="<?= $url_base; ?>modules/manager/squelettes/img/fichier-type/especes.csv" class="button fichier-type" download><i class="fas fa-file-alt" aria-hidden="true"></i> Fichier type</a>
224
                  <a href="<?= $url_base; ?>modules/manager/squelettes/img/fichier_type/especes.csv" class="button fichier-type" download><i class="fas fa-file-alt" aria-hidden="true"></i> Fichier type</a>
225
                </div>
225
                </div>
226
              </div><!-- end #profile-details-fields-section -->
226
              </div><!-- end #profile-details-fields-section -->
Line 227... Line 227...
227
 
227
 
228
              <!--Submit-->
228
              <!--Submit-->
Line 378... Line 378...
378
 
378
 
379
                      <div class="col-md-12">
379
                      <div class="col-md-12">
380
                        <label for="certitude" id="label-certitude" title="">
380
                        <label for="certitude" id="label-certitude" title="">
381
                          <i class="fa fa-question"></i> Certitude
381
                          <i class="fa fa-question"></i> Certitude
382
                        </label>
382
                        </label>
383
                        <select id="certitude" name="certitude" class="form-control" required>
383
                        <select id="certitude" name="certitude" class="form-control custom-select" required>
384
                          <option value="" >À déterminer</option>
384
                          <option value="" >À déterminer</option>
385
                          <option value="" >Douteuse</option>
385
                          <option value="" >Douteuse</option>
386
                          <option value="" selected="selected" >Certaine</option>
386
                          <option value="" selected="selected" >Certaine</option>
387
                        </select>
387
                        </select>