<div class="form-horizontal">
    <fieldset>
        <legend>Start-Up</legend>

        <div class="control-group">
            <label class="control-label">Port Number</label>

            <div class="controls">
                <input type="number" placeholder="8989" name="port"/>
                    <span>
                <i class="icon-nd-form-warning" title="Requires restart to take effect"/>
            </span>
            </div>

        </div>

        <div class="control-group">
            <label class="control-label">Open browser on start</label>

            <div class="controls">
                <label class="checkbox toggle well">
                    <input type="checkbox" name="launchBrowser"/>

                    <p>
                        <span>Yes</span>
                        <span>No</span>
                    </p>

                    <div class="btn btn-primary slide-button"/>
                </label>

            <span class="help-inline-checkbox">
                <i class="icon-question-sign" title="Open a web browser and navigate to NzbDrone homepage on app start. Has no effect if installed as a windows service"/>
            </span>
            </div>
        </div>
    </fieldset>

    <fieldset>
        <legend>Security</legend>
        <div class="control-group">
            <label class="control-label">Authentication</label>
            <div class="controls">
                <label class="checkbox toggle well">
                    <input type="checkbox" class='x-auth' name="authenticationEnabled"/>
                    <p>
                        <span>On</span>
                        <span>Off</span>
                    </p>
                    <div class="btn btn-primary slide-button"/>
                </label>

            <span class="help-inline-checkbox">
                <i class="icon-question-sign" title="Require Username and Password to access Nzbdrone"/>
            </span>
            </div>
        </div>
        <div class='x-auth-options'>
            <div class="control-group">
                <label class="control-label">Username</label>
                <div class="controls">
                    <input type="text" placeholder="Username" name="username"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Password</label>
                <div class="controls">
                    <input type="password" name="password"/>
                </div>
            </div>
        </div>
    </fieldset>

    <fieldset>
        <legend>Logging</legend>

        <div class="control-group">
            <label class="control-label">Log Level</label>

            <div class="controls">
                <select name="logLevel">
                    <option value="Trace">Trace</option>
                    <option value="Debug">Debug</option>
                    <option value="Info">Info</option>
                </select>

                <span>
                    <i class="icon-nd-form-warning" title="Trace and Debug logging should only be enabled temporarily"/>
                </span>
            </div>
        </div>
    </fieldset>

    {{#unless_eq branch compare="master"}}
    <fieldset>
        <legend>Development</legend>
        <div class="alert">
            <i class="icon-nd-warning"></i>
            Don't change anything here unless you know what you are doing.
        </div>
        <div class="control-group">
            <label class="control-label">Branch</label>

            <div class="controls">
                <input type="text" placeholder="master" name="branch"/>
            </div>
        </div>
    </fieldset>
    {{/unless_eq}}
</div>