Skip to content

Commit

Permalink
Merge pull request #4 from Jibbarth/feature/new-theme-easy-admin
Browse files Browse the repository at this point in the history
Feature/new theme easy admin
  • Loading branch information
Jibbarth authored Nov 20, 2018
2 parents b2440b9 + 306ea0f commit 66f6f34
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
17 changes: 11 additions & 6 deletions src/Resources/views/form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
{% block main %}
{{ form_start(config_form, form_attr) }}
<div class="row">
{% for child in config_form.children %}
<div class="col-xs-12">
{{ form_row(child) }}
</div>
{% endfor %}
{% for child in config_form.children if child.vars.name != 'save'%}
<div class="col-xs-12 col-12">
{{ form_row(child) }}
</div>
{% endfor %}
</div>
{{ form_end(config_form) }}
<section class="content-footer">
<div class="form-actions">
{{ form_row(config_form.save, {attr:{class:'btn-primary'}}) }}
</div>
{{ form_end(config_form) }}
</section>
{% endblock %}
15 changes: 8 additions & 7 deletions src/Resources/views/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

{% block content_title %}Bundles configurations{% endblock %}
{% block main %}
<ul>
<main class="col-xs-12 col-12 row m-2">
{% for bundle in bundles %}
<li>
<a href="{{ path('barth_simpleconfig_edit', {'package' : bundle}) }}" >
Edit {{ bundle }} configuration
</a>
</li>
<div class="col-xs-3 col-3 border text-center m-2 p-2">
<span class="h5 text-capitalize clearfix">{{ bundle }}</span>
<a href="{{ path('barth_simpleconfig_edit', {'package' : bundle}) }}" class="btn btn-primary btn-xs mt-3 mb-2" >
Edit configuration
</a>
</div>
{% endfor %}
</ul>
</main>
{% endblock %}

0 comments on commit 66f6f34

Please sign in to comment.