diff --git a/templates/admin/page-builder.php b/templates/admin/page-builder.php new file mode 100644 index 0000000..c77cef4 --- /dev/null +++ b/templates/admin/page-builder.php @@ -0,0 +1,180 @@ +post_title : ''; +$fields = $meta['fields'] ?? array(); +$sc = $form_id ? wmf_get_shortcode($form_id) : ''; + +$categories = array( + 'standard' => array('label'=>'Standard-Felder','icon'=>'dashicons-forms'), + 'auswahl' => array('label'=>'Auswahl & Bewertung','icon'=>'dashicons-list-view'), + 'layout' => array('label'=>'Layout & Inhalt','icon'=>'dashicons-layout'), +); +?> +
+

+ + + +

+ + + + +
+ + + + + +
+ + +
+ +
+ + +
+
+ +
+ $cat): ?> + $f->category===$cat_key); if(empty($cat_fields)) continue; ?> +
+

+ +
+ + label); ?> +
+ +
+ +
+ + +
+
+
+ +

Felder aus der linken Palette hierher ziehen oder anklicken

+
+
+
+ +
+ + +
+ + + + + +
+
Formular-Einstellungen
+
+ +
+ + + + +
+ + +
+
+
+
+
+
+
+
+
+
+
+ + +
+
Absender
+
+
+
+
Admin-Benachrichtigung
+
+
+
+
+
+
Absender-Bestätigung
+
+
+
+
+ + +
+
+

Weisen Sie jedem Feld im Canvas einen Schritt zu.

+
+
+
+
Schritt-Bezeichnungen
+
+ $max_step) $max_step=$s; } + for($i=0;$i<=$max_step;$i++): ?> +
+ + +
+ +
+ +
+ + +
+
+ +

Leer lassen für Erfolgsmeldung.

+
+
+ +
+ +

Klicken zum Kopieren

+ +
+ +
+
+ +
+
+
+
diff --git a/templates/admin/page-forms-list.php b/templates/admin/page-forms-list.php new file mode 100644 index 0000000..4eb8922 --- /dev/null +++ b/templates/admin/page-forms-list.php @@ -0,0 +1,46 @@ + +
+

Formulare + Neues Formular

+'wmf-form','post_status'=>'publish','numberposts'=>-1,'orderby'=>'date','order'=>'DESC')); ?> + +
+ +

Noch keine Formulare vorhanden

+

Erstellen Sie Ihr erstes Formular und binden Sie es per Shortcode auf jeder Seite ein.

+ Erstes Formular erstellen +
+ + + + + + +ID); + $edit_url=add_query_arg(array('page'=>'wp-multi-formular','edit'=>$form->ID),admin_url('admin.php')); + $subs_url=add_query_arg(array('page'=>'wp-multi-formular','view_submissions'=>$form->ID),admin_url('admin.php')); + $sc=wmf_get_shortcode($form->ID); + ?> + + + + + + + + + +
TitelShortcodeFelderEinreichungenErstelltAktionen
post_title); ?> + Mehrstufig + ID); ?>post_date))); ?> + Bearbeiten + Einreichungen +
+ ID)); ?> + + + +
+
+ +
diff --git a/templates/admin/page-new-form.php b/templates/admin/page-new-form.php new file mode 100644 index 0000000..f396473 --- /dev/null +++ b/templates/admin/page-new-form.php @@ -0,0 +1,207 @@ +post_title : ''; +$fields = $meta['fields'] ?? array(); +$shortcode = $form_id ? wmf_get_shortcode( $form_id ) : ''; +?> +
+

+ + + + + + +

+ +
+ + + + + + +
+ +
+ +
+ + +
+

+ + + __( 'Standard', 'wp-multi-formular' ), + 'auswahl' => __( 'Auswahl', 'wp-multi-formular' ), + 'layout' => __( 'Layout', 'wp-multi-formular' ), + ); + foreach ( $categories as $cat_key => $cat_label ) : + $cat_fields = array_filter( wmf_get_fields(), fn( $f ) => $f->category === $cat_key ); + if ( empty( $cat_fields ) ) continue; + ?> +
+

+
+ +
+ + label ); ?> +
+ +
+
+ +
+ + +
+
+
+ +

+
+
+
+ + +
+ + + + +
+
+ + +
+ + + + + +
+
+ + + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ + +
+

+
+ + +
+
+ + +
+
+

+
+ +
+
+ + +
+
+ + +
+
+

+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +

+
+
+ + +
+
+
+ +
+
+
+
diff --git a/templates/admin/page-submission-detail.php b/templates/admin/page-submission-detail.php new file mode 100644 index 0000000..56d57e4 --- /dev/null +++ b/templates/admin/page-submission-detail.php @@ -0,0 +1,15 @@ +post_type !== 'wmf-form') wp_die('Formular nicht gefunden.'); +?> +
+

+ Einreichung # + + aus: post_title); ?> + +

+ +
diff --git a/templates/admin/page-submissions.php b/templates/admin/page-submissions.php new file mode 100644 index 0000000..3dccab3 --- /dev/null +++ b/templates/admin/page-submissions.php @@ -0,0 +1,11 @@ +Formular nicht gefunden.

'; return;} +?> +
+

+ Einreichungen: post_title); ?> + ← Zurück +

+ +