{include file="sections/header.tpl"}
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12 col-md-12">
                        <div class="card card-primary card-hovered card-stacked mb30">
                            <div class="card-header">
                                <h3 class="card-title">{Lang::T('Edit Router')}</h3>
                            </div>
                                <div class="card-body">
                                    <form class="form-horizontal" method="post" role="form" action="{$_url}routers/edit-post" >
                                        <input type="hidden" name="id" value="{$d['id']}">
                                        <div class="form-group row">
                                            <label class="col-md-4 control-label">{Lang::T('Status')}</label>
                                            <div class="col-md-8">
                                                <label class="radio-inline warning">
                                                    <input type="radio" {if $d['enabled'] == 1}checked{/if} name="enabled" value="1"> Enable
                                                </label>
                                                <label class="radio-inline">
                                                    <input type="radio" {if $d['enabled'] == 0}checked{/if} name="enabled" value="0"> Disable
                                                </label>
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label class="col-md-4 control-label">{Lang::T('Router Name / Location')}</label>
                                            <div class="col-md-6">
                                                <input type="text" class="form-control" id="name" name="name" maxlength="32" value="{$d['name']}">
                                                <p class="help-block">{Lang::T('Name of Area that router operated')}</p>
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label class="col-md-4 control-label">{Lang::T('IP Address')}</label>
                                            <div class="col-md-6">
                                                <input type="text" placeholder="192.168.88.1:8728" class="form-control" id="ip_address" name="ip_address" value="{$d['ip_address']}">
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label class="col-md-4 control-label">{Lang::T('Username')}</label>
                                            <div class="col-md-6">
                                                <input type="text" class="form-control" id="username" name="username" value="{$d['username']}">
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label class="col-md-4 control-label">{Lang::T('Router Secret')}</label>
                                            <div class="col-md-6">
                                                <input type="password" class="form-control" id="password" name="password" value="{$d['password']}" onmouseleave="this.type = 'password'"
                                                onmouseenter="this.type = 'text'">
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label class="col-md-4 control-label">{Lang::T('Description')}</label>
                                            <div class="col-md-6">
                                                <textarea class="form-control" id="description" name="description">{$d['description']}</textarea>
                                                <p class="help-block">{Lang::T('Explain Coverage of router')}</p>
                                            </div>
                                        </div>
                                        <center>
                                            <div class="form-group row">
                                                <div class="col-lg-offset-2 col-lg-10">
                                                    <button class="btn btn-primary mb-3" type="submit">{Lang::T('Save Changes')}</button>
                                                    Or <a class="btn btn-outline-primary" href="{$_url}routers/list">{Lang::T('Cancel')}</a>
                                                </div>
                                            </div>
                                        </center>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
            </div>
{include file="sections/footer.tpl"}