<fieldset class="advanced-setting">
    <legend>Permissions</legend>

    <div class="form-group">
        <label class="col-sm-3 control-label">Set Permissions</label>

        <div class="col-sm-8">
            <div class="input-group">
                <label class="checkbox toggle well">
                    <input type="checkbox" name="setPermissionsLinux"/>
                    <p>
                        <span>Yes</span>
                        <span>No</span>
                    </p>

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

                <span class="help-inline-checkbox">
                    <i class="icon-nd-form-info" title="Should chmod/chown be run when files are imported/renamed?"/>
                    <i class="icon-nd-form-warning" title="If you're unsure what these settings do, do not alter them."/>
                </span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-3 control-label">File chmod mask</label>

        <div class="col-sm-1 col-sm-push-4 help-inline">
            <i class="icon-nd-form-info" title="Octal, applied to media files when imported/renamed by Sonarr"/>
        </div>

        <div class="col-sm-4 col-sm-pull-1">
            <input type="text" name="fileChmod" class="form-control"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-3 control-label">Folder chmod mask</label>

        <div class="col-sm-1 col-sm-push-4 help-inline">
            <i class="icon-nd-form-info" title="Octal, applied to series/season folders created by Sonarr"/>
        </div>

        <div class="col-sm-4 col-sm-pull-1">
            <input type="text" name="folderChmod" class="form-control"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-3 control-label">chown User</label>

        <div class="col-sm-1 col-sm-push-4 help-inline">
            <i class="icon-nd-form-info" title="Username or uid. Use uid for remote file systems."/>
        </div>

        <div class="col-sm-4 col-sm-pull-1">
            <input type="text" name="chownUser" class="form-control"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-3 control-label">chown Group</label>

        <div class="col-sm-1 col-sm-push-4 help-inline">
            <i class="icon-nd-form-info" title="Group name or gid. Use gid for remote file systems."/>
        </div>

        <div class="col-sm-4 col-sm-pull-1">
            <input type="text" name="chownGroup" class="form-control"/>
        </div>
    </div>
</fieldset>
