<div ng-show="clientManager.isClient()">
	<h4 class="subheader">Location</h4>
	<div class="form-group">
		<label for="site_id" class="col-sm-3 control-label label-required">Site:</label>
		<div class="col-sm-9">
			<select name="site_id" class="form-control" id="site_id" ng-model="data.site_id" ng-required="clientManager.isClient()" ng-options="site.id as site.name for site in clientManager.getClient().sites" default-location>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label for="site_user_id" class="col-sm-3 control-label label-required">User:</label>
		<div class="col-sm-9">
			<select name="site_user_id" class="form-control" id="site_user_id" ng-model="data.site_user_id" ng-required="clientManager.isClient()" ng-options="user.id as user.first_name+' '+user.last_name for user in locationManager.getUsers(data.site_id)"></select>
		</div>
	</div>
	<div class="form-group">
		<label for="direct_dial" class="col-sm-3 control-label label-required">DDI:</label>
		<div class="col-sm-9">
			<input type="text" name="direct_dial" value="{[{ locationManager.getUserDDI(data.site_user_id) }]}" ng-model="data.direct_dial" ng-class="{'col-sm-10': changed_ddi}" class="form-control" ng-required="clientManager.isClient()" ng-change="changed_ddi = true" ng-disabled="!data.site_user_id">
			<button class="btn btn-primary pull-right" ng-show="changed_ddi" ng-click="updateDDI(data.direct_dial, data.site_id, data.site_user_id)" save-ddi eat-click>Save</button>
			<small ng-show="changed_ddi"><br />Note: not pressing save will still keep the changed number inside the booking, but it won't update the user's phone</small>
		</div>
	</div>
</div>