Add button when there are no servers
parent
5511cd5579
commit
5b0fba63aa
|
@ -62,6 +62,8 @@ class StatusController extends AbstractServerController {
|
|||
'label_rtime' => psm_get_lang('servers', 'latency'),
|
||||
'block_layout_active' => ($layout == 0) ? 'active' : '',
|
||||
'list_layout_active' => ($layout != 0) ? 'active' : '',
|
||||
'label_add_server' => psm_get_lang('system', 'add_new'),
|
||||
'url_save' => psm_build_url(array('mod' => 'server', 'action' => 'edit')),
|
||||
);
|
||||
$this->setHeaderAccessories($this->twig->render('module/server/status/header.tpl.html', $layout_data));
|
||||
|
||||
|
|
|
@ -36,7 +36,8 @@
|
|||
{% endfor %}
|
||||
{% if not servers_offline and not servers_online %}
|
||||
{{ label_none }}
|
||||
<!-- TODO knop om nieuwe server toe te voegen -->
|
||||
<div class="w-100"></div>
|
||||
<button class="btn btn-primary" onclick="window.location.href='{{ url_save|raw }}'">{{ label_add_server }}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -87,7 +88,8 @@
|
|||
</table>
|
||||
{% else %}
|
||||
{{ label_none }}
|
||||
<!-- TODO knop om nieuwe server toe te voegen -->
|
||||
<div class="w-100"></div>
|
||||
<button class="btn btn-primary" onclick="window.location.href='{{ url_save|raw }}'">{{ label_add_server }}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue