-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreer.html
36 lines (35 loc) · 1.37 KB
/
creer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template name="page_creer">
<h1 id="creer">Création du tournoi</h1>
{{#autoForm collection="Tournois" id="creationTournoi" type="insert"}}
<fieldset>
<legend id="options">Choisis les options</legend>
{{> afQuickField name='name' autofocus=""}}
{{> afQuickField name='typeTournoi'}}
<!-- Championship tournament -->
{{#if afFieldValueIs name='typeTournoi' value='CHP'}}
{{> afQuickField name='optionChmpt'}}
{{/if}}
<!-- Direct elimination tournament -->
{{#if afFieldValueIs name='typeTournoi' value='ELD'}}
{{> afQuickField name='optionElDir'}}
<!-- Playoff serie field-->
{{#if afFieldValueIs name='optionElDir' value='Serie'}}
{{> afQuickField name='optionSerie'}}
{{/if}}
{{/if}}
<!-- Championship and playoff tournament -->
{{#if afFieldValueIs name='typeTournoi' value='CHE'}}
{{> afQuickField name='optionChmpt'}}
{{> afQuickField name='optionElDir'}}
<!-- Playoff serie field-->
{{#if afFieldValueIs name='optionElDir' value='Serie'}}
{{> afQuickField name='optionSerie'}}
{{/if}}
{{/if}}
{{> afQuickField name='joueurs'}}
</fieldset>
<!-- <h4>Résumé</h4>
<p>Mode de tournoi : .</p> -->
<button type="submit" class="btn btn-primary">Créer</button>
{{/autoForm}}
</template>