Subversion Repositories eFlore/Applications.cel

Rev

Rev 3125 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3122 delphine 1
<!DOCTYPE html>
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
  <head>
4
	<title><?= $mode; ?> de widget de saisie du CeL</title>
5
 
6
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
7
	<meta http-equiv="Content-style-type" content="text/css" />
8
	<meta http-equiv="Content-script-type" content="text/javascript" />
9
	<meta http-equiv="Content-language" content="fr" />
10
 
11
	<meta name="revisit-after" content="15 days" />
12
    <meta name="robots" content="index,follow" />
13
    <meta name="author" content="Tela Botanica" />
14
    <meta name="keywords" content="Tela Botanica, CEL" />
15
    <meta name="description" content="Gestion des widgets de saisie du carnet en ligne" />
16
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
17
 
18
	<!-- OpenGraph pour Facebook, Pinterest, Google+ -->
19
	<meta property="og:type" content="website" />
20
	<meta property="og:title" content="Gestion des widgets de saisie du CeL" />
21
	<meta property="og:site_name" content="Tela Botanica" />
22
	<meta property="og:description" content="Gestion des widgets de saisie du Carnet en Ligne" />
23
	<meta property="og:image" content="http://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
24
	<meta property="og:image:type" content="image/png" />
25
	<meta property="og:image:width" content="256" />
26
	<meta property="og:image:height" content="256" />
27
	<meta property="og:locale" content="fr_FR" />
28
 
29
	<!-- Favicones -->
30
	<link rel="shortcut icon" type="image/x-icon" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
31
 
32
	<!-- Jquery -->
33
	<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
34
	<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
35
	<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script>
36
	<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.9.0/jquery.validate.js"></script>
37
	<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.9.0/messages_fr.js"></script>
38
	<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/form/2.95/jquery.form.min.js"></script>
39
	<script src="http://resources.tela-botanica.org/bootstrap/3.1.0/js/bootstrap.min.js"></script>
40
 
41
	<!-- Barre de navigation -->
42
	<?php if ($bar !== false): ?>
43
		<script src="<?=$url_script_navigation?>"></script>
44
	<?php endif; ?>
45
 
46
 
47
	<!-- CSS -->
48
	<!-- <link href="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="screen" />
49
	<!-- <link href="http://www.tela-botanica.org/commun/bootstrap/2.0.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> -->
50
	<!-- <link rel="stylesheet" type="text/css" href="http://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" />
51
	 -->
52
	<link id="telabotanica-style-css" rel="stylesheet" href="https://beta.tela-botanica.org/preprod/wp-content/themes/telabotanica/dist/bundle.css?ver=4.7.5" type="text/css" media="all">
53
	<link href="<?= $url_base; ?>modules/manager/squelettes/css/manager.css" rel="stylesheet" type="text/css" media="screen" />
54
	<!--  Google Analytics -->
55
	<?php if($prod): ?>
56
		<?php include "analytics.html"; ?>
57
	<?php endif; ?>
58
  </head>
59
 
60
  <body>
61
		<div id="zone-appli" class="container">
62
		<?php if ($bar !== false): ?>
63
			<div id="tb-navigation" data-courant="widget-cel-export" data-squelette="bootstrap3" data-mode="prod">
64
			</div>
65
			<br/>
66
		<?php endif; ?>
67
		<h1 id="widget-titre" class="widget-titre"><?= $mode; ?> de widget de saisie du CEL</h1>
68
		<div id="register-page" class="layout-wrapper page">
69
			<div class="droite">
70
				<?php if ($mode === 'modification') { ?>
71
					Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changer.
72
					S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type.
73
				<?php } else { ?>
74
					Vous créez un widget, si vous choississez de le mettre dans un type, certains champs deviendront
75
					obligatoires et la localisation (point ou rue) sera automatiquement déterminée.
76
				<? } ?>
77
			</div>
78
			<form action="http://localhost/cel/widget/manager?mode=<?= $mode; ?>" name="" id="" class="standard-form component component-text" method="post" enctype="multipart/form-data">
79
				<div class="register-section" id="basic-details-section">
80
					<h2>Meta-données</h2>
81
 
82
					<label for="projet">Projet</label>
83
					<input type="text" name="projet" id="projet" pattern="[a-z]*" <?= ($mode === 'modification') ? 'value="'.$widget['projet'].'" readonly' : 'required'; ?> title="Champ obligatoire : pas d'espace" />
84
 
85
					<label for="motscles">Autres mots-clés</label>
