mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
136 lines
8.3 KiB
HTML
136 lines
8.3 KiB
HTML
<div class="panel panel-default m-t-lg">
|
|
<div class="panel-heading">
|
|
<span class="font-sbold" translate>{{ 'app.admin.settings.reservations_parameters' }}</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div>
|
|
<div class="row">
|
|
<h3 class="m-l" translate>{{ 'app.admin.settings.confine_the_booking_agenda' }}</h3>
|
|
<div class="col-md-2">
|
|
<h4 translate>{{ 'app.admin.settings.opening_time' }}</h4>
|
|
<uib-timepicker ng-model="windowStart.value" hour-step="timepicker.hstep" minute-step="timepicker.mstep" show-meridian="false"></uib-timepicker>
|
|
</div>
|
|
<div class="col-md-4 m-t">
|
|
<button name="button" class="btn btn-warning m-l" ng-click="save(windowStart)" translate>{{ 'app.shared.buttons.save' }}</button>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<h4 translate>{{ 'app.admin.settings.closing_time' }}</h4>
|
|
<uib-timepicker ng-model="windowEnd.value" hour-step="timepicker.hstep" minute-step="timepicker.mstep" show-meridian="false"></uib-timepicker>
|
|
</div>
|
|
<div class="col-md-4 m-t">
|
|
<button name="button" class="btn btn-warning m-l" ng-click="save(windowEnd)" translate>{{ 'app.shared.buttons.save' }}</button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<h3 class="m-l m-t-lg" translate>{{ 'app.admin.settings.max_visibility' }}</h3>
|
|
<form class="col-md-4" name="visibilityYearlyForm">
|
|
<label for="yearlySubscribers" class="control-label m-r" translate>{{ 'app.admin.settings.visibility_for_yearly_members' }}</label>
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">
|
|
<i class="fa fa-calendar"></i>
|
|
</div>
|
|
<input type="number" class="form-control" id="yearlySubscribers" ng-model="visibilityYearly.value" min="1" required>
|
|
</div>
|
|
</div>
|
|
<button name="button" class="btn btn-warning" ng-click="save(visibilityYearly)" ng-disabled="visibilityYearlyForm.$invalid" translate>{{ 'app.shared.buttons.save' }}</button>
|
|
</form>
|
|
<form class="col-md-4 col-md-offset-2" name="visibilityOthersForm">
|
|
<label for="others" class="control-label m-r" translate>{{ 'app.admin.settings.visibility_for_other_members' }}</label>
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">
|
|
<i class="fa fa-calendar"></i>
|
|
</div>
|
|
<input type="number" class="form-control" id="others" ng-model="visibilityOthers.value" min="1" required>
|
|
</div>
|
|
</div>
|
|
<button name="button" class="btn btn-warning" ng-click="save(visibilityOthers)" ng-disabled="visibilityOthersForm.$invalid" translate>{{ 'app.shared.buttons.save' }}</button>
|
|
</form>
|
|
</div>
|
|
<div class="row">
|
|
<h3 class="m-l m-t-lg" translate>{{ 'app.admin.settings.ability_for_the_users_to_move_their_reservations' }}</h3>
|
|
<boolean-setting name="booking_move_enable" settings="allSettings" label="app.admin.settings.reservations_shifting" classes="m-l"></boolean-setting>
|
|
</div>
|
|
<div class="row" ng-show="enableMove.value">
|
|
<form class="col-md-4" name="moveDelayForm">
|
|
<label for="moveDelay" class="control-label m-r" translate>{{ 'app.admin.settings.prior_period_hours' }}</label>
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">
|
|
<i class="fa fa-clock-o"></i>
|
|
</div>
|
|
<input type="number" class="form-control" id="moveDelay" ng-model="moveDelay.value" min="0" ng-required="enableMove.value">
|
|
</div>
|
|
</div>
|
|
<button name="button" class="btn btn-warning" ng-click="save(moveDelay)" ng-disabled="moveDelayForm.$invalid" translate>{{ 'app.shared.buttons.save' }}</button>
|
|
</form>
|
|
</div>
|
|
<div class="row">
|
|
<h3 class="m-l m-t-lg" translate>{{ 'app.admin.settings.ability_for_the_users_to_cancel_their_reservations' }}</h3>
|
|
<boolean-setting name="booking_cancel_enable" settings="allSettings" label="app.admin.settings.reservations_cancelling" classes="m-l"></boolean-setting>
|
|
</div>
|
|
<div class="row" ng-show="enableCancel.value">
|
|
<form class="col-md-4" name="cancelDelayForm">
|
|
<label for="cancelDelay" class="control-label m-r" translate>{{ 'app.admin.settings.prior_period_hours' }}</label>
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">
|
|
<i class="fa fa-clock-o"></i>
|
|
</div>
|
|
<input type="number" class="form-control" id="cancelDelay" ng-model="cancelDelay.value" min="0" ng-required="enableCancel.value">
|
|
</div>
|
|
</div>
|
|
<button name="button" class="btn btn-warning" ng-click="save(cancelDelay)" ng-disabled="cancelDelayForm.$invalid" translate>{{ 'app.shared.buttons.save' }}</button>
|
|
</form>
|
|
</div>
|
|
<div class="row">
|
|
<h3 class="m-l m-t-lg" translate>{{ 'app.admin.settings.book_overlapping_slots_info' }}</h3>
|
|
<boolean-setting name="book_overlapping_slots" settings="allSettings" label="app.admin.settings.allow_booking" classes="m-l"></boolean-setting>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default m-t-lg">
|
|
<div class="panel-heading">
|
|
<span class="font-sbold" translate>{{ 'app.admin.settings.reservations_reminders' }}</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<h3 class="m-l" translate>{{ 'app.admin.settings.notification_sending_before_the_reservation_occurs' }}</h3>
|
|
<boolean-setting name="reminder_enable" settings="allSettings" label="app.admin.settings.reservations_reminders" classes="m-l"></boolean-setting>
|
|
</div>
|
|
<div class="row" ng-show="enableReminder.value">
|
|
<form class="col-md-4" name="reminderDelayForm">
|
|
<label for="reminderDelay" class="control-label m-r" translate>{{ 'app.admin.settings.prior_period_hours' }}</label>
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">
|
|
<i class="fa fa-clock-o"></i>
|
|
</div>
|
|
<input type="number" class="form-control" id="reminderDelay" ng-model="reminderDelay.value" min="0">
|
|
</div>
|
|
<span class="help-block text-info text-xs">
|
|
<i class="fa fa-lightbulb-o"></i> {{ 'app.admin.settings.default_value_is_24_hours' | translate }}
|
|
</span>
|
|
</div>
|
|
<button name="button" class="btn btn-warning" ng-click="save(reminderDelay)" ng-disabled="reminderDelayForm.$invalid" translate>{{ 'app.shared.buttons.save' }}</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="panel panel-default m-t-lg">
|
|
<div class="panel-heading">
|
|
<span class="font-sbold" translate>{{ 'app.admin.settings.confidentiality' }}</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<h3 class="m-l" translate>{{ 'app.admin.settings.display_machine_reservation_user_name' }}</h3>
|
|
<boolean-setting name="display_name_enable" settings="allSettings" label="app.admin.settings.display_name" classes="m-l"></boolean-setting>
|
|
</div>
|
|
</div>
|
|
</div>
|