Commit ce23f826 authored by Arnaud Bey's avatar Arnaud Bey
Browse files

remove useless panel

parent 974698fe
......@@ -208,16 +208,13 @@ class ObjectiveManager
$foundables = $foundableRepo->getByGridAndFeature($grid, $feature, $foundables);
if (count($foundables) < $objective->getNumberToFind()) {
$errors[] = 'problème constraint non réalisable round '.$roundName;
break;
}
}
// no break
break;
default:
break;
}
}
var_dump($errors);
die();
return $errors;
}
......
......@@ -8,10 +8,14 @@
<i class="fa fa-plus" aria-hidden="true"></i>
{{ 'add_combo' | trans }}
</span>
<button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#helper-combos">
<button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#helper-combos">
<i class="fa fa-eye" aria-hidden="true"></i>
{{ 'see_combos' | trans }}
</button>
<span class='btn btn-primary btn-xs' onclick="objectives.save()">
<i class="fa fa-floppy-o" aria-hidden="true"></i>
{{ 'save_objectives' | trans }}
</span>
</span>
</div>
......
......@@ -12,6 +12,10 @@
<i class="fa fa-plus" aria-hidden="true"></i>
{{ 'add_constraint' | trans }}
</span>
<span class='btn btn-primary btn-xs' onclick="objectives.save()">
<i class="fa fa-floppy-o" aria-hidden="true"></i>
{{ 'save_objectives' | trans }}
</span>
{#
<button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#helper-constraint">
<i class="fa fa-eye" aria-hidden="true"></i>
......
......@@ -12,6 +12,10 @@
<i class="fa fa-plus" aria-hidden="true"></i>
{{ 'add_findword' | trans }}
</span>
<span class='btn btn-primary btn-xs' onclick="objectives.save()">
<i class="fa fa-floppy-o" aria-hidden="true"></i>
{{ 'save_objectives' | trans }}
</span>
</span>
</div>
<ul class="list-group" id="words" data-prototype="{{ my_macros.findWord_prototype(form.findWords.vars.prototype)|e }}">
......
{% set hasObj = conquer.objectives|length > 0 ? true : false %}
<div class="panel panel-default">
<div class="panel-heading">
{{ 'objectives' | trans }}
<span class="pull-right">
<span class='btn btn-primary btn-xs' onclick="objectives.save()">
<i class="fa fa-floppy-o" aria-hidden="true"></i>
{{ 'save_objectives' | trans }}
</span>
</span>
</div>
<div class="panel-body">
<ul class="nav nav-tabs nav-justified" role="tablist">
<li role="presentation" class="active">
<a href="#find-words-tab" aria-controls="find-words-tab" role="tab" data-toggle="tab">
<i class="fa fa-binoculars" aria-hidden="true"></i> {{ 'find_words' | trans }}
</a>
</li>
<li role="presentation">
<a href="#combos-tab" aria-controls="combos-tab" role="tab" data-toggle="tab">
<i class="fa fa-tachometer" aria-hidden="true"></i> {{ 'combos' | trans }}
</a>
</li>
<li role="presentation">
<a href="#constraints-tab" aria-controls="constraints-tab" role="tab" data-toggle="tab">
<i class="fa fa-map-o" aria-hidden="true"></i> {{ 'constraint' | trans }}
</a>
</li>
</ul>
<form class="form-inline" id="objectives">
<div class="tab-content">
<div role="tabpanel" class="tab-pane active in fade" id="find-words-tab">
{% include "MagicWordBundle:Round/Conquer/Objective:findword.html.twig" %}
</div>
<div role="tabpanel" class="tab-pane fade" id="combos-tab">
{% include "MagicWordBundle:Round/Conquer/Objective:combo.html.twig" %}
</div>
<div role="tabpanel" class="tab-pane fade" id="constraints-tab">
{% include "MagicWordBundle:Round/Conquer/Objective:constraint.html.twig" %}
</div>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs nav-justified" role="tablist">
<li role="presentation" class="active">
<a href="#find-words-tab" aria-controls="find-words-tab" role="tab" data-toggle="tab">
<i class="fa fa-binoculars" aria-hidden="true"></i> {{ 'find_words' | trans }}
</a>
</li>
<li role="presentation">
<a href="#combos-tab" aria-controls="combos-tab" role="tab" data-toggle="tab">
<i class="fa fa-tachometer" aria-hidden="true"></i> {{ 'combos' | trans }}
</a>
</li>
<li role="presentation">
<a href="#constraints-tab" aria-controls="constraints-tab" role="tab" data-toggle="tab">
<i class="fa fa-map-o" aria-hidden="true"></i> {{ 'constraint' | trans }}
</a>
</li>
</ul>
<form class="form-inline" id="objectives">
<div class="tab-content">
<div role="tabpanel" class="tab-pane active in fade" id="find-words-tab">
{% include "MagicWordBundle:Round/Conquer/Objective:findword.html.twig" %}
</div>
{{ form_widget(form._token) }}
</form>
</div>
<div role="tabpanel" class="tab-pane fade" id="combos-tab">
{% include "MagicWordBundle:Round/Conquer/Objective:combo.html.twig" %}
</div>
<div role="tabpanel" class="tab-pane fade" id="constraints-tab">
{% include "MagicWordBundle:Round/Conquer/Objective:constraint.html.twig" %}
</div>
</div>
{{ form_widget(form._token) }}
</form>
</div>
</div>
{# GRID + INFLECTIONS #}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment