Initial Build
This commit is contained in:
parent
71cd3acccd
commit
6c0d9a3f98
140 changed files with 9802 additions and 2403 deletions
32
templates/brain/page/create.html.twig
Normal file
32
templates/brain/page/create.html.twig
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{% extends 'brain/base.html.twig' %}
|
||||
|
||||
{% block title %}{{ action|capitalize}} Page{% endblock %}
|
||||
|
||||
{% block page_title %}<h1>Add New Page</h1>{% endblock %}
|
||||
|
||||
{# {% block actions%}Actions here{% endblock %} #}
|
||||
|
||||
{% block admin %}
|
||||
<section class="add-new--post">
|
||||
{{ form_start(form) }}
|
||||
<div class="form-errors">
|
||||
{{ form_errors(form) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.title) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.text) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.url) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.published) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_rest(form) }}
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
</section>
|
||||
{% endblock %}
|
||||
33
templates/brain/page/index.html.twig
Normal file
33
templates/brain/page/index.html.twig
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{% extends 'brain/base.html.twig' %}
|
||||
|
||||
{% block title %}Pages{% endblock %}
|
||||
|
||||
{% block page_title %}<h1>All pages</h1>{% endblock %}
|
||||
|
||||
{# {% block actions%}Actions here{% endblock %} #}
|
||||
|
||||
{% block admin %}
|
||||
<div class="list">
|
||||
<h2><a href="/brain/page/new">New Page</a></h2>
|
||||
<table class="pages">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Title</td>
|
||||
<td>Edit</td>
|
||||
<td>View</td>
|
||||
<td>Published</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for page in pages %}
|
||||
<tr>
|
||||
<td>{{page.title}}</td>
|
||||
<td><a href="/brain/page/edit/{{page.getId()}}">Edit</a></td>
|
||||
<td><a href="/{{page.getUrl()}}">View</a><td>
|
||||
<td>{{page.published == 1 ? 'Yes' : 'No'}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue