mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
ask for user agreement to CGV on signup
This commit is contained in:
parent
0897fe1e63
commit
2bf5a60ab5
@ -85,6 +85,10 @@ Application.Controllers.controller 'ApplicationController', ["$rootScope", "$sco
|
||||
CustomAsset.get {name: 'cgu-file'}, (cgu) ->
|
||||
$scope.cgu = cgu.custom_asset
|
||||
|
||||
# retrieve the CGV
|
||||
CustomAsset.get {name: 'cgv-file'}, (cgv) ->
|
||||
$scope.cgv = cgv.custom_asset
|
||||
|
||||
# default user's parameters
|
||||
$scope.user =
|
||||
is_allow_contact: true
|
||||
|
@ -179,9 +179,23 @@
|
||||
<a href="{{cgu.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ '_the_fablab_policy' }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" ng-class="{'has-error': signupForm.cgv.$dirty && signupForm.cgv.$invalid}" ng-show="cgv">
|
||||
<div class="col-sm-12">
|
||||
<input type="checkbox"
|
||||
name="cgv"
|
||||
ng-model="user.cgv"
|
||||
value="true"
|
||||
ng-required="cgv != null"/>
|
||||
<span translate>{{ 'i_ve_read_and_i_accept_' }}</span>
|
||||
<a href="{{cgv.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ '_the_general_terms_and_conditions' }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-if="!cgu">
|
||||
<input type="hidden" name="cgu" ng-model="user.cgu" value="true">
|
||||
</div>
|
||||
<div ng-if="!cgv">
|
||||
<input type="hidden" name="cgv" ng-model="user.cgv" value="true">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -79,6 +79,7 @@ en:
|
||||
from_time: "From" # context: time. eg. "from 18:00 to 21:00"
|
||||
to_date: "to" # context: date. eg: "from 01/01 to 01/05"
|
||||
to_time: "to" # context: time. eg. "from 18:00 to 21:00"
|
||||
_the_general_terms_and_conditions: "the general terms and conditions."
|
||||
|
||||
messages:
|
||||
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "You will lose any unsaved modification if you quit this page"
|
||||
@ -142,7 +143,6 @@ en:
|
||||
stripe:
|
||||
# stripe payment modal
|
||||
i_have_read_and_accept_: "I have read, and accept"
|
||||
_the_general_terms_and_conditions: "the general terms and conditions."
|
||||
enter_your_card_number: "Enter your card number"
|
||||
confirm_my_payment_of_: "Confirm my payment of" # context: confirm my payment of $20.00
|
||||
|
||||
|
@ -79,6 +79,7 @@ fr:
|
||||
from_time: "De" # context: time. eg. "from 18:00 to 21:00"
|
||||
to_date: "au" # context: date. eg: "from 01/01 to 01/05"
|
||||
to_time: "à" # context: time. eg. "from 18:00 to 21:00"
|
||||
_the_general_terms_and_conditions: "les conditions générales de vente."
|
||||
|
||||
messages:
|
||||
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Vous perdrez les modifications non enregistrées si vous quittez cette page"
|
||||
@ -142,7 +143,6 @@ fr:
|
||||
stripe:
|
||||
# fenêtre de paiement stripe
|
||||
i_have_read_and_accept_: "J'ai bien pris connaissance, et accepte"
|
||||
_the_general_terms_and_conditions: "les conditions générales de vente."
|
||||
enter_your_card_number: "Saisissez votre numéro de carte"
|
||||
confirm_my_payment_of_: "Valider mon paiement de" # contexte : valider mon paiement de 20,00 €
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user