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.admin.members_edit.expiration_date' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body m-lg">
|
|
|
|
<div class="alert alert-danger">
|
2019-09-12 11:37:03 +02:00
|
|
|
<div ng-hide="free">
|
2021-10-08 19:14:47 +02:00
|
|
|
<p translate>{{ 'app.admin.members_edit.renew_subscription_info' }}</p>
|
2019-12-18 13:04:38 +01:00
|
|
|
<p translate>{{ 'app.admin.members_edit.credits_will_be_reset' }}</p>
|
2019-09-12 11:37:03 +02:00
|
|
|
</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<form role="form" name="subscriptionForm" novalidate>
|
|
|
|
<div class="form-group">
|
2021-10-08 19:14:47 +02:00
|
|
|
<label translate>{{ 'app.admin.members_edit.current_expiration_date' }}</label>
|
|
|
|
<span class="form-control">{{expire_at | amDateFormat:'L LT'}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group" ng-hide="free">
|
|
|
|
<label translate>{{ 'app.admin.members_edit.new_subscription_start' }}</label>
|
|
|
|
<span class="form-control">{{expire_at | amDateFormat:'L LT'}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="subscription[expired_at]" translate>{{ 'app.admin.members_edit.new_expiration_date' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="subscription[expired_at]"
|
2021-10-08 19:14:47 +02:00
|
|
|
id="subscription[expired_at]"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-model="new_expired_at"
|
|
|
|
uib-datepicker-popup="{{datePicker.format}}"
|
|
|
|
datepicker-options="datePicker.options"
|
|
|
|
is-open="datePicker.opened"
|
|
|
|
ng-click="openDatePicker($event)"
|
|
|
|
min-date="datePicker.minDate"
|
2021-10-08 19:14:47 +02:00
|
|
|
ng-readonly="!free"
|
|
|
|
ng-disabled="!free"
|
2016-03-23 18:39:41 +01:00
|
|
|
required/>
|
|
|
|
</div>
|
2021-10-08 19:14:47 +02:00
|
|
|
<div class="alert alert-info" ng-show="!free">
|
|
|
|
<p ng-show="payment_details.payment_schedule && payment_details.card" translate>{{ 'app.admin.members_edit.payment_schedule_card' }}</p>
|
|
|
|
<p ng-show="payment_details.payment_schedule && !payment_details.card" translate>{{ 'app.admin.members_edit.payment_schedule_check' }}</p>
|
|
|
|
<p ng-show="!payment_details.payment_schedule && payment_details.card" translate>{{ 'app.admin.members_edit.one_payment_card' }}</p>
|
|
|
|
<p ng-show="!payment_details.payment_schedule && !payment_details.card" translate>{{ 'app.admin.members_edit.one_payment_check' }}</p>
|
|
|
|
</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2019-12-18 13:04:38 +01:00
|
|
|
<button class="btn btn-warning" ng-click="ok()" ng-disabled="subscriptionForm.$invalid" translate>{{ 'app.shared.buttons.confirm' }}</button>
|
|
|
|
<button class="btn btn-primary" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|