aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/locmanage.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-05 18:39:10 -0800
committerfriendica <info@friendica.com>2014-11-05 18:39:10 -0800
commit038e7c892376f51f81a2b9769a5a0b69cc17571a (patch)
treefca5261bf1a93b0086e27056c63c7c296dad5b0c /view/tpl/locmanage.tpl
parent70b964d1c4f13937dc564e820c2802ec180444fb (diff)
downloadvolse-hubzilla-038e7c892376f51f81a2b9769a5a0b69cc17571a.tar.gz
volse-hubzilla-038e7c892376f51f81a2b9769a5a0b69cc17571a.tar.bz2
volse-hubzilla-038e7c892376f51f81a2b9769a5a0b69cc17571a.zip
crude skeleton for location manager and the UI sucks but at least it's on a webpage and you don't have to do it by hand.
Diffstat (limited to 'view/tpl/locmanage.tpl')
-rw-r--r--view/tpl/locmanage.tpl26
1 files changed, 26 insertions, 0 deletions
diff --git a/view/tpl/locmanage.tpl b/view/tpl/locmanage.tpl
new file mode 100644
index 000000000..5a25850a1
--- /dev/null
+++ b/view/tpl/locmanage.tpl
@@ -0,0 +1,26 @@
+<h2>{{$header}}</h2>
+
+<script>
+function primehub(id) {
+ $.post('locs','primary='+id,function(data) { window.location.href=window.location.href; });
+}
+function drophub(id) {
+ $.post('locs','drop='+id,function(data) { window.location.href=window.location.href; });
+}
+</script>
+
+<table>
+<tr><td>{{$loc}}</td><td>{{$mkprm}}</td><td>{{$drop}}</td></tr>
+{{foreach $hubs as $hub}}
+<tr><td>
+{{if $hub.deleted}}<strike>{{/if}}
+{{$hub.hubloc_url}} ({{$hub.hubloc_addr}}){{if $hub.deleted}}</strike>{{/if}}</td>
+<td>
+
+{{if $hub.primary}}<i class="icon-check"></i>{{else}}<button class="btn btn-std"><i class="icon-check-empty" onclick="primehub({{$hub.hubloc_id}}); return false;" ></i></button>{{/if}}
+</td>
+<td>{{if $hub.primary}}{{else}}{{if ! $hub.deleted}}<button class="btn btn-std" onclick="drophub({{$hub.hubloc_id}}); return false;"><i class="icon-remove"></i></button>{{/if}}{{/if}}</td>
+</tr>
+{{/foreach}}
+</table>
+