common/base.php | ●●●●● patch | view | raw | blame | history | |
form.php | ●●●●● patch | view | raw | blame | history | |
team-history.php | ●●●●● patch | view | raw | blame | history | |
templates/admin/stripe-form.twig | ●●●●● patch | view | raw | blame | history |
common/base.php
@@ -11,4 +11,4 @@ $last_json = OVERLAY_DIR . 'last.json'; $twig = \EOG\Utils\TwigFactory::getEnvironment(SITE_ROOT); $twig = \EOG\Utils\TwigFactory::getEnvironment(SITE_ROOT.'/templates/'); form.php
@@ -11,15 +11,15 @@ } $s->setClass('simple'); $html_content = $twig->render('templates/overlay-base.twig', ['stripe' => $s]); $html_content = $twig->render('overlay-base.twig', ['stripe' => $s]); file_put_contents(OVERLAY_DIR . 'simple.html', $html_content); $s->setClass('team'); $html_content = $twig->render('templates/overlay-base.twig', ['stripe' => $s]); $html_content = $twig->render('overlay-base.twig', ['stripe' => $s]); file_put_contents(OVERLAY_DIR . 'team.html', $html_content); $s->setClass('team-ban'); $html_content = $twig->render('templates/overlay-base.twig', ['stripe' => $s]); $html_content = $twig->render('overlay-base.twig', ['stripe' => $s]); file_put_contents(OVERLAY_DIR . 'team-ban.html', $html_content); } else { @@ -35,7 +35,7 @@ $teams = new \EOG\Models\TeamList(); if (file_exists(OVERLAY_DIR . 'teams.json')) { var_dump($teams->fromJson(file_get_contents(OVERLAY_DIR . 'teams.json'))); $teams->fromJson(file_get_contents(OVERLAY_DIR . 'teams.json')); } $var = [ @@ -45,5 +45,5 @@ 'post' => !empty($_POST['stripe']) ]; echo $twig->render('templates/admin/stripe-form.twig', $var); echo $twig->render('admin/stripe-form.twig', $var); team-history.php
New file @@ -0,0 +1,3 @@ <?php include_once "common/base.php"; templates/admin/stripe-form.twig
@@ -1,4 +1,4 @@ {% extends "templates/admin/html-skeleton.twig" %} {% extends "admin/html-skeleton.twig" %} {% block body %} <form action="/generator/form.php" method="post"> <input type="hidden" name="stripe[class]" value="team-ban"/> @@ -90,6 +90,8 @@ </div> </div> </form> <a href="/generator/team-history.php" class="btn btn-secondary">Meccstörténet</a> {% endblock %} {% block lazyload %} {{ parent() }}