Allow teams to change their name
This commit is contained in:
parent
f050dfce06
commit
136b436af5
7 changed files with 126 additions and 13 deletions
37
frontend/static/views/team-edit.html
Normal file
37
frontend/static/views/team-edit.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Votre équipe est composée de :</div>
|
||||
<div class="panel-body" ng-show="!my.members.length">
|
||||
Passez voir l'équipe serveur pour compléter ces informations.
|
||||
</div>
|
||||
<ul class="list-group" ng-show="my.members.length">
|
||||
<li class="list-group-item" ng-repeat="member in my.members">
|
||||
{{ member.firstname | capitalize }}
|
||||
<span style="font-style: italic" ng-show="{{ member.nickname }}">{{ member.nickname }}</span>
|
||||
<span style="font-variant: small-caps;">{{ member.lastname | capitalize }}</span>
|
||||
<span ng-show="member.company">- {{ member.company}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">Changer de nom d'équipe</div>
|
||||
<div class="panel-body">
|
||||
<p ng-class="messageClass" ng-show="message || sberr"><strong ng-show="!sberr">Votre demande a bien été envoyée !</strong><strong ng-show="sberr">{{ sberr }}</strong> {{ message }}</p>
|
||||
<form class="form-horizontal" ng-submit="tsubmit()">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="newName" class="col-sm-2 control-label">Nouveau nom</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="newName" ng-model="newName" placeholder="{{ my.name }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<div class="col-sm-offset-3">
|
||||
<button class="btn btn-info">Valider</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
Reference in a new issue