<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <ol class="breadcrumb">
        <li><a href="#/realms/{{realm.realm}}/users">Users</a></li>
        <li>{{user.username}}</li>
    </ol>

    <h1 data-ng-show="create">Add Identity Provider Link</h1>

    <kc-tabs-user></kc-tabs-user>

    <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
        <fieldset>
            <div class="form-group">
                <label class="col-md-2 control-label" for="identityProvider">Identity Provier <span class="required">*</span></label>
                <div class="col-sm-6">
                    <div>
                        <select class="form-control" id="identityProvider"
                                ng-model="federatedIdentity.identityProvider"
                                ng-options="providerAlias for providerAlias in availableProvidersToCreate"
                                required>
                        </select>
                    </div>
                </div>
            </div>
            <div class="form-group clearfix">
                <label class="col-md-2 control-label" for="userId">Identity Provider User ID <span class="required">*</span></label>
                <div class="col-md-6">
                    <input class="form-control" id="userId" type="text" ng-model="federatedIdentity.userId" required>
                </div>
                <kc-tooltip>Unique ID of the user on the Identity Provider side</kc-tooltip>
            </div>
            <div class="form-group clearfix">
                <label class="col-md-2 control-label" for="userName">Identity Provider Username <span class="required">*</span></label>
                <div class="col-md-6">
                    <input class="form-control" id="userName" type="text" ng-model="federatedIdentity.userName" required>
                </div>
                <kc-tooltip>Username on the Identity Provider side</kc-tooltip>
            </div>

        </fieldset>


        <div class="form-group" data-ng-show="access.manageRealm">
            <div class="col-md-10 col-md-offset-2">
                <button kc-save>Save</button>
                <button kc-cancel data-ng-click="cancel()">Cancel</button>
            </div>
        </div>

    </form>
</div>

<kc-menu></kc-menu>