2016-08-24 16:21:43 +02:00
|
|
|
<div class="modal-header">
|
|
|
|
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
|
2019-12-17 18:06:56 +01:00
|
|
|
<h1 translate>{{ 'app.admin.events.price_category' }}</h1>
|
2016-08-24 16:21:43 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form role="form" name="priceCategoryForm" class="form-horizontal" novalidate autocomplete="off" ng-keydown="priceCategoryForm.$valid && $event.which == 13 && ok()">
|
|
|
|
<div class="form-group" ng-class="{'has-error': priceCategoryForm.name.$dirty && priceCategoryForm.name.$invalid}">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-tag"></i></span>
|
|
|
|
<input type="text"
|
|
|
|
name="name"
|
|
|
|
ng-model="category.name"
|
|
|
|
class="form-control"
|
2019-12-17 18:06:56 +01:00
|
|
|
placeholder="{{ 'app.admin.events.category_name' | translate }}"
|
2016-08-24 16:21:43 +02:00
|
|
|
required />
|
|
|
|
</div>
|
2019-12-17 18:06:56 +01:00
|
|
|
<span class="help-block" ng-show="priceCategoryForm.name.$dirty && priceCategoryForm.name.$error.required" translate>{{ 'app.admin.events.category_name_is_required' }}</span>
|
2016-08-24 16:21:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': priceCategoryForm.conditions.$dirty && priceCategoryForm.conditions.$invalid}">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<textarea ng-model="category.conditions"
|
|
|
|
rows="10"
|
|
|
|
class="form-control"
|
|
|
|
id="conditions"
|
2019-12-17 18:06:56 +01:00
|
|
|
placeholder="{{ 'app.admin.events.enter_here_the_conditions_under_which_this_price_is_applicable' | translate }}"
|
2016-08-24 16:21:43 +02:00
|
|
|
name="conditions"
|
|
|
|
required>
|
|
|
|
</textarea>
|
2019-12-17 18:06:56 +01:00
|
|
|
<span class="help-block" ng-show="priceCategoryForm.conditions.$dirty && priceCategoryForm.conditions.$error.required" translate>{{ 'app.admin.events.conditions_are_required' }}</span>
|
2016-08-24 16:21:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2019-12-17 18:06:56 +01:00
|
|
|
<button class="btn btn-info" ng-click="ok()" ng-disabled="priceCategoryForm.$invalid" translate>{{ 'app.shared.buttons.confirm' }}</button>
|
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
2016-08-24 16:21:43 +02:00
|
|
|
</div>
|