2015-11-15 19:51:39 +01:00
|
|
|
<div class="generic-content-wrapper-styled">
|
2015-08-23 22:38:18 +02:00
|
|
|
<h2>{{$header}}</h2>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function primehub(id) {
|
|
|
|
$.post(baseurl + '/locs','primary='+id,function(data) { window.location.href=window.location.href; });
|
|
|
|
}
|
|
|
|
function drophub(id) {
|
|
|
|
$.post(baseurl + '/locs','drop='+id,function(data) { window.location.href=window.location.href; });
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2015-11-15 19:51:39 +01:00
|
|
|
<div class="descriptive-text">{{$sync_text}}</div>
|
|
|
|
<br />
|
|
|
|
<div class="descriptive-text">{{$drop_text}}</div>
|
|
|
|
<div class="descriptive-text">{{$last_resort}}</div>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-23 22:38:18 +02:00
|
|
|
<table>
|
|
|
|
<tr><td>{{$loc}}</td><td>{{$mkprm}}</td><td>{{$drop}}</td></tr>
|
|
|
|
{{foreach $hubs as $hub}}
|
2015-10-24 13:04:14 +02:00
|
|
|
{{if ! $hub.deleted }}
|
2015-08-23 22:38:18 +02:00
|
|
|
<tr><td>
|
2015-10-24 13:04:14 +02:00
|
|
|
{{$hub.hubloc_url}} ({{$hub.hubloc_addr}})</td>
|
2015-08-23 22:38:18 +02:00
|
|
|
<td>
|
2015-10-24 13:04:14 +02:00
|
|
|
{{if $hub.primary}}<button class="btn btn-std"><i class="icon-check"></i></button>{{else}}<button class="btn btn-std" onclick="primehub({{$hub.hubloc_id}}); return false;" ><i class="icon-check-empty" ></i></button>{{/if}}
|
2015-08-23 22:38:18 +02:00
|
|
|
</td>
|
2015-10-24 13:04:14 +02:00
|
|
|
<td><button class="btn btn-std" onclick="drophub({{$hub.hubloc_id}}); return false;"><i class="icon-trash"></i></button></td>
|
2015-08-23 22:38:18 +02:00
|
|
|
</tr>
|
2015-10-24 13:04:14 +02:00
|
|
|
{{/if}}
|
2015-08-23 22:38:18 +02:00
|
|
|
{{/foreach}}
|
|
|
|
</table>
|
2015-11-15 19:51:39 +01:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<button class="btn btn-std" onclick="window.location.href='/locs/f=&sync=1'; return false;">{{$sync}}</button>
|