Lines 36-66
Link Here
|
36 |
[% UNLESS ( shelfnumber ) %] |
36 |
[% UNLESS ( shelfnumber ) %] |
37 |
|
37 |
|
38 |
[% UNLESS ( newshelf ) %] |
38 |
[% UNLESS ( newshelf ) %] |
39 |
[% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %] |
39 |
[% IF add_to_some_public_shelves.count OR add_to_some_private_shelves %] |
40 |
<fieldset class="rows"> |
40 |
<fieldset class="rows"> |
41 |
<legend>Select an existing list</legend> |
41 |
<legend>Select an existing list</legend> |
42 |
<ol> |
42 |
<ol> |
43 |
<li> |
43 |
<li> |
44 |
<label>Choose list</label> |
44 |
<label>Choose list</label> |
45 |
<select name="shelfnumber" id="shelfnumber"> |
45 |
<select name="shelfnumber" id="shelfnumber"> |
46 |
[% IF private_shelves.count %] |
46 |
[% IF add_to_some_private_shelves.count %] |
47 |
<optgroup label="Private lists"> |
47 |
<optgroup label="Private lists"> |
48 |
[% FOREACH private_shelf IN private_shelves %] |
48 |
[% FOREACH s IN add_to_some_private_shelves %] |
49 |
<option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option> |
49 |
<option value="[% s.shelfnumber | html %]">[% s.shelfname | html %]</option> |
50 |
[% END %] |
50 |
[% END %] |
51 |
</optgroup> |
51 |
</optgroup> |
52 |
[% END %] |
52 |
[% END %] |
53 |
[% IF private_shelves_shared_with_me.count %] |
53 |
[% IF add_to_some_public_shelves.count %] |
54 |
<optgroup label="Private lists shared with me"> |
|
|
55 |
[% FOREACH private_shelf IN private_shelves_shared_with_me %] |
56 |
<option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option> |
57 |
[% END %] |
58 |
</optgroup> |
59 |
[% END %] |
60 |
[% IF public_shelves.count %] |
61 |
<optgroup label="Public lists"> |
54 |
<optgroup label="Public lists"> |
62 |
[% FOREACH public_shelf IN public_shelves %] |
55 |
[% FOREACH s IN add_to_some_public_shelves %] |
63 |
<option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option> |
56 |
<option value="[% s.shelfnumber | html %]">[% s.shelfname | html %]</option> |
64 |
[% END %] |
57 |
[% END %] |
65 |
</optgroup> |
58 |
</optgroup> |
66 |
[% END %] |
59 |
[% END %] |