summaryrefslogtreecommitdiffstats
path: root/ui/html
diff options
context:
space:
mode:
Diffstat (limited to 'ui/html')
-rw-r--r--ui/html/base.tmpl.html2
-rw-r--r--ui/html/pages/operations/list.tmpl.html35
2 files changed, 13 insertions, 24 deletions
diff --git a/ui/html/base.tmpl.html b/ui/html/base.tmpl.html
index 91bdbc2..58122a0 100644
--- a/ui/html/base.tmpl.html
+++ b/ui/html/base.tmpl.html
@@ -14,7 +14,7 @@
{{ template "nav" . }}
</header>
<main>
- {{ template "main" }}
+ {{ template "main" . }} <!-- DONT FORGET THE DOT!!! -->
</main>
</body>
</html>
diff --git a/ui/html/pages/operations/list.tmpl.html b/ui/html/pages/operations/list.tmpl.html
index 046ca29..a8685ce 100644
--- a/ui/html/pages/operations/list.tmpl.html
+++ b/ui/html/pages/operations/list.tmpl.html
@@ -3,44 +3,33 @@
{{ define "main" }}
<h3>Operations <span><a href="#" class="admin-link">[Admin]</a></span></h3>
- {{if .Operations}}
- <ul>
- {{range .Operations}}
- <li>{{.Name}} - {{.Description}}</li>
- {{end}}
- </ul>
- {{else}}
- <p>There are no operations.</p>
- {{end}}
-
+{{if .Operations}}
<table id="home-summary-table">
<thead>
<tr id="header-row">
<th>Operation</th>
<th>RP</th>
<th>Lead Inspector[s]</th>
- <th>Another attribute</th>
- <th>Another attribute</th>
+ <th>Description</th>
+ <th>Organisation</th>
<th>SharePoint</th>
</tr>
</thead>
<tbody>
+ {{range .Operations }}
<tr>
- <td><a href="#">First operation</a></td>
+ <td><a href="#">{{.Name}}</a></td>
<td>Tim Gudgeon</td>
<td>Tina McKinchey / Barbara Snelland</td>
- <td>Bobbins</td>
- <td>Bobbins</td>
- <td><a href="#">Link</a></td>
- </tr>
- <tr>
- <td>Second organisation</td>
- <td>Seth Pring</td>
- <td>Barbara Snelland</td>
- <td>Bobbins</td>
- <td>Bobbins</td>
+ <td>{{.Description}}</td>
+ <td>{{.OrganisationName}}</td>
<td><a href="#">Link</a></td>
</tr>
+ {{end}}
</tbody>
</table>
+{{else}}
+ <p>There are no operations.</p>
+{{end}}
+
{{ end }}