2016-03-23 18:39:41 +01:00
|
|
|
<div class="row m-t">
|
|
|
|
<div class="col-sm-offset-3 col-sm-6">
|
2024-04-09 16:11:12 +02:00
|
|
|
<div ng-if="genderRequired" class="form-group" ng-class="{'has-error': adminForm['admin[statistic_profile_attributes][gender]'].$dirty && adminForm['admin[statistic_profile_attributes][gender]'].$invalid}">
|
2019-11-19 11:44:32 +01:00
|
|
|
<label class="checkbox-inline btn btn-default">
|
|
|
|
<input type="radio"
|
|
|
|
name="admin[statistic_profile_attributes][gender]"
|
|
|
|
ng-model="admin.statistic_profile_attributes.gender"
|
|
|
|
ng-value="true"
|
2024-03-21 18:21:11 +01:00
|
|
|
ng-required="genderRequired"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<i class="fa fa-male m-l-sm"></i> {{ 'app.admin.admins_new.man' | translate }}
|
2019-11-19 11:44:32 +01:00
|
|
|
</label>
|
|
|
|
<label class="checkbox-inline btn btn-default">
|
|
|
|
<input type="radio"
|
|
|
|
name="admin[statistic_profile_attributes][gender]"
|
|
|
|
ng-model="admin.statistic_profile_attributes.gender"
|
|
|
|
ng-value="false"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<i class="fa fa-female m-l-sm"></i> {{ 'app.admin.admins_new.woman' | translate }}
|
2019-11-19 11:44:32 +01:00
|
|
|
</label>
|
2024-03-21 18:21:11 +01:00
|
|
|
<span ng-show="genderRequired" class="exponent m-l-xs help-cursor"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': adminForm['admin[username]'].$dirty && adminForm['admin[username]'].$invalid}">
|
|
|
|
<div class="input-group">
|
2019-11-19 11:44:32 +01:00
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i> <span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input ng-model="admin.username"
|
|
|
|
type="text" name="admin[username]"
|
|
|
|
class="form-control"
|
|
|
|
id="user_username"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.admin.admins_new.pseudonym' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="adminForm['admin[username]'].$dirty && adminForm['admin[username]'].$error.required" translate>{{ 'app.admin.admins_new.pseudonym_is_required' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': adminForm['admin[profile_attributes][last_name]'].$dirty && adminForm['admin[profile_attributes][last_name]'].$invalid}">
|
|
|
|
<div class="input-group">
|
2019-11-19 11:44:32 +01:00
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i> <span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input ng-model="admin.profile_attributes.last_name"
|
|
|
|
type="text"
|
|
|
|
name="admin[profile_attributes][last_name]"
|
|
|
|
class="form-control"
|
|
|
|
id="user_last_name"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.admin.admins_new.surname' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="adminForm['admin[profile_attributes][last_name]'].$dirty && adminForm['admin[profile_attributes][last_name]'].$error.required" translate>{{ 'app.admin.admins_new.surname_is_required' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': adminForm['admin[profile_attributes][first_name]'].$dirty && adminForm['admin[profile_attributes][first_name]'].$invalid}">
|
|
|
|
<div class="input-group">
|
2019-11-19 11:44:32 +01:00
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i> <span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input ng-model="admin.profile_attributes.first_name"
|
|
|
|
type="text"
|
|
|
|
name="admin[profile_attributes][first_name]"
|
|
|
|
class="form-control"
|
|
|
|
id="user_first_name"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.admin.admins_new.first_name' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="adminForm['admin[profile_attributes][first_name]'].$dirty && adminForm['admin[profile_attributes][first_name]'].$error.required" translate>{{ 'app.admin.admins_new.first_name_is_required' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': adminForm['admin[email]'].$dirty && adminForm['admin[email]'].$invalid}">
|
|
|
|
<div class="input-group">
|
2019-11-19 11:44:32 +01:00
|
|
|
<span class="input-group-addon"><i class="fa fa-envelope"></i> <span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input ng-model="admin.email"
|
|
|
|
type="email"
|
|
|
|
name="admin[email]"
|
|
|
|
class="form-control"
|
|
|
|
id="user_email"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.admin.admins_new.email_address' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="adminForm['admin[email]'].$dirty && adminForm['admin[email]'].$error.required" translate>{{ 'app.admin.admins_new.email_is_required' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
2019-06-04 13:33:00 +02:00
|
|
|
<div class="form-group" ng-class="{'has-error': adminForm['admin[statistic_profile_attributes][birthday]'].$dirty && adminForm['admin[statistic_profile_attributes][birthday]'].$invalid}">
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="input-group">
|
2024-03-21 18:21:11 +01:00
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar-o"></i>
|
|
|
|
<span ng-show="birthdayRequired" class="exponent m-l-xs help-cursor"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
|
|
|
</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="text"
|
|
|
|
id="user_birthday"
|
|
|
|
class="form-control"
|
2019-06-04 13:33:00 +02:00
|
|
|
ng-model="admin.statistic_profile_attributes.birthday"
|
2016-03-23 18:39:41 +01:00
|
|
|
uib-datepicker-popup="{{datePicker.format}}"
|
|
|
|
datepicker-options="datePicker.options"
|
|
|
|
is-open="datePicker.opened"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.admin.admins_new.birth_date' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-click="openDatePicker($event)"
|
2024-03-21 18:21:11 +01:00
|
|
|
ng-required="birthdayRequired"
|
2016-03-23 18:39:41 +01:00
|
|
|
/>
|
2016-03-29 13:31:02 +02:00
|
|
|
<input type="hidden"
|
2019-06-04 13:33:00 +02:00
|
|
|
name="admin[statistic_profile_attributes][birthday]"
|
|
|
|
value="{{admin.statistic_profile_attributes.birthday | toIsoDate}}" />
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
2022-12-16 15:35:02 +01:00
|
|
|
<span class="input-group-addon">
|
|
|
|
<i class="fa fa-map-marker"></i>
|
|
|
|
<span class="exponent" ng-show="addressRequired"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
|
|
|
</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="hidden"
|
2019-05-29 14:28:14 +02:00
|
|
|
name="admin[invoicing_profile_attributes][address_attributes][id]"
|
|
|
|
ng-value="admin.invoicing_profile_attributes.address.id" />
|
|
|
|
<input ng-model="admin.invoicing_profile_attributes.address_attributes.address"
|
2016-03-23 18:39:41 +01:00
|
|
|
type="text"
|
2019-05-29 14:28:14 +02:00
|
|
|
name="admin[invoicing_profile_attributes][address_attributes][address]"
|
2016-03-23 18:39:41 +01:00
|
|
|
class="form-control"
|
|
|
|
id="user_address"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.admin.admins_new.address' | translate }}">
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': adminForm['admin[profile_attributes][phone]'].$dirty && adminForm['admin[profile_attributes][phone]'].$invalid}">
|
|
|
|
<div class="input-group">
|
2020-07-21 18:04:20 +02:00
|
|
|
<span class="input-group-addon"><i class="fa fa-phone"></i> <span class="exponent" ng-show="phoneRequired"><i class="fa fa-asterisk" aria-hidden="true"></i></span></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input ng-model="admin.profile_attributes.phone"
|
|
|
|
type="text"
|
|
|
|
name="admin[profile_attributes][phone]"
|
|
|
|
class="form-control" id="user_phone"
|
2020-07-21 18:04:20 +02:00
|
|
|
placeholder="{{ 'app.admin.admins_new.phone_number' | translate }}"
|
|
|
|
ng-required="phoneRequired">
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-25 11:57:26 +02:00
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': adminForm['admin[group_id]'].$dirty && adminForm['admin[group_id]'].$invalid}">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-group"></i> <span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span></span>
|
|
|
|
<select ng-model="admin.group_id"
|
|
|
|
name="admin[group_id]"
|
|
|
|
class="form-control"
|
|
|
|
id="group_id"
|
|
|
|
required
|
|
|
|
ng-options="g.id as g.name for g in groups">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|