summaryrefslogtreecommitdiffstats
path: root/includes/admin/views/giglog_admin_page.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-09-03 15:04:58 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-09-03 15:04:58 +0200
commit60af9af46e4c80db1bd41d77991e2cf24ed69641 (patch)
tree86e4f28350ee2e4a116e9ce2b2abb977ffd0689d /includes/admin/views/giglog_admin_page.php
parent2ca81303a9b892e179a790dc9e4ed14c08307610 (diff)
downloadgigologadmin-60af9af46e4c80db1bd41d77991e2cf24ed69641.tar.gz
gigologadmin-60af9af46e4c80db1bd41d77991e2cf24ed69641.tar.bz2
gigologadmin-60af9af46e4c80db1bd41d77991e2cf24ed69641.zip
Rename AdminPage::get_user -> user_dropdown_for_role
The original name did not make much sense. The function didn't return a user, but a dropdown list of users, where the user currently holding the given role for the given concert was preselected in the list.
Diffstat (limited to 'includes/admin/views/giglog_admin_page.php')
-rw-r--r--includes/admin/views/giglog_admin_page.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php
index 0db72b2..248f175 100644
--- a/includes/admin/views/giglog_admin_page.php
+++ b/includes/admin/views/giglog_admin_page.php
@@ -68,7 +68,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) {
}
- private function get_user( GiglogAdmin_Concert $concert, string $role): string
+ private function user_dropdown_for_role( GiglogAdmin_Concert $concert, string $role): string
{
$users = array_map(
fn($usr) => $usr->user_login,
@@ -147,10 +147,10 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) {
$content.='</div>';
$content.='<div class="useritems"><strong>ASSIGNMENT DETAILS</strong><br><br><fieldset>'
- .'<label for="photo1">Photo1:</label>'.$this->get_user($c,'photo1').'<br>'
- .'<label for="photo2">Photo2:</label>'.$this->get_user($c,'photo2').'<br>'
- .'<label for="rev1">Text1:</label>'.$this->get_user($c,'rev1').'<br>'
- .'<label for="rev2">Text2:</label>'.$this->get_user($c,'rev2').'<br>';
+ .'<label for="photo1">Photo1:</label>'.$this->user_dropdown_for_role($c,'photo1').'<br>'
+ .'<label for="photo2">Photo2:</label>'.$this->user_dropdown_for_role($c,'photo2').'<br>'
+ .'<label for="rev1">Text1:</label>'.$this->user_dropdown_for_role($c,'rev1').'<br>'
+ .'<label for="rev2">Text2:</label>'.$this->user_dropdown_for_role($c,'rev2').'<br>';
$content.='<fieldset></div></form></div>';
$content.='<div class="venueform"><form method="POST" action="" class="venue" ><strong>VENUE DETAILS</strong><br><br>'