Skip to content

Commit

Permalink
Return the series select on seriescp back to action
Browse files Browse the repository at this point in the history
I should have negated this boolean logic when I refactored.

At some point we will remove all the old-fashioned HTML but for now <center>
is what we use.
  • Loading branch information
bakert committed Oct 20, 2024
1 parent 4ca3ffa commit d78a9df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gatherling/seriescp.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function main(): void

$view = post()->optionalString('view') ?? get()->optionalString('view') ?? 'settings';

if ($view != 'no_view') {
if ($view == 'no_view') {
$orientationComponent = new NullComponent();
} elseif (count($playerSeries) > 1) {
$orientationComponent = new OrganizerSelect(server()->string('PHP_SELF'), $playerSeries, $activeSeriesName);
Expand Down
10 changes: 6 additions & 4 deletions gatherling/templates/partials/organizerSelect.mustache
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<form action="{{action}}" method="get">
{{#seriesDropMenu}}{{> dropMenu}}{{/seriesDropMenu}}
<input class="inputbutton" type="submit" value="Select Series">
</form>
<center>
<form action="{{action}}" method="get">
{{#seriesDropMenu}}{{> dropMenu}}{{/seriesDropMenu}}
<input class="inputbutton" type="submit" value="Select Series">
</form>
</center>

0 comments on commit d78a9df

Please sign in to comment.