[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / saisies / formulaires / saisies_cvt.php
diff --git a/www/plugins/auto/saisies/formulaires/saisies_cvt.php b/www/plugins/auto/saisies/formulaires/saisies_cvt.php
new file mode 100644 (file)
index 0000000..582fa56
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+
+// Sécurité
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+function formulaires_saisies_cvt_saisies_dist(){
+       return array(
+               array(
+                       'saisie' => 'input',
+                       'options' => array(
+                               'nom' => 'nom',
+                               'label' => 'Nom'
+                       )
+               ),
+               array(
+                       'saisie' => 'input',
+                       'options' => array(
+                               'nom' => 'email',
+                               'obligatoire' => 'oui',
+                               'label' => 'E-mail'
+                       ),
+                       'verifier' => array(
+                               'type' => 'email'
+                       )
+               ),
+               array(
+                       'saisie' => 'textarea',
+                       'options' => array(
+                               'nom' => 'message',
+                               'obligatoire' => 'oui',
+                               'label' => 'Un message'
+                       ),
+                       'verifier' => array(
+                               'type' => 'taille',
+                               'options' => array('min' => 10)
+                       )
+               )
+       );
+}
+
+?>