2015-05-05 03:10:25 +02:00
|
|
|
<div class="modal-header">
|
2016-03-23 18:39:41 +01:00
|
|
|
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
|
2022-05-20 15:58:49 +02:00
|
|
|
<i class="fa fa-times close-modal-button" ng-click="dismiss()"></i>
|
2019-12-18 13:04:38 +01:00
|
|
|
<h1 translate>{{ 'app.public.common.create_your_account' }}</h1>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="">
|
2016-03-23 18:39:41 +01:00
|
|
|
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
|
|
|
<div class="well m-b-n">
|
2019-03-26 17:20:10 +01:00
|
|
|
<form role="form" name="signupForm" class="form-horizontal signup-form" novalidate autocomplete="off" ng-keydown="signupForm.$valid && $event.which == 13 && ok()">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="form-group" ng-class="{'has-error': signupForm.gender.$dirty && signupForm.gender.$invalid}">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<label class="checkbox-inline">
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="radio"
|
|
|
|
name="gender"
|
2019-06-04 13:33:00 +02:00
|
|
|
ng-model="user.statistic_profile_attributes.gender"
|
2016-03-23 18:39:41 +01:00
|
|
|
value="true"
|
2019-12-18 13:04:38 +01:00
|
|
|
required/> {{ 'app.public.common.man' | translate }}
|
2015-05-05 03:10:25 +02:00
|
|
|
</label>
|
|
|
|
<label class="checkbox-inline">
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="radio"
|
|
|
|
name="gender"
|
2019-06-04 13:33:00 +02:00
|
|
|
ng-model="user.statistic_profile_attributes.gender"
|
2019-12-18 13:04:38 +01:00
|
|
|
value="false"/> {{ 'app.public.common.woman' | translate }}
|
2015-05-05 03:10:25 +02:00
|
|
|
</label>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="exponent m-l-xs help-cursor" title="{{ 'app.public.common.used_for_statistics' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
|
|
|
<span class="help-block" ng-show="signupForm.gender.$dirty && signupForm.gender.$error.required" translate>{{ 'app.public.common.gender_is_required'}}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group names-row">
|
2015-05-05 03:10:25 +02:00
|
|
|
|
|
|
|
<div class="col-sm-6" ng-class="{'has-error': signupForm.first_name.$dirty && signupForm.first_name.$invalid}">
|
2016-08-02 12:27:45 +02:00
|
|
|
<input type="text"
|
2016-03-23 18:39:41 +01:00
|
|
|
name="first_name"
|
|
|
|
ng-model="user.profile_attributes.first_name"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.your_first_name' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
2020-02-18 10:17:07 +01:00
|
|
|
<span class="exponent m-l-xs help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.first_name.$dirty && signupForm.first_name.$error.required" translate>{{ 'app.public.common.first_name_is_required' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="m-b visible-xs"></div>
|
|
|
|
<div class="col-sm-6" ng-class="{'has-error': signupForm.last_name.$dirty && signupForm.last_name.$invalid}">
|
2016-08-02 12:27:45 +02:00
|
|
|
<input type="text"
|
2016-03-23 18:39:41 +01:00
|
|
|
name="last_name"
|
|
|
|
ng-model="user.profile_attributes.last_name"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.your_surname' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
2020-02-18 10:17:07 +01:00
|
|
|
<span class="exponent m-l-xs help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.last_name.$dirty && signupForm.last_name.$error.required" translate>{{ 'app.public.common.surname_is_required' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.username.$dirty && signupForm.username.$invalid}">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
2016-08-02 12:27:45 +02:00
|
|
|
<input type="text"
|
2016-03-23 18:39:41 +01:00
|
|
|
name="username"
|
|
|
|
ng-model="user.username"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.your_pseudonym' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2020-02-18 10:17:07 +01:00
|
|
|
<span class="exponent help-cursor" title="{{ 'app.public.common.used_for_profile' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.username.$dirty && signupForm.username.$error.required" translate>{{ 'app.public.common.pseudonym_is_required' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.email.$dirty && signupForm.email.$invalid}">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="email"
|
|
|
|
name="email"
|
2021-06-09 19:10:31 +02:00
|
|
|
ng-pattern="/^[^@]+@[^\.]+\..{2,}$/"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-model="user.email"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.your_email_address' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="exponent help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
|
|
|
<span class="help-block" ng-show="signupForm.email.$dirty && signupForm.email.$error.required" translate>{{ 'app.public.common.email_is_required' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.password.$dirty && signupForm.password.$invalid}">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-key"></i></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="password"
|
|
|
|
name="password"
|
|
|
|
ng-model="user.password"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.your_password' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required
|
|
|
|
ng-minlength="8">
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2019-03-26 17:20:10 +01:00
|
|
|
<span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.password.$dirty && signupForm.password.$error.required" translate>{{ 'app.public.common.password_is_required' }}</span>
|
|
|
|
<span class="help-block" ng-show="signupForm.password.$dirty && signupForm.password.$error.minlength" translate>{{ 'app.public.common.password_is_too_short' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.password_confirmation.$dirty && signupForm.password_confirmation.$invalid}">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-key"></i></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="password"
|
|
|
|
name="password_confirmation"
|
|
|
|
ng-model="user.password_confirmation"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.type_your_password_again' | translate }}"
|
2016-08-02 12:27:45 +02:00
|
|
|
required ng-minlength="8"
|
|
|
|
match="user.password">
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2019-03-26 17:20:10 +01:00
|
|
|
<span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.password_confirmation.$dirty && signupForm.password_confirmation.$error.required" translate>{{ 'app.public.common.password_confirmation_is_required' }}</span>
|
|
|
|
<span class="help-block" ng-show="signupForm.password_confirmation.$error.match" translate>{{ 'app.public.common.password_does_not_match_with_confirmation' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-08-02 12:27:45 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12 checkbox-group">
|
|
|
|
<input type="checkbox"
|
|
|
|
name="organization"
|
|
|
|
id="organization"
|
|
|
|
ng-model="user.organization"
|
|
|
|
value="false"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<label for="organization" translate>{{ 'app.public.common.i_am_an_organization' }}</label>
|
2016-08-02 12:27:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-show="user.organization" ng-class="{'has-error': signupForm.organization_name.$dirty && signupForm.organization_name.$invalid}">
|
2016-08-02 12:27:45 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-building-o"></i></span>
|
|
|
|
<input type="text"
|
|
|
|
name="organization_name"
|
2022-03-18 19:44:30 +01:00
|
|
|
ng-model="user.invoicing_profile_attributes.organization_attributes.name"
|
2016-08-02 12:27:45 +02:00
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.name_of_your_organization' | translate }}"
|
2016-08-02 12:27:45 +02:00
|
|
|
ng-required="user.organization">
|
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="exponent help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
|
|
|
<span class="help-block" ng-show="signupForm.organization_name.$dirty && signupForm.organization_name.$error.required" translate>{{ 'app.public.common.organization_name_is_required' }}</span>
|
2016-08-02 12:27:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-show="user.organization" ng-class="{'has-error': signupForm.organization_address.$dirty && signupForm.organization_address.$invalid}">
|
2016-08-02 12:27:45 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-map-marker"></i></span>
|
|
|
|
<input type="text"
|
|
|
|
name="organization_address"
|
2022-03-18 19:44:30 +01:00
|
|
|
ng-model="user.invoicing_profile_attributes.organization_attributes.address_attributes.address"
|
2016-08-02 12:27:45 +02:00
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.address_of_your_organization' | translate }}"
|
2016-08-02 12:27:45 +02:00
|
|
|
ng-required="user.organization">
|
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="exponent help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
|
|
|
<span class="help-block" ng-show="signupForm.organization_address.$dirty && signupForm.organization_address.$error.required" translate>{{ 'app.public.common.organization_address_is_required' }}</span>
|
2016-08-02 12:27:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-05-27 11:32:56 +02:00
|
|
|
<div ng-if="user.organization" ng-repeat="(i, profileCustomField) in profileCustomFields">
|
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.user_profile_custom_fields{{i}}.$dirty && signupForm.user_profile_custom_fields{{i}}.$invalid}">
|
2022-03-18 19:44:30 +01:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-building-o"></i></span>
|
|
|
|
<input type="text"
|
|
|
|
name="user_profile_custom_fields{{i}}"
|
|
|
|
ng-model="user.invoicing_profile_attributes.user_profile_custom_fields_attributes[i].value"
|
|
|
|
class="form-control"
|
|
|
|
placeholder="{{profileCustomField.label}}"
|
|
|
|
ng-required="profileCustomField.required">
|
|
|
|
</div>
|
2022-05-12 11:25:40 +02:00
|
|
|
<span ng-show="profileCustomField.required" class="exponent help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2022-03-18 19:44:30 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.user_profile_custom_fields{{i}}.$dirty && signupForm.user_profile_custom_fields{{i}}.$error.required" translate translate-values="{FEILD: profileCustomField.label}">{{ 'app.public.common.profile_custom_field_is_required' }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.group_id.$dirty && signupForm.group_id.$invalid}">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div>
|
2019-09-12 11:14:04 +02:00
|
|
|
<select ng-model="user.group_id" class="form-control" name="group_id" ng-options="g.id as g.name for g in enabledGroups" required>
|
2019-12-18 13:04:38 +01:00
|
|
|
<option value="" translate>{{ 'app.public.common.your_user_s_profile' }}</option>
|
2015-05-05 03:10:25 +02:00
|
|
|
</select>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="exponent exponent-select help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.group_id.$dirty && signupForm.group_id.$error.required" translate>{{ 'app.public.common.user_s_profile_is_required' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-18 19:44:30 +01:00
|
|
|
<div class="alert alert-warning" ng-show="hasProofOfIdentityTypes(user.group_id)">
|
|
|
|
<p class="text-sm">
|
|
|
|
<i class="fa fa-warning"></i>
|
2022-06-22 14:18:33 +02:00
|
|
|
<span translate translate-values="{GROUP: groupName(user.group_id)}">{{ 'app.public.common.user_supporting_documents_required' }}</span>
|
2022-03-18 19:44:30 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.birthday.$dirty && signupForm.birthday.$invalid}">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar-o"></i> </span>
|
|
|
|
<input type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="birthday"
|
2019-06-04 13:33:00 +02:00
|
|
|
ng-model="user.statistic_profile_attributes.birthday"
|
2016-03-23 18:39:41 +01:00
|
|
|
uib-datepicker-popup="{{datePicker.format}}"
|
2015-05-05 03:10:25 +02:00
|
|
|
datepicker-options="datePicker.options"
|
|
|
|
is-open="datePicker.opened"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.birth_date' | translate }}"
|
2015-05-05 03:10:25 +02:00
|
|
|
ng-click="openDatePicker($event)"
|
|
|
|
required/>
|
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="exponent help-cursor" title="{{ 'app.public.common.used_for_statistics' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
|
|
|
<span class="help-block" ng-show="signupForm.birthday.$dirty && signupForm.birthday.$error.required" translate>{{ 'app.public.common.birth_date_is_required' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-03-26 17:20:10 +01:00
|
|
|
<div class="form-group required-row" ng-class="{'has-error': signupForm.phone.$dirty && signupForm.phone.$invalid}">
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-phone"></i> </span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input ng-model="user.profile_attributes.phone"
|
|
|
|
type="text"
|
|
|
|
name="phone"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.phone_number' | translate }}"
|
2019-11-19 11:44:32 +01:00
|
|
|
ng-required="phoneRequired">
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span ng-show="phoneRequired" class="exponent help-cursor" title="{{ 'app.public.common.used_for_reservation' | translate }}">
|
2019-11-19 11:44:32 +01:00
|
|
|
<i class="fa fa-asterisk" aria-hidden="true"></i>
|
|
|
|
</span>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="signupForm.phone.$dirty && signupForm.phone.$error.required" translate>{{ 'app.public.common.phone_number_is_required' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-03-23 11:49:05 +01:00
|
|
|
<div class="form-group required-row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-map-marker"></i> </span>
|
|
|
|
<input type="text"
|
|
|
|
name="address"
|
|
|
|
ng-model="user.invoicing_profile_attributes.address_attributes.address"
|
|
|
|
class="form-control"
|
|
|
|
placeholder="{{ 'app.public.common.address' | translate }}"
|
|
|
|
ng-required="addressRequired"/>
|
|
|
|
</div>
|
|
|
|
<span ng-show="addressRequired" class="exponent help-cursor" title="{{ 'app.public.common.used_for_invoicing' | translate }}">
|
|
|
|
<i class="fa fa-asterisk" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
<span class="help-block" ng-show="signupForm.address.$dirty && signupForm.address.$error.required" translate>{{ 'app.public.common.address_is_required' }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="form-group" ng-class="{'has-error': signupForm.is_allow_contact.$dirty && signupForm.is_allow_contact.$invalid}">
|
2016-08-02 12:27:45 +02:00
|
|
|
<div class="col-sm-12 checkbox-group">
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="checkbox"
|
|
|
|
name="is_allow_contact"
|
2016-08-02 12:27:45 +02:00
|
|
|
id="is_allow_contact"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-model="user.is_allow_contact"
|
|
|
|
value="true"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<label for="is_allow_contact" class="help-cursor" title="{{ 'app.public.common.public_profile' | translate }}" translate>{{ 'app.public.common.i_authorize_Fablab_users_registered_on_the_site_to_contact_me' }}</label>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-07-28 12:20:51 +02:00
|
|
|
<div class="form-group" ng-class="{'has-error': signupForm.is_allow_newsletter.$dirty && signupForm.is_allow_newsletter.$invalid}">
|
2016-08-02 12:27:45 +02:00
|
|
|
<div class="col-sm-12 checkbox-group">
|
2016-07-28 12:20:51 +02:00
|
|
|
<input type="checkbox"
|
|
|
|
name="is_allow_newsletter"
|
2016-08-02 12:27:45 +02:00
|
|
|
id="is_allow_newsletter"
|
2016-07-28 12:20:51 +02:00
|
|
|
ng-model="user.is_allow_newsletter"
|
|
|
|
value="true"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<label for="is_allow_newsletter" translate>{{ 'app.public.common.i_accept_to_receive_information_from_the_fablab' }}</label>
|
2016-07-28 12:20:51 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="form-group" ng-class="{'has-error': signupForm.cgu.$dirty && signupForm.cgu.$invalid}" ng-show="cgu">
|
2016-08-02 12:27:45 +02:00
|
|
|
<div class="col-sm-12 checkbox-group">
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="checkbox"
|
|
|
|
name="cgu"
|
2016-08-02 12:27:45 +02:00
|
|
|
id="cgu"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-model="user.cgu"
|
|
|
|
value="true"
|
|
|
|
ng-required="cgu != null"/>
|
2019-03-26 17:20:10 +01:00
|
|
|
<label for="cgu">
|
2019-12-18 13:04:38 +01:00
|
|
|
<span translate>{{ 'app.public.common.i_ve_read_and_i_accept_' }}</span>
|
|
|
|
<a href="{{cgu.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'app.public.common._the_fablab_policy' }}</a>
|
2019-03-26 17:20:10 +01:00
|
|
|
<span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span></label>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-23 17:46:46 +02:00
|
|
|
<div vc-recaptcha
|
|
|
|
key="recaptchaSiteKey"
|
|
|
|
class="flex-center"
|
|
|
|
ng-model="user.recaptcha"
|
|
|
|
ng-if="recaptchaSiteKey">
|
|
|
|
</div>
|
2019-03-26 17:20:10 +01:00
|
|
|
<span class="info-required">
|
|
|
|
<span class="exponent"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span translate>{{ 'app.public.common.field_required' }}</span>
|
2019-03-26 17:20:10 +01:00
|
|
|
</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<div ng-if="!cgu">
|
|
|
|
<input type="hidden" name="cgu" ng-model="user.cgu" value="true">
|
|
|
|
</div>
|
2015-05-05 03:10:25 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer no-padder">
|
2019-12-18 13:04:38 +01:00
|
|
|
<button class="btn btn-valid btn-warning btn-block p-l btn-lg text-u-c r-b" ng-click="ok()" ng-disabled="signupForm.$invalid" translate>{{ 'app.shared.buttons.confirm' }}</button>
|
2019-03-26 17:20:10 +01:00
|
|
|
</div>
|