templates/home/home.tpl
changeset 0 4869aea77e21
new file mode 100644
--- /dev/null
+++ b/templates/home/home.tpl
@@ -0,0 +1,40 @@
+<div class="container-fluid">
+    <div class="row">
+        <div class="col-lg-12">
+            <div class="text-center">
+                <h4>
+                    {html_entity_decode($text->getHeadline())}
+                </h4>
+
+                <hr/>
+
+                <p>
+                    {html_entity_decode($text->getText())}
+                </p>
+            </div>
+        </div>
+    </div>
+
+    {if $group_id == $tGroup::ADMIN}
+        <div class="row">
+            <div class="col-lg-12">
+                <form action="" method="post">
+                    <p>
+                        <label for="text">Überschrift</label>
+                        <textarea id="headline" name="headline">{$text->getHeadline()}</textarea>
+                    </p>
+
+                    <p>
+                        <label for="text">Nachricht</label>
+                        <textarea id="text" name="text">{$text->getText()}</textarea>
+                    </p>
+
+                    <p>
+                        <input type="submit" name="eintragen" value="eintragen"/>
+                        <input type="hidden" name="tid" value="{$text->getId()}"/>
+                    </p>
+                </form>
+            </div>
+        </div>
+    {/if}
+</div>