<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<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>

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

    <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageUsers">
        <div class="form-group clearfix block">
            <label class="col-md-2 control-label" for="street">Street</label>
            <div class="col-md-6">
                <input ng-model="user.attributes.street" class="form-control" type="text" name="street" id="street" />
            </div>
            <kc-tooltip>Street address.</kc-tooltip>
        </div>
        <div class="form-group clearfix block">
            <label class="col-md-2 control-label" for="locality">City or Locality</label>
            <div class="col-md-6">
                <input ng-model="user.attributes.locality" class="form-control" type="text" name="locality" id="locality" />
            </div>
            <kc-tooltip>City or locality.</kc-tooltip>
        </div>
        <div class="form-group clearfix block">
            <label class="col-md-2 control-label" for="region">State, Province, or Region</label>
            <div class="col-md-6">
                <input ng-model="user.attributes.region" class="form-control" type="text" name="region" id="region" />
            </div>
            <kc-tooltip>State, province, prefecture, or region.</kc-tooltip>
        </div>
        <div class="form-group clearfix block">
            <label class="col-md-2 control-label" for="postal_code">Zip or Postal code</label>
            <div class="col-md-6">
                <input ng-model="user.attributes.postal_code" class="form-control" type="text" name="postal_code" id="postal_code" />
            </div>
            <kc-tooltip>Zip code or postal code.</kc-tooltip>
        </div>
        <div class="form-group clearfix block">
            <label class="col-md-2 control-label" for="country">Country</label>
            <div class="col-md-6">
                <input ng-model="user.attributes.country" class="form-control" type="text" name="country" id="country" />
            </div>
            <kc-tooltip>Country name.</kc-tooltip>
        </div>

        <div class="form-group" data-ng-show="access.manageUsers">
            <div class="col-md-10 col-md-offset-2">
                <button kc-save  data-ng-disabled="!changed">Save</button>
                <button kc-reset data-ng-disabled="!changed">Cancel</button>
            </div>
        </div>
    </form>
</div>

<kc-menu></kc-menu>
