Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix circuit select UI #22

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 69 additions & 65 deletions web/user/tourn/circuit.mhtml
Original file line number Diff line number Diff line change
Expand Up @@ -110,84 +110,88 @@

% if (@circuits) {
<h4>Circuits you administer</h4>
% }

<div class="full nospace">
% foreach my $circuit (sort {$a->name cmp $b->name} @circuits) {
<div class="full nospace">
% foreach my $circuit (sort {$a->name cmp $b->name} @circuits) {

% next if $done_already{$circuit->id}++;

<label for="<% $circuit->id %>">
<span class="pagehalf hover odd ltborderbottom marno middle">
<span class="tenth centeralign">
<input
type = "checkbox"
name = "<% $circuit->id %>"
id = "<% $circuit->id %>"
<% $request->{"circuits"}{$circuit->id} ? "checked" : "" %>
>
</span>
<span class="fourfifths padno">
<% $circuit->name %>
</span>

<span class="tenth centeralign">
<% $circuit->state ? $circuit->state : $circuit->country %>
<label for="<% $circuit->id %>">
<span class="pagehalf hover odd ltborderbottom marno middle">
<span class="tenth centeralign">
<input
type = "checkbox"
name = "<% $circuit->id %>"
id = "<% $circuit->id %>"
<% $request->{"circuits"}{$circuit->id} ? "checked" : "" %>
>
</span>
<span class="fourfifths padno">
<% $circuit->name %>
</span>

<span class="tenth centeralign">
<% $circuit->state ? $circuit->state : $circuit->country %>
</span>
</span>
</label>
% }
</div>

<div class="libl pagefull rightalign padleft">
<span class="third centeralign">
<input
type = "submit"
value = "Next: Tournament Location"
>
</span>
</label>
</div>
% }
</div>

<div class="libl pagefull rightalign padleft">
<span class="third centeralign">
<input
type = "submit"
value = "Next: Tournament Location"
>
</span>
</div>

% if (@tourn_circuits) {
<h4>Circuits you've managed tournaments in</h4>
% }

<div class="full nospace">
% foreach my $circuit (sort {$a->name cmp $b->name} @tourn_circuits) {
% next if $done_already{$circuit->id}++;

<label for="<% $circuit->id %>">
<span class="pagehalf hover odd ltborderbottom marno middle">
<span class="tenth centeralign">
<input
type = "checkbox"
name = "<% $circuit->id %>"
id = "<% $circuit->id %>"
<% $request->{"circuits"}{$circuit->id} ? "checked" : "" %>
>
</span>
<span class="fourfifths padno">
<% $circuit->name %>
</span>

<span class="tenth centeralign">
<% $circuit->state ? $circuit->state : $circuit->country %>
<div class="full nospace">
% foreach my $circuit (sort {$a->name cmp $b->name} @tourn_circuits) {
% next if $done_already{$circuit->id}++;

<label for="<% $circuit->id %>">
<span class="pagehalf hover odd ltborderbottom marno middle">
<span class="tenth centeralign">
<input
type = "checkbox"
name = "<% $circuit->id %>"
id = "<% $circuit->id %>"
<% $request->{"circuits"}{$circuit->id} ? "checked" : "" %>
>
</span>
<span class="fourfifths padno">
<% $circuit->name %>
</span>

<span class="tenth centeralign">
<% $circuit->state ? $circuit->state : $circuit->country %>
</span>
</span>
</label>
% }
</div>

<div class="libl pagefull rightalign padleft">
<span class="third centeralign">
<input
type = "submit"
value = "Next: Tournament Location"
>
</span>
</label>
</div>
% }
</div>

<div class="liblrow rightalign">
<span class="third centeralign">
<input
type = "submit"
value = "Next: Tournament Location"
>
</span>
</div>

<h4>Other circuits</h4>

% if (@circuits || @tourn_circuits) {
<h4>Other circuits</h4>
% } else {
<h4>Circuits</h4>
% }

<div class="full nospace">
% foreach my $circuit (sort {$a->name cmp $b->name} @all_circuits) {
Expand Down Expand Up @@ -219,7 +223,7 @@
<span class="third centeralign">
<input
type = "submit"
value = "Next: Tournament Host Site"
value = "Next: Tournament Location"
>
</span>
</div>
Expand Down