<div [formGroup]="globalSettingsForm" #form="ngForm">

    <div class="form-group">
        <div class="form-check">
            <input type="checkbox"
                   class="form-check-input"
                   id="recentFilesEnabled"
                   formControlName="recentFilesEnabled"
            />
            <label class="form-check-label">
                Enabled
            </label>
        </div>
    </div>

    <div class="form-group">
        <div class="form-check">
            <input type="checkbox"
                   class="form-check-input"
                   id="recentFilesOpenLastOnStartup"
                   formControlName="recentFilesOpenLastOnStartup"
            />
            <label class="form-check-label">
                Open last file on startup
            </label>
        </div>
    </div>

    <div class="form-group" *ngIf="recentFilesClearEnabled">
        <a class="btn btn-default" (click)="globalRecentFilesClear()">
            <span class="icon icon-bin"></span>
            Clear recent files
        </a>
    </div>

</div>
