summaryrefslogtreecommitdiffstats
path: root/includes/admin/views/giglog_admin_page.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-09-17 16:59:01 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-09-17 16:59:01 +0200
commit8a189196899989fd611a710bbbfc6bbbf31b73cc (patch)
tree1ebe0044634119e87092c019cf53fac83b3b4a2d /includes/admin/views/giglog_admin_page.php
parent34e48ad804ef613d83f184cf33a938cbfd7400b9 (diff)
downloadgigologadmin-8a189196899989fd611a710bbbfc6bbbf31b73cc.tar.gz
gigologadmin-8a189196899989fd611a710bbbfc6bbbf31b73cc.tar.bz2
gigologadmin-8a189196899989fd611a710bbbfc6bbbf31b73cc.zip
Move New Venue form to a separate partial.
Diffstat (limited to 'includes/admin/views/giglog_admin_page.php')
-rw-r--r--includes/admin/views/giglog_admin_page.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php
index fa853fb..b7f6247 100644
--- a/includes/admin/views/giglog_admin_page.php
+++ b/includes/admin/views/giglog_admin_page.php
@@ -9,6 +9,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) {
require_once __DIR__ . '/../../venue.php';
require_once __DIR__ . '/_concerts_table.php';
require_once __DIR__ . '/_edit_concert_form.php';
+ require_once __DIR__ . '/_new_venue_form.php';
class GiglogAdmin_AdminPage
{
@@ -52,8 +53,14 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) {
</div>
<?php
if (current_user_can('administrator')) {
- $form = new GiglogAdmin_EditConcertForm();
- echo $form->render();
+ $edit_form = new GiglogAdmin_EditConcertForm();
+ $venue_form = new GiglogAdmin_NewVenueForm(); ?>
+ <div>
+ <h3>Form to create/edit concerts and venues</h3>
+ </div>
+ <div class="editform">
+ <?php echo $edit_form->render() . $venue_form->render(); ?>
+ </div><?php
}
}