<div class="modal-header">
	<h3 class="modal-title">{{ 'user' | translate }}: {{ model.username }}</h3>
</div>
<div class="modal-body">
	
	<form class="form-horizontal" role="form">

		<div class="form-group">
			<label class="col-sm-3 control-label">Id</label>
			<div class="col-sm-9">
				<p class="form-control-static">{{model.id}}</p>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">{{ 'email' | translate }}</label>
			<div class="col-sm-9">
				<p class="form-control-static">{{ model.email }}</p>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">{{ 'udHasPassword' | translate }}</label>
			<div class="col-sm-9">
				<p class="form-control-static">
					{{ model.hasPassword.toString() | translate }}&nbsp;&nbsp;
					<button class="btn btn-default btn-xs" ng-click="resetPassword()"> {{ 'setPassword' | translate }}</button>
					<button class="btn btn-default btn-xs" ng-click="clearPassword()" ng-show="model.hasPassword"> {{ 'clearPassword' | translate }}</button>
				</p>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">{{ 'udIsAdmin' | translate }}</label>
			<div class="col-sm-9">
				<p class="form-control-static">
					{{ model.isAdmin.toString() | translate }}&nbsp;&nbsp;
					<button ng-show="!model.isAdmin" type="button" class="btn btn-warning btn-xs" ng-click="grantAdmin()">{{ 'udGrantAdmin' | translate }}</button>
					<button ng-show="model.isAdmin" type="button" class="btn btn-danger btn-xs" ng-click="revokeAdmin()">{{ 'udRevokeAdmin' | translate }}</button>
				</p>
			</div>
		</div>

	</form>

</div>
<div class="modal-footer">
	<button class="btn btn-danger pull-left" ng-click="remove()" ng-show="model.canDelete"><i class="fa fa-trash"></i> {{ 'remove' | translate }}</button>
	<button class="btn btn-default pull-left" ng-click="showEvents()"><i class="fa fa-clock-o"></i> {{ 'history' | translate }}</button>
	<button class="btn btn-default pull-left" ng-click="showTransactions()"><i class="fa fa-exchange"></i> {{ 'transactions' | translate }}</button>
	<button class="btn btn-default" ng-click="resetPassword()">{{ 'resetPassword' | translate }}</button>
	<button class="btn btn-default" ng-click="generateToken()">{{ 'udGenToken' | translate }}</button>
	<button class="btn btn-primary" ng-click="close()">{{ 'close' | translate }}</button>
</div>
