mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
36 lines
2.5 KiB
HTML
36 lines
2.5 KiB
HTML
<div class="modal-header">
|
|
<h3 class="modal-title" translate>{{ 'new_partner' }}</h3>
|
|
</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}">
|
|
<label for="partner[first_name]" translate>{{ 'first_name' }}</label>
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
|
<input type="text" class="form-control" required="required" ng-model="partner.first_name" id="partner[first_name]" name="partner[first_name]" />
|
|
</div>
|
|
<span class="help-block" ng-show="partnerForm['partner[first_name]'].$dirty && partnerForm['partner[first_name]'].$error.required" translate>{{ 'first_name_is_required' }}</span>
|
|
</div>
|
|
<div class="form-group" ng-class="{'has-error': partnerForm['partner[last_name]'].$dirty && partnerForm['partner[last_name]'].$invalid}">
|
|
<label for="partner[last_name]" translate>{{ 'surname' }}</label>
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
|
<input type="text" class="form-control" required="required" ng-model="partner.last_name" id="partner[last_name]" name="partner[last_name]" />
|
|
</div>
|
|
<span class="help-block" ng-show="partnerForm['partner[last_name]'].$dirty && partnerForm['partner[last_name]'].$error.required" translate>{{ 'surname_is_required' }}</span>
|
|
</div>
|
|
<div class="form-group" ng-class="{'has-error': partnerForm['partner[email]'].$dirty && partnerForm['partner[email]'].$invalid}">
|
|
<label for="partner[email]" translate>{{ 'email_address' }}</label>
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
|
<input type="email" class="form-control" required="required" ng-model="partner.email" id="partner[email]" name="partner[email]" />
|
|
</div>
|
|
<span class="help-block" ng-show="partnerForm['partner[email]'].$dirty && partnerForm['partner[email]'].$error.required" translate>{{ 'email_address_is_required' }}</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn btn-primary" ng-click="ok()" ng-disabled="!partnerForm.$valid" translate>{{ 'confirm' }}</button>
|
|
<button class="btn btn-warning" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
|
</div>
|