League Creation
This commit is contained in:
parent
96101cb05d
commit
7c9d5eef1e
11 changed files with 160 additions and 46 deletions
|
|
@ -13,7 +13,7 @@
|
|||
<div>
|
||||
|
||||
<div class="dropdown" id="dropdown1">
|
||||
<button id="btn_startround" onclick="toggleDropdown('dropdown_startround'); return false;" class="dropbtn">{{$startRound['name']}}</button>
|
||||
<button id="btn_startround" onclick="toggleDropdown('dropdown_startround'); return false;" class="dropbtn">{{$start_round_name}}</button>
|
||||
<div id="dropdown_startround" class="dropdown-content">
|
||||
@foreach($rounds as $round)
|
||||
<a onclick="setStartRound('{{$round->name}}',{{$round->id}});return false;" >{{ $round->name }}</a>
|
||||
|
|
@ -23,12 +23,12 @@
|
|||
|
||||
|
||||
<h3>Anzahl Runden:</h3>
|
||||
<input id="input_round_count"></input>
|
||||
<input id="input_round_count" value="{{$round_count}}"></input>
|
||||
|
||||
<h3>Liga-Modus</h3>
|
||||
|
||||
<div class="dropdown">
|
||||
<button id="btn_leaguemode" onclick="toggleDropdown('dropdown_leaguemode'); return false;" class="dropbtn">Modus einstellen</button>
|
||||
<button id="btn_leaguemode" onclick="toggleDropdown('dropdown_leaguemode'); return false;" class="dropbtn">{{$league_mode}}</button>
|
||||
<div id="dropdown_leaguemode" class="dropdown-content">
|
||||
<a onclick="selectLeagueMode('Qualifikation'); return false;" href="">Qualifikation</a>
|
||||
<a onclick="selectLeagueMode('Liga-Spiel'); return false;" href="">Liga-Spiel</a>
|
||||
|
|
@ -37,37 +37,32 @@
|
|||
|
||||
<p> </p>
|
||||
|
||||
|
||||
|
||||
<div >
|
||||
<button onclick="createLeague(); return false;" class="btn btn-primary">Liga neu erzeugen</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
global_start_round_id={!! $start_round_id !!};
|
||||
global_league_mode="{!! $league_mode !!}";
|
||||
|
||||
|
||||
|
||||
console.log(global_start_round_id);
|
||||
console.log(global_league_mode);
|
||||
|
||||
function createLeague() {
|
||||
console.log("create League");
|
||||
//alert($global_selected_round_id);
|
||||
|
||||
var round_count=document.getElementById("input_round_count").value;
|
||||
var lonk = '/league_settings/create_league?start_round_id='+global_start_round_id+"&round_count="+round_count+"&mode="+global_league_mode;
|
||||
//window.location=link;
|
||||
alert(lonk);
|
||||
console.log(lonk);
|
||||
|
||||
var link = '/league_settings/create_league/start_round_id='+global_start_round_id+"/round_count="+round_count+"/league_mode="+global_league_mode;
|
||||
//alert(link);
|
||||
window.location=link;
|
||||
}
|
||||
|
||||
function selectLeagueMode($modename) {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
<div class="lead">Aktiv: <strong>{{ $currentSeason->name }}</strong></div>
|
||||
@endif
|
||||
|
||||
<div><a href="/seasons/create" class="btn btn-primary">Neue Saison anlegen</a></div>
|
||||
|
||||
@if ($currentSeason)
|
||||
<div>
|
||||
<ul>
|
||||
|
|
@ -15,11 +17,10 @@
|
|||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@endif
|
||||
|
||||
<div><a href="/seasons/create" class="btn btn-primary">Neue Saison anlegen</a></div>
|
||||
|
||||
|
||||
@if ($currentSeason)
|
||||
<div>
|
||||
|
||||
|
|
@ -141,6 +142,11 @@
|
|||
</h4>
|
||||
|
||||
<h3>Liga:</h3>
|
||||
@if($currentSeason)
|
||||
<div>
|
||||
<a class="btn btn-primary" href="/league_settings/season={{$currentSeason->id}}">Liga bearbeiten</a>
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group" >
|
||||
<h4>
|
||||
<label style="float:left; width:200px;">Platz 1:</label>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<section class="jumbotron text-center container">
|
||||
<!-- <div class="container"> -->
|
||||
|
||||
<div class="lead col-md-8" >aktive Spieler: {{ $total_user_count }} , davon bezahlt: {{$active_user_count}}</div>
|
||||
<div class="lead col-md-8" >registrierte Spieler: {{ $total_user_count }} , davon bezahlt: {{$active_user_count}}</div>
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue