Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

edit.html.twig 3.34 KB
Newer Older
arnaudbey's avatar
add app  
arnaudbey committed
1
2
3
4
5
{% extends '::base.html.twig' %}

{% block title %}EDIT ROUND{% endblock %}

{% block body -%}
Arnaud Bey's avatar
Arnaud Bey committed
6
7
8
9
10
11
12
13
14
15
16

<nav aria-label="breadcrumb">
  <ol class="breadcrumb" style="background-color: #fff;">
    <li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
    <li class="breadcrumb-item" aria-current="page"><a href="{{path('home_create')}}">Créer</a></li>
    <li class="breadcrumb-item" aria-current="page"><a href="{{path('my_massives_under_construction')}}">{{ 'my_massives_under_construction' | trans }}</a></li>
    <li class="breadcrumb-item" aria-current="page"><a href="{{ path('massive_builder', {"id": round.game.id}) }}">{{ round.game.name }}</a></li>
    <li class="breadcrumb-item active" aria-current="page">Edition manche</li>
  </ol>
</nav>

Arnaud Bey's avatar
Arnaud Bey committed
17
18
<div class="card">
    <div class="card-header">
Arnaud Bey's avatar
Arnaud Bey committed
19
20
21
22
23
24
          <strong>
              <span id="round-title">{{ round.title ? round.title }}</span>
          </strong>
          <span class="text-muted">
              <span id="round-description">{{ round.description ? round.description }}</span>
          </span>
Arnaud Bey's avatar
fix UI  
Arnaud Bey committed
25
          <span class="float-right">
Arnaud Bey's avatar
Arnaud Bey committed
26
27
              {% if round.discr == "conquer" %}
              <span onClick="editor.saveAll();" class="btn btn-sm btn-primary">
Arnaud Bey's avatar
Arnaud Bey committed
28
                  <i class="far fa-save" aria-hidden="true"></i>
Arnaud Bey's avatar
Arnaud Bey committed
29
30
31
32
33
34
35
36
                  {{"save_all"|trans}}
              </span>
              {% endif %}
              <a href="{{ path('massive_builder', {"id": round.game.id}) }}" class="btn btn-sm btn-outline-secondary">
                  <i class="fa fa-chevron-left" aria-hidden="true"></i>
                  {{ 'back_to_editor' | trans }}
              </a>
          </span>
arnaudbey's avatar
add app  
arnaudbey committed
37
    </div>
Arnaud Bey's avatar
Arnaud Bey committed
38
    <div class="card-body">
Arnaud Bey's avatar
Arnaud Bey committed
39
40
41
        <ul class="nav nav-tabs nav-fill nav-justified" role="tablist">
           <li class="nav-item"><a class="nav-link active" href="#grid-tab" aria-controls="grid-tab" role="tab" data-toggle="tab">Grille {{ round.discr == "conquer" ? "& objectifs" : ""}}</a></li>
           <li class="nav-item"><a class="nav-link" href="#misc" aria-controls="misc" role="tab" data-toggle="tab">{{ "properties" | trans }}</a></li>
arnaudbey's avatar
add app  
arnaudbey committed
42
43
         </ul>
         <div class="tab-content">
Arnaud Bey's avatar
Arnaud Bey committed
44
            <div role="tabpanel" class="tab-pane fade show active" id="grid-tab">
Arnaud Bey's avatar
Arnaud Bey committed
45
46
                <div class="card">
                    <div class="card-body">
arnaudbey's avatar
add app  
arnaudbey committed
47
48
49
50
51
52
53
54
55
56
                    {% if round.discr == "rush" %}
                        {% set rush = round %}
                        {% include "MagicWordBundle:Round/Rush:edit.html.twig" %}
                    {% else %}
                        {% set conquer = round %}
                        {% include "MagicWordBundle:Round/Conquer:edit.html.twig" %}
                    {% endif %}
                    </div>
                </div>
            </div>
Arnaud Bey's avatar
Arnaud Bey committed
57
            <div role="tabpanel" class="tab-pane fade" id="misc">
Arnaud Bey's avatar
Arnaud Bey committed
58
59
                <div class="card">
                    <div class="card-body">
arnaudbey's avatar
add app  
arnaudbey committed
60
61
62
63
64
65
66
67
68
69
70
71
72
73
                        <input id="roundId" type="hidden" name="roundId" value="{{ round.id }}"/>
                        {% include "MagicWordBundle:Round:misc.html.twig" %}
                    </div>
                </div>
            </div>
         </div>
    </div>
</div>
{% endblock %}

{% block javascripts -%}
<script type="text/javascript" src="{{ asset('js/edit_round.js') }}"></script>
<script type="text/javascript" src="{{ asset('js/round.js') }}"></script>
{% endblock %}