summaryrefslogtreecommitdiff
path: root/mustash/templates/index.html
blob: e219959d4e15d1ec74debcb236e9cd689969de6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$def with (folders, form)

<div class="span8">
  <header>
    <h2>Existing folders</h2>
  </header>

  <table class="table">
    <tr>
      <th>Folder</th>
      <th>Owner</th>
      <th>Users</th>
      <th></th>
    </tr>
  $for folder in folders:
    <tr>
      <td><a href="/folder/$folder['id']/edit/">$folder['name']</a></td>
      <td>$folder['owner']</td>
      <td>
	${", ".join(folder['users'])}
      </td>
      <td>
	$ folder_id = folder['id']
	<form id="delete_folder_$folder_id" action="/folder/$folder_id/delete/" method="POST">
	  <input type="submit" class="btn" value="Delete" />
	</form>
      </td>
    </tr>    
  </table>
</div>

<div class="span4">
  <header>
    <h2>Add a folder</h2>
  </header>

  <form id="add_folder" action="" method="POST">
    $:form.render_css()
  </form>
</div>