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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue