summaryrefslogtreecommitdiffstats
path: root/f/templates
diff options
context:
space:
mode:
authorokalintu <ilkka.oksanen@aalto.fi>2015-03-04 02:45:33 +0200
committerokalintu <ilkka.oksanen@aalto.fi>2015-03-04 02:45:33 +0200
commitf607dac15deb8b9faeb060661ccf8edd2b9564fc (patch)
treef5ec095641b7f56b419c793e1ae3148a5b4650e5 /f/templates
parentf1258540d0ab8bc8acbff3f31040539d34131e48 (diff)
implemented feature to allow ppl to remove themselves from que
Diffstat (limited to 'f/templates')
-rw-r--r--f/templates/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/f/templates/index.html b/f/templates/index.html
index b75ee8a..b02d4b8 100644
--- a/f/templates/index.html
+++ b/f/templates/index.html
@@ -27,10 +27,12 @@
<tr><td></td><td> <button id="addbutton" ng-click="submit();">Lisää</button></td></tr>
</table>
<table id="que">
-<tr><th>Rivi</th><th>Nimi</th></tr>
+<tr><th>Rivi</th><th>Nimi</th><th>Poista</th></tr>
<tr ng-repeat="person in que">
<td >Rivi {{person.row}}</td>
<td >{{person.name}}</td>
+ <td ng-if="person.uid == uid" ng-click="querm(person.qid);"><img src="/f/images/delete.jpg"></td>
+ <td ng-if="person.uid != uid"></td>
</tr>
</table>
</div>