frontend: use settings to display change name form or not and registration

This commit is contained in:
nemunaire 2018-12-01 15:49:03 +01:00
parent 5f660702eb
commit 07cea2e04a
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@
</a>
</h4>
</span>
<span class="navbar-text text-light" ng-show="!my.team_id && time.remaining === undefined" ng-cloak>
<span class="navbar-text text-light" ng-show="!my.team_id && settings.allowRegistration" ng-cloak>
<a ng-href="/register" class="badge badge-warning" role="button">
Inscription
</a>

View File

@ -13,7 +13,7 @@
</ul>
</div>
<div class="card border-info mt-3">
<div class="card border-info mt-3" ng-if="!settings.denyNameChange">
<div class="card-header bg-info text-light">Changer de nom d'équipe</div>
<div class="card-body">
<p ng-class="messageClass" ng-if="message || sberr"><strong ng-if="!sberr">Votre demande a bien été envoyée !</strong><strong ng-if="sberr">{{ sberr }}</strong> {{ message }}</p>