Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1cf1413d

Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)

Feature Re #8184 ajax form

Zobrazit rozdíly:

website/templates/heatmap.html.twig
24 24
      <div class="collapse navbar-collapse ml-auto" id="navigation">
25 25
        
26 26
        {{ form_start(form, {'action': path('heatmap'), 'method': 'GET'}) }}
27

  
28 27
          <ul class="navbar-nav">
29 28
            <li class="nav-item">
30
              {{ form_label(form.date, 'Vyberte datum') }}
29
              {{ form_label(form.date, 'Vyberte datum', {
30
                label_attr: {class: 'font-weight-bold'}
31
              }) }}
31 32
              {{
32 33
                form_widget(form.date,
33 34
                {
......
43 44
                })
44 45
              }}
45 46
            </li>
46

  
47 47
            <li class="nav-item">
48
              {{ form_label(form.time, 'Vyberte čas') }}
49
              {{
50
                form_widget(form.time, {
51
                  'id' : 'time',
52
                  'attr' : {
53
                    'class' : 'custom-select',
54
                  },
55
                })
56
              }}             
48
              <label class="font-weight-bold">Vyberte čas</label>
49
                <div class="dropdown">
50
                <button class="btn dropdown-toggle" type="button_1" id="dropdownMenuButton-time" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
51
                  {{ current_time }}
52
                </button>
53
                <div id="dataset-dropdown-time" class="dropdown-menu" aria-labelledby="dropdownMenuButton-time">
54
                {% for oneTime in form.time.children %}
55
                  <label class="dropdown-item custom-dropdown-item">
56
                  {{ form_widget(oneTime, {
57
                    attr: {class: 'd-none'}
58
                  }) }}
59
                  {{ form_label(oneTime, null) }}
60
                </label>   
61
                {% endfor %}
62
              </div>
57 63
            </li>
58

  
59 64
            <li class="nav-item">
60 65
              <div class="dropdown">
61
              {# {{ form_label(form.type, 'Vyberte datovou sadu') }} #}
62
                <button class="btn dropdown-toggle text-white font-weight-bold" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
66
                <button class="btn dropdown-toggle font-weight-bold" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
63 67
                  Vyberte datovou sadu
64 68
              </button>
65 69
              <div id="dataset-dropdown" class="dropdown-menu" aria-labelledby="dropdownMenuButton">
......
87 91
                form_widget(form.submit,
88 92
                {
89 93
                  'name' : '',
90
                  'label' : 'Potvrdit výběr',
94
                  'label' : '',
91 95
                  'type' : 'submit',
92 96
                  'id' : 'submit-btn',
93 97
                  'attr' : {
......
135 139
    <div class="datetime">
136 140
    
137 141
    {% if form.vars.value.date %}
138
      <div class="date" onclick="openDatepicker()">{{ form.vars.value.date|date('j. n. Y') }}</div>
142
      <div class="date" id="player-date" onclick="openDatepicker()">{{ form.vars.value.date|date('j. n. Y') }}</div>
139 143
    {% endif %}
140 144

  
141 145
    <div class="timeline">

Také k dispozici: Unified diff