2 [% IF request.user == user %]
4 <form method="post" action="[%base%]/user/edit_albums/[%user.id%]">
5 [% IF user.albums.size > 0 %]
6 <table style="width:100%">
8 <th style="width: 70%"> Name </th> <th> Private? </th> <th> Delete? </th>
10 [% FOR album = user.albums %]
12 <td> <a href="[%base%]/album/view/[%album.id%]/">[% album.name %]</a> </td>
13 <td> <input type="checkbox" name="privacy_[% album.id%]"
14 value="1" [% IF album.privacy == 1 %] checked="1" [%END%] />
16 <td> <input type="submit" value="Delete" name="delete_[%album.id%]"/>
21 <input type="submit" value="Submit changes" name="changes">
24 <h3> Create a new album </h3>
25 Name: <input name="new_name"/> <br>
26 Private? <input type="checkbox" name="new_privacy"/> <br>
27 <input type="submit" value="Create" name="create">
31 [% IF albums.size > 0 %]
32 <h2> Public albums </h2>
34 [% FOR album = albums %]
35 <li> <a href="[%base%]/album/view/[%album.id%]">[% album %]</a>