<div class="row justify-content-center">
    <div class="col-8">
        <div *ngIf="userProfile">
            <h2><span jhiTranslate="zipConnectApp.userProfile.detail.title">User Profile</span> {{userProfile.id}}</h2>
            <hr>
            <jhi-alert-error></jhi-alert-error>
            <dl class="row-md jh-entity-details">
                <dt><span jhiTranslate="zipConnectApp.userProfile.firstName">First Name</span></dt>
                <dd>
                    <span>{{userProfile.firstName}}</span>
                </dd>
                <dt><span jhiTranslate="zipConnectApp.userProfile.lastName">Last Name</span></dt>
                <dd>
                    <span>{{userProfile.lastName}}</span>
                </dd>
                <dt><span jhiTranslate="zipConnectApp.userProfile.userStack">User Stack</span></dt>
                <dd>
                    <span>{{userProfile.userStack}}</span>
                </dd>
                <dt><span jhiTranslate="zipConnectApp.userProfile.user">User</span></dt>
                <dd>
                    {{userProfile.user?.id}}
                </dd>
                <dt><span jhiTranslate="zipConnectApp.userProfile.employer">Employer</span></dt>
                <dd>
                    <div *ngIf="userProfile.employer">
                        <a [routerLink]="['/employer', userProfile.employer?.id, 'view']">{{userProfile.employer?.id}}</a>
                    </div>
                </dd>
                <dt><span jhiTranslate="zipConnectApp.userProfile.cohort">Cohort</span></dt>
                <dd>
                    <div *ngIf="userProfile.cohort">
                        <a [routerLink]="['/cohort', userProfile.cohort?.id, 'view']">{{userProfile.cohort?.id}}</a>
                    </div>
                </dd>
            </dl>

            <button type="submit"
                    (click)="previousState()"
                    class="btn btn-info">
                <fa-icon [icon]="'arrow-left'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
            </button>

            <button type="button"
                    [routerLink]="['/user-profile', userProfile.id, 'edit']"
                    class="btn btn-primary">
                <fa-icon [icon]="'pencil-alt'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
            </button>
        </div>
    </div>
</div>
