From 1961ab720d8fcf7f13634b5beef88d5dd46bfb42 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Wed, 7 Apr 2021 22:32:44 +0200 Subject: Forgot 2 returns in taken by for Reviewer 1 and 2 Improved the css for assigned/unassigned --- includes/admin/views/giglog_admin_page.php | 4 +-- includes/css/main.css | 49 +++++++++++++++++++++++++----- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 4bf052f..cb8a4a5 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -329,7 +329,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_rev1 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev1; - if ($x !='' and $x!=$hf_username) { ('Taken
Taken by '.$x.'
'); } + if ($x !='' and $x!=$hf_username) { return('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user return ('
@@ -345,7 +345,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_rev2 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev2; - if ($x !='' and $x!=$hf_username) { ('Taken
Taken by '.$x.'
'); } + if ($x !='' and $x!=$hf_username) { return('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user return (' diff --git a/includes/css/main.css b/includes/css/main.css index af50cfd..bf2ca4a 100644 --- a/includes/css/main.css +++ b/includes/css/main.css @@ -13,16 +13,32 @@ span.takenby color:red; } -.assignit input +input[name="assignitem"] { - background:red; + + background: transparent; + + border: none; + font-size: small; + padding: none; - background: url('/wp-content/plugins/giglogadmin/assets/images/checkedbox.png') no-repeat; - background-size: 20px 20px; + + background-image: url('/wp-content/plugins/giglogadmin/assets/images/checkedbox.png'); + + background-repeat: no-repeat; + + background-size: 15px 15px; + + width: 20px; + + height: 20px; + vertical-align: center; + } + .assignit { padding: none !important; @@ -37,15 +53,32 @@ table.assignit overflow: hidden; } -.unassignit input +input[name="unassignitem"] + { - background:red; + + background: transparent; + + border: none; + font-size: small; + padding: none; - background: url('/wp-content/plugins/giglogadmin/assets/images/redicon.png') no-repeat; - background-size: 20px 20px; + + background-image: url('/wp-content/plugins/giglogadmin/assets/images/redicon.png'); + + background-repeat: no-repeat; + + background-size: 15px 15px; + + width: 20px; + + height: 20px; + vertical-align: center; + } + .adminbuttons form { display: flex; /* 2. display flex to the rescue */ -- cgit v1.2.3