Base application
[infodrom.org/touren.infodrom.org] / templates / page / form.phtml
diff --git a/templates/page/form.phtml b/templates/page/form.phtml
new file mode 100644 (file)
index 0000000..20e0b8d
--- /dev/null
@@ -0,0 +1,20 @@
+<?php if (isset($title))  { ?>
+<h3><?php echo $title; ?></h3>
+<?php } ?>
+
+<div class="container <?php echo $name; ?>">
+<form name="<?php echo $name; ?>"<?php echo $action ? ' method="POST" action="'.$action.'"' : ''; ?>>
+<?php echo $items; ?>
+<button id="<?php echo $name; ?>_save" type="button" class="btn btn-primary">Speichern</button>
+<?php if (isset($secondbutton))  { ?>
+<button id="<?php echo $name; ?>_second" type="button" class="btn btn-primary"><?php echo $secondbutton; ?></button>
+<?php } ?>
+</form>
+
+<?php if (isset($description))  { ?>
+<div class="form_description">
+    <?php echo $description; ?>
+</div>
+<?php } ?>
+
+</div>
\ No newline at end of file