{include file="sections/header.tpl"}
<!-- routers-add -->
<div class="container">
<div class="row">
    <div class="col-sm-12 col-md-12">
        <div class="card card-primary card-hovered card-stacked mb30">
            <div class="card-title text-center">{Lang::T('Add Router')}</div>
            <div class="card-body">

                <form class="form-horizontal" method="post" role="form" action="{$_url}routers/add-post">
                    <div class="form-group row">
                        <label class="col-md-2 control-label">{Lang::T('Status')}</label>
                        <div class="col-md-10">
                            <div class="radio">
                                <label class="radio-inline warning">
                                    <input type="radio" checked name="enabled" value="1"> {Lang::T('Enable')}
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="enabled" value="0"> {Lang::T('Disable')}
                                </label>
                            </div>
                        </div>
                    </div>
                    
                    <div class="form-group row">
                        <label class="col-md-2 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" placeholder="{Lang::T('Enter Router Name')}">
                            <small class="form-text text-muted">{Lang::T('Name of Area that router operates')}</small>
                        </div>
                    </div>
                    
                    <div class="form-group row">
                        <label class="col-md-2 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" required>
                            <small class="form-text text-muted">{Lang::T('Format: 192.168.1.1:port')}</small>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 control-label">{Lang::T('Username')}</label>
                        <div class="col-md-6">
                            <input type="text" class="form-control" id="username" name="username" required>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 control-label">{Lang::T('Router Secret')}</label>
                        <div class="col-md-6">
                            <input type="password" class="form-control" id="password" name="password" onmouseenter="this.type='text'" onmouseleave="this.type='password'" required>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 control-label">{Lang::T('Description')}</label>
                        <div class="col-md-6">
                            <textarea class="form-control" id="description" name="description" rows="3"></textarea>
                            <small class="form-text text-muted">{Lang::T('Explain Coverage of router')}</small>
                        </div>
                    </div>

                    <div class="form-group row row">
                        <label class="col-md-2 control-label"></label>
                        <div class="col-md-6">
                            <label>
                                <input type="checkbox" checked name="testIt" value="yes"> {Lang::T('Test Connection')}
                            </label>
                        </div>
                    </div>

                    <div class="form-group row">
                        <div class="col-md-offset-2 col-md-10">
                            <button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button>
                            <span class="ml-2">Or <a href="{$_url}routers/list">{Lang::T('Cancel')}</a></span>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>

{include file="sections/footer.tpl"}
