2016-03-23 18:39:41 +01:00
|
|
|
<div class="modal-header">
|
2019-12-18 13:04:38 +01:00
|
|
|
<h3 class="modal-title" translate>{{ 'app.shared.plan.new_partner' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body m-lg">
|
|
|
|
<form name="partnerForm">
|
|
|
|
<div class="form-group" ng-class="{'has-error': partnerForm['partner[first_name]'].$dirty && partnerForm['partner[first_name]'].$invalid}">
|
2019-12-18 13:04:38 +01:00
|
|
|
<label for="partner[first_name]" translate>{{ 'app.shared.plan.first_name' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
2021-03-24 18:24:03 +01:00
|
|
|
<input type="text" class="form-control" required="true" ng-model="partner.first_name" id="partner[first_name]" name="partner[first_name]" />
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="partnerForm['partner[first_name]'].$dirty && partnerForm['partner[first_name]'].$error.required" translate>{{ 'app.shared.plan.first_name_is_required' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group" ng-class="{'has-error': partnerForm['partner[last_name]'].$dirty && partnerForm['partner[last_name]'].$invalid}">
|
2019-12-18 13:04:38 +01:00
|
|
|
<label for="partner[last_name]" translate>{{ 'app.shared.plan.surname' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
2021-03-24 18:24:03 +01:00
|
|
|
<input type="text" class="form-control" required="true" ng-model="partner.last_name" id="partner[last_name]" name="partner[last_name]" />
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="partnerForm['partner[last_name]'].$dirty && partnerForm['partner[last_name]'].$error.required" translate>{{ 'app.shared.plan.surname_is_required' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group" ng-class="{'has-error': partnerForm['partner[email]'].$dirty && partnerForm['partner[email]'].$invalid}">
|
2019-12-18 13:04:38 +01:00
|
|
|
<label for="partner[email]" translate>{{ 'app.shared.plan.email_address' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
2021-03-24 18:24:03 +01:00
|
|
|
<input type="email" class="form-control" required="true" ng-model="partner.email" id="partner[email]" name="partner[email]" />
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="partnerForm['partner[email]'].$dirty && partnerForm['partner[email]'].$error.required" translate>{{ 'app.shared.plan.email_address_is_required' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2023-11-27 16:21:07 +01:00
|
|
|
<button class="fab-button is-secondary" ng-click="ok()" ng-disabled="!partnerForm.$valid" translate>{{ 'app.shared.buttons.confirm' }}</button>
|
|
|
|
<button class="fab-button" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|