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

    <div class="col-sm-5">
        <input type="text" name="name" class="form-control">
    </div>
</div>

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

    <div class="col-sm-5">
        <select class="form-control" name="language">
            {{#each languages}}
                {{#unless_eq nameLower compare="unknown"}}
                    <option value="{{nameLower}}">{{name}}</option>
                {{/unless_eq}}
            {{/each}}
        </select>
    </div>

    <div class="col-sm-1 help-inline">
        <i class="icon-nd-form-info" title="Series assigned this profile will be look for episodes with the selected language"/>
    </div>
</div>

<div class="form-group advanced-setting">
    <label class="col-sm-3 control-label">Delay</label>

    <div class="col-sm-5">
        <input type="number" min="0" max="72" name="grabDelay" class="form-control x-delay">
    </div>

    <div class="col-sm-1 help-inline">
        <i class="icon-nd-form-info" title="Wait time in hours before grabbing a release automatically, set to 0 to disable. The highest allowed quality in the profile will be grabbed immediately when available."/>
    </div>
</div>

<div class="form-group advanced-setting x-delay-mode">
    <label class="col-sm-3 control-label">Delay Mode</label>

    <div class="col-sm-5">
        <select class="form-control" name="grabDelayMode">
            <option value="first">First</option>
            <option value="cutoff">Cutoff</option>
            <option value="always">Always</option>
        </select>
    </div>

    <div class="col-sm-1 help-inline">
        <i class="icon-nd-form-info" data-html="true" title="First: Delay until first wanted release passes delay, grabbing best quality release at that time. Cutoff: Delay for all qualities below the cutoff. Always: Delay before grabbing all qualities"/>
    </div>
</div>

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

    <div class="col-sm-5">
        <select class="form-control x-cutoff" name="cutoff.id" validation-name="cutoff">
            {{#eachReverse items}}
            {{#if allowed}}
            <option value="{{quality.id}}">{{quality.name}}</option>
            {{/if}}
            {{/eachReverse}}
        </select>
    </div>

    <div class="col-sm-1 help-inline">
        <i class="icon-nd-form-info" title="Once this quality is reached NzbDrone will no longer download episodes"/>
    </div>
</div>