dashboard: parametrize URL in welcome team

This commit is contained in:
nemunaire 2019-11-25 14:28:21 +01:00
parent 1db035e050
commit 14f5cf29b7
3 changed files with 10 additions and 2 deletions

View File

@ -704,7 +704,7 @@ angular.module("FICApp")
$scope.display.scenes = [
{
type: "welcome",
params: { kind: "teams" },
params: { kind: "teams", url: "https://fic.srs.epita.fr/" },
},
{
type: "welcome",

View File

@ -181,6 +181,14 @@
</div>
</div>
<div class="form-group row" ng-if="scene.type == 'welcome' && scene.params.kind == 'teams'">
<label for="wturl" class="col-sm-2 col-form-label col-form-label-sm">URL</label>
<div class="col-sm-10">
<input type="text" id="wturl" ng-model="scene.params.url" class="form-control form-control-sm">
</div>
</div>
<div class="form-group row" ng-if="scene.type == 'welcome'">
<div class="col-sm-2"></div>
<div class="col-sm-10">

View File

@ -36,7 +36,7 @@
<p class="lead text-justify">
Une fois connecté au réseau, contactez notre serveur sur&nbsp;:
<span style="display: block; font-size: 200%; text-indent: 0;" class="text-center">
<a style="font-family: mono" href="https://fic.srs.epita.fr/"><span class="text-info">https://fic.srs.epita.fr/</span></a>
<a style="font-family: mono" href="{{s.params.url}}" class="text-info" ng-bind="s.params.url"></span></a>
</span>
</p>
</div>