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">
<div class="row">
<div class="col-md-12">
{{ form(form) }} {{ form(form) }}
</div>
</div>
</div>
{% endblock %} {% endblock %}

View File

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