{css} {js}
{tab_container id="routednetworksbox" label="Routed Networks"} {tab_header content_id="routednetworkspanel-`$layout.module`"} {tab_header_cell icon="lms-ui-icon-routing"} {t a=$routednetworks|@count|default:"0"}Routed Networks ($a):{/t} {/tab_header_cell} {/tab_header} {tab_contents id="routednetworkspanel-`$layout.module`"} {tab_table} {if $routednetworks}
{trans("Name:")}
{trans("Address:")}
{trans("Comment:")}
{/if} {foreach $routednetworks as $network}
{$network.name}
{$network.ip}
36} title="{$network.comment}"{/if}> {$network.comment|default:"-"|truncate:40:"…"}
{textformat assign="onclick" wrap=5000} confirmDialog($t('Are you sure, you want to remove routed network?'), this).done(function() { $('form#routednetworks').attr('action', '?m=routednetworks&action=delete&netid={$network.id}').submit(); }); {/textformat} {button type="link" icon="delete" onclick=$onclick tip="Remove routed network"} {button type="link" href="?m=netinfo&id={$network.id}" icon="info" tip="Info"}
{foreachelse}
{trans("That node hasn't got any assigned routed networks.")}
{/foreach} {/tab_table} {if !empty($routednetworks) || !empty($notroutednetworks)} {tab_button_panel} {tab_buttons} {if !empty($notroutednetworks)} {/if} {/tab_buttons} {tab_buttons} {if !empty($routednetworks)} {/if} {/tab_buttons} {/tab_button_panel} {/if} {/tab_contents} {/tab_container}