Cleanup snip templates

This commit is contained in:
Tim 2023-04-04 01:39:08 +02:00
parent a35991f955
commit 6442f96b9c
3 changed files with 10 additions and 30 deletions

View File

@ -2,11 +2,5 @@
{% block body %} {% block body %}
<h2>{{ snip }}</h2> <h2>{{ snip }}</h2>
<div class="container"> {{ form(form) }}
<div class="row">
<div class="col-md-12">
{{ form(form) }}
</div>
</div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,21 +1,13 @@
{% extends 'base/base.html.twig' %} {% extends 'base/base.html.twig' %}
{% block body %} {% block body %}
<div class="container"> <h1>Snippets</h1>
<div class="row"> <a class="btn btn-primary" href="{{ path('snip_new') }}">Create a new Snip</a>
<div class="col-md-12"> <div class="list-group">
<h1>Snippets</h1> {% for snip in snips %}
</div> <a class="list-group-item" href="{{ path('snip_edit', {snip: snip.id}) }}">
</div> {{ snip }}
<a class="btn btn-primary" href="{{ path('snip_new') }}">Create a new Snip</a> </a>
<div class="row"> {% endfor %}
<div class="list-group">
{% for snip in snips %}
<a class="list-group-item" href="{{ path('snip_edit', {snip: snip.id}) }}">
{{ snip }}
</a>
{% endfor %}
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,11 +1,5 @@
{% extends 'base/base.html.twig' %} {% extends 'base/base.html.twig' %}
{% block body %} {% block body %}
<div class="container"> <h1>{{ snip }}</h1>
<div class="row">
<div class="col-md-12">
<h1>{{ snip }}</h1>
</div>
</div>
</div>
{% endblock %} {% endblock %}