1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-06 01:08:21 +01:00

Display a message when no plans are available

This commit is contained in:
Sylvain 2020-10-28 09:53:11 +01:00
parent bf76157703
commit 84fc81e618
4 changed files with 48 additions and 41 deletions

View File

@ -5,6 +5,7 @@
- Enlarged privacy policy display and edition zones
- Removed fab-manager email address from the seeds
- Initialize new plans with default prices for machines & spaces
- Display a message when no plans are available
- Fix a bug: in the settings area, boolean switches are always shown as false
- Fix a bug: public cards presenting the plans in the public area, have bogus style

View File

@ -17,8 +17,9 @@
<div class="row no-gutter">
<div class="col-sm-12 col-md-9 b-r">
<div class="row m-t m-b padder" ng-repeat="plansGroup in plansClassifiedByGroup | groupFilter:ctrl.member" ng-show="plansGroup.actives > 0">
<div class="row m-t m-b padder" ng-repeat="plansGroup in plansClassifiedByGroup | groupFilter:ctrl.member">
<div ng-show="plansGroup.actives > 0">
<div class="col-md-12 text-center">
<h2 class="text-u-c">{{plansGroup.name}}</h2>
</div>
@ -62,7 +63,6 @@
<br ng-show="!plan.plan_file_url"> <!-- TODO Refacto with CSS -->
<a ng-href="{{ plan.plan_file_url }}" ng-show="plan.plan_file_url" target="_blank" translate>{{ 'app.public.plans.more_information' }}</a>
</div>
</div>
@ -73,6 +73,10 @@
</div>
</div>
</div>
<div ng-show="plansGroup.actives === 0 && ctrl.member" class="m-lg" translate>
{{ 'app.public.plans.no_plans' }}
</div>
</div>

View File

@ -240,6 +240,7 @@ en:
i_already_subscribed: "I already subscribed"
more_information: "More information"
your_subscription_expires_on_the_DATE: "Your subscription expires on the {DATE}"
no_plans: "No plans are available for your group"
my_group: "My group"
his_group: "{GENDER, select, male{His} female{Her} other{Its}} group"
he_wants_to_change_group: "{ROLE, select, member{I want} other{The user wants}} to change group"

View File

@ -240,6 +240,7 @@ fr:
i_already_subscribed: "Je suis déjà abonné"
more_information: "Plus d'infos"
your_subscription_expires_on_the_DATE: "Votre abonnement expire au {DATE}"
no_plans: "Aucun abonnement n'est disponible pour votre groupe"
my_group: "Mon groupe"
his_group: "Son groupe"
he_wants_to_change_group: "{ROLE, select, member{Je veux} other{L'utilisateur veut}} changer de groupe"