From aa688626d52d4e7fd3df16dc620cf96697c3f95a Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Sun, 5 Sep 2021 16:23:36 +0200 Subject: Re-added the changes for looks, and city/venue selector --- includes/admin/views/_concerts_table.php | 25 ++++++++++++++----------- includes/css/main.css | 3 --- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/includes/admin/views/_concerts_table.php b/includes/admin/views/_concerts_table.php index 37459a3..aba8c5c 100644 --- a/includes/admin/views/_concerts_table.php +++ b/includes/admin/views/_concerts_table.php @@ -51,6 +51,9 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) $venue = filter_input( INPUT_POST, 'selectvenue', FILTER_SANITIZE_SPECIAL_CHARS ); if ($venue) $filter['venue_id'] = $venue; + if(isset($_POST['ownconcerts']) && $_POST['ownconcerts'] == '1') + $filter['currentuser'] = wp_get_current_user()->user_login; + $concerts = GiglogAdmin_Concert::find_concerts($filter); $lastType = ''; @@ -59,15 +62,15 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) $content .= ''; if ($lastType != '' && $lastType != $concert->venue()->city()) { - $content .= '' . $concert->city() . ''; + $content .= '' . $concert->venue->city() . ''; } if ($lastType == '' ) { - $content .= '' . $concert->venue()->city() . ''; + $content .= '' . $concert->venue()->city() . ''; } // Modify these to match the database structure // $content .= '' . $row->id. ''; - $content .= ''; + $content .= '

'; $content .= '' . $concert->cname() . ''; $content .= '' . $concert->venue()->name() . ''; $fdate = strtotime($concert->cdate()); @@ -75,12 +78,12 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) //$content .= DATE_FORMAT($fdate,'%d.%b.%Y'); $content .= '' . $newformat . ''; - $content .= '' . $this->mark_new_concert($concert) . ''; + $content .= '' . $this->mark_new_concert($concert) . ''; - $content .= '' . $this->assign_role_for_user_form('photo1', $concert) . ''; - $content .= '' . $this->assign_role_for_user_form('photo2', $concert) . ''; - $content .= '' . $this->assign_role_for_user_form('rev1', $concert) . ''; - $content .= '' . $this->assign_role_for_user_form('rev2', $concert) . ''; + $content .= '' . $this->assign_role_for_user_form('photo1', $concert) . ''; + $content .= ' class="assigneduser">' . $this->assign_role_for_user_form('photo2', $concert) . ''; + $content .= '' . $this->assign_role_for_user_form('rev1', $concert) . ''; + $content .= '' . $this->assign_role_for_user_form('rev2', $concert) . ''; $content .= '' . self::STATUS_LABELS[$concert->status()] . ''; @@ -124,8 +127,8 @@ if (!class_exists("GiglogAdmin_ConcertsTable")) } //option to select own concerts only $select .= '' . ' ' - . ' ' + . ' ' . ''; } elseif ( $assigned_user ) { //check if slot is taken by another user diff --git a/includes/css/main.css b/includes/css/main.css index c28ae76..a984018 100644 --- a/includes/css/main.css +++ b/includes/css/main.css @@ -169,9 +169,6 @@ input[name="unassignitem"] background: #CCC } -tr.assignitr { - min-height: 120%; - } .assigneduser, .publishstatus { -- cgit v1.2.3