mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
Ability to display optional information message on event reservation page
This commit is contained in:
parent
c10298359f
commit
10fc7b69e9
@ -3,6 +3,7 @@
|
||||
## next release
|
||||
- Ability to create coupons with cash amounts (previously only percentages were allowed)
|
||||
- Improved error messages when something wrong append when paying a machine reservation by stripe
|
||||
- Ability to display optional information message on event reservation page
|
||||
- Fix a bug: misconfigured Twitter's ENV variables results in HTTP error 500
|
||||
- Fix a bug: wallet is not debited when paying locally with a user who have invoices disabled
|
||||
- Fix a bug: wrong error message about rounding inconsistency is logged on invoice generation
|
||||
|
@ -45,6 +45,7 @@ Application.Controllers.controller "SettingsController", ["$scope", 'Setting', '
|
||||
$scope.trainingExplicationsAlert = { name: 'training_explications_alert', value: settingsPromise.training_explications_alert }
|
||||
$scope.trainingInformationMessage = { name: 'training_information_message', value: settingsPromise.training_information_message}
|
||||
$scope.subscriptionExplicationsAlert = { name: 'subscription_explications_alert', value: settingsPromise.subscription_explications_alert }
|
||||
$scope.eventExplicationsAlert = {name: 'event_explications_alert', value: settingsPromise.event_explications_alert }
|
||||
$scope.windowStart = { name: 'booking_window_start', value: settingsPromise.booking_window_start }
|
||||
$scope.windowEnd = { name: 'booking_window_end', value: settingsPromise.booking_window_end }
|
||||
$scope.mainColorSetting = { name: 'main_color', value: settingsPromise.main_color }
|
||||
@ -73,7 +74,7 @@ Application.Controllers.controller "SettingsController", ["$scope", 'Setting', '
|
||||
$scope.cancelDelay =
|
||||
name: 'booking_cancel_delay'
|
||||
value: parseInt(settingsPromise.booking_cancel_delay)
|
||||
|
||||
|
||||
$scope.enableReminder =
|
||||
name: 'reminder_enable'
|
||||
value: (settingsPromise.reminder_enable == 'true')
|
||||
|
@ -173,6 +173,9 @@ Application.Controllers.controller "ShowEventController", ["$scope", "$state", "
|
||||
## Global config: delay in hours before a booking while changing the booking slot is forbidden
|
||||
$scope.moveBookingDelay = parseInt(settingsPromise.booking_move_delay)
|
||||
|
||||
## Message displayed to the end user about rules that applies to events reservations
|
||||
$scope.eventExplicationsAlert = settingsPromise.event_explications_alert
|
||||
|
||||
|
||||
|
||||
##
|
||||
|
@ -522,7 +522,7 @@ angular.module('application.router', ['ui.router']).
|
||||
PriceCategory.query().$promise
|
||||
]
|
||||
settingsPromise: ['Setting', (Setting)->
|
||||
Setting.query(names: "['booking_move_enable', 'booking_move_delay']").$promise
|
||||
Setting.query(names: "['booking_move_enable', 'booking_move_delay', 'event_explications_alert']").$promise
|
||||
]
|
||||
translations: [ 'Translations', (Translations) ->
|
||||
Translations.query(['app.public.events_show', 'app.shared.member_select', 'app.shared.stripe',
|
||||
@ -1037,6 +1037,7 @@ angular.module('application.router', ['ui.router']).
|
||||
'training_explications_alert',
|
||||
'training_information_message',
|
||||
'subscription_explications_alert',
|
||||
'event_explications_alert',
|
||||
'booking_window_start',
|
||||
'booking_window_end',
|
||||
'booking_move_enable',
|
||||
|
@ -56,6 +56,7 @@ p, .widget p {
|
||||
.block.hide{display: none;}
|
||||
.inline{display:inline-block !important;}
|
||||
.none{display: none;}
|
||||
.pull-left{float: left;}
|
||||
.pull-right-lg{float: right;}
|
||||
.pull-none{float: none;}
|
||||
.rounded{border-radius: 500px;}
|
||||
|
@ -77,6 +77,14 @@
|
||||
</div>
|
||||
<button name="button" class="btn btn-warning" ng-click="save(subscriptionExplicationsAlert)" translate>{{ 'save' }}</button>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4 translate>{{ 'message_of_the_events_page' }}</h4>
|
||||
<div ng-model="eventExplicationsAlert.value" medium-editor options='{"placeholder": "{{ "type_the_message_content" | translate }}",
|
||||
"buttons": ["bold", "italic", "unorderedlist", "header2" ]
|
||||
}'>
|
||||
</div>
|
||||
<button name="button" class="btn btn-warning" ng-click="save(eventExplicationsAlert)" translate>{{ 'save' }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -178,6 +178,13 @@
|
||||
|
||||
</section>
|
||||
|
||||
<uib-alert type="warning m" ng-if="eventExplicationsAlert.length > 0">
|
||||
<p class="text-sm pull-left">
|
||||
<i class="fa fa-warning"></i>
|
||||
<div class="m-l-lg" ng-bind-html="eventExplicationsAlert"></div>
|
||||
</p>
|
||||
</uib-alert>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -30,7 +30,8 @@ class Setting < ActiveRecord::Base
|
||||
fablab_name
|
||||
name_genre
|
||||
reminder_enable
|
||||
reminder_delay )
|
||||
reminder_delay
|
||||
event_explications_alert )
|
||||
}
|
||||
|
||||
after_update :update_stylesheet if :value_changed?
|
||||
|
@ -492,6 +492,7 @@ en:
|
||||
warning_message_of_the_training_booking_page: "Warning message of the training booking page:"
|
||||
information_message_of_the_training_reservation_page: "Information message of the training reservation page:"
|
||||
message_of_the_subscriptions_page: "Message of the subscriptions page:"
|
||||
message_of_the_events_page: "Message of the events page:"
|
||||
legal_documents: "Legal documents"
|
||||
if_these_documents_are_not_filled_no_consent_about_them_will_be_asked_to_the_user: "If these documents are not filled, no consent about them will be asked."
|
||||
general_terms_and_conditions_(T&C): "General terms and conditions (T&C)"
|
||||
|
@ -492,6 +492,7 @@ fr:
|
||||
warning_message_of_the_training_booking_page: "Message d'avertissement sur la page de réservation d'une formation :"
|
||||
information_message_of_the_training_reservation_page: "Message d'information sur la page de réservation d'une formation :"
|
||||
message_of_the_subscriptions_page: "Message sur la page des abonnements :"
|
||||
message_of_the_events_page: "Message sur la page des évènements :"
|
||||
legal_documents: "Documents légaux"
|
||||
if_these_documents_are_not_filled_no_consent_about_them_will_be_asked_to_the_user: "Si ces documents ne sont pas renseignés, aucun consentement à leur sujet ne sera demandé à l'utilisateur."
|
||||
general_terms_and_conditions_(T&C): "Conditions générales de vente (CGV)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user