86
					<input type="text" name="motscles" id="motscles" value="" />
87
 
88
					<label for="type">Type de widget</label>
89
					<select  id="type" name="type" >
90
						<?php foreach ($type as $id => $projet) { ?>
91
							<option <?= (isset($widget['projet']) && $projet['projet']== $widget['projet']) ? 'selected="selected"' : ''; ?> value="<?= $projet['projet']; ?>"><?= $projet['projet']; ?></option>
92
						<?php } ?>
93
						<option value=""> ----</option>
94
					</select>
95
 
96
					<label for="est_type">Ce widget est un widget type</label>
97
					<input type="radio" name="est_type" id="est_type" <?= (isset($widget['est_type']) && $projet['est_type']=== '1') ? 'checked="checked"' : ''; ?>/>
98
 
99
					<label for="langue">Langue</label>
100
					<?php if ($mode === 'modification') { ?>
101
						<input  id="langue" name="langue" readonly value="<?= $widget['langue']; ?>" />
102
					<?php } else { ?>
103
						<input  id="langue" name="langue" list="langues" >
104
						<datalist id="langues" >
105
							<?php foreach ($langues as $code => $langue) { ?>
106
								<option value="<?= $code; ?>"><?= $langue['nom']; ?></option>
107
							<?php } ?>
108
						</datalist>
109
					<?php } ?>
110
				</div><!-- #basic-details-section -->
111
 
112
 
113
				<div class="register-section" id="profile-details-section">
114
					<h2>Description</h2>
115
					<label for="titre">Titre</label>
116
					<input type="text" name="titre" id="titre" value="<?= isset($widget['titre']) ? $widget['titre'] : ''; ?>"  />
117
 
118
					<label for="description">Description</label>
119
					<textarea name="description" id="description"><?= isset($widget['description']) ? $widget['description'] : ''; ?></textarea>
120
 
121
					<label for="logo">Logo</label><?= isset($widget['logo']) ? '<img src="'.$widget['logo'].'" /><br />Pour changer, télécharger un nouveau fichier.': ''; ?>
122
					<input type="file" name="logo" id="logo"  accept="image" />
123
 
124
					<label for="fond">Image de fond</label>
125
					<input type="file" name="fond" id="fond" value="<?= $widget['titre']; ?>" />
126
				</div><!-- #profile-details-section -->
127
 
128
				<div class="register-section" id="profile-details-section">
129
					<h2>Champs</h2>
130
					<label for="type_localisation">Type de localisation</label>
131
					<select  id="type_localisation" name="type_localisation" >
132
						<option value="<?= (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?>"><?= (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?></option>
133
						<option value="<?= (isset($widget['type_localisation']) && $widget['type_localisation'] == 'rue') ? 'point' : 'rue'; ?>"><?= (isset($widget['type_localisation']) && $widget['type_localisation'] == 'rue') ? 'point' : 'rue'; ?></option>
134
					</select>
135
 
136
					<label for="localisation">Zoom</label>
137
					<input type="text" name="localisation" id="localisation" value="<?= isset($widget['localisation']) ? $widget['localisation'] : ''; ?>"  />
138
 
139
					<label for="milieux">Milieux</label>
140
					<input type="text" name="milieux" id="milieux" value="<?= isset($widget['milieux']) ? $widget['milieux'] : ''; ?>"  />
141
 
142
					<label for="type_especes">Type liste espèce</label>
143
					<select  id="type_especes" name="type_especes" required>
144
						<option selected="selected" value="referentiel">Référentiel</option>
145
						<option value="liste">Liste</option>
146
						<option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option>
147
						<option value="fixe">Espèce fixée</option>
148
					</select>
149
 
150
					<label for="referentiel"></label>
151
					<input type="text" name="referentiel" id="referentiel" required pattern="([a-z]+?)*"
152
						title="Nom du référentiel ex. bdtfx"
153
						value="<?= isset($widget['referentiel']) ? $widget['referentiel'] : ''; ?>"/>
154
 
155
					<label for="especes"></label>
156
					<input type="file" name="especes" id="especes" />
157
					fichier type
158
				</div><!-- #profile-details-section -->
159
 
160
				<div class="submit complete-registration">
161
					<button href="#" type="submit" name="signup_submit" id="signup_submit"  class="button" target="" title=""><span class="button-text">Terminer </span></button>
162
				</div>
163
			</form>
164
 
165
		</div>
166
	</div>
167
  </body>
168
</html>