mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized for SPA
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
{{ form_end(form) }}
|
5
application/symfony/templates/source/form/name.html.twig
Normal file
5
application/symfony/templates/source/form/name.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "source/form/source.html.twig" %}
|
||||
{% block content %}
|
||||
<h1>{% trans %} Name {% endtrans %}</h1>
|
||||
{% include "source/form/content/name." ~ app.request.requestFormat ~ ".twig" %}
|
||||
{% endblock %}
|
@@ -0,0 +1,6 @@
|
||||
{% extends "source/source.html.twig" %}
|
||||
{% block title %}
|
||||
{% trans %}
|
||||
Source edit
|
||||
{% endtrans %}
|
||||
{% endblock %}
|
9
application/symfony/templates/source/source.html.twig
Normal file
9
application/symfony/templates/source/source.html.twig
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "frames/default.html.twig" %}
|
||||
{% block title %}
|
||||
{% trans %}
|
||||
Source
|
||||
{% endtrans %}
|
||||
{% endblock %}
|
||||
{% block sub_navigation %}
|
||||
{% include 'frames/structure/navbar/source_sub.html.twig'%}
|
||||
{% endblock %}
|
@@ -0,0 +1 @@
|
||||
{{ source.name }}
|
@@ -0,0 +1 @@
|
||||
{% include "source/view/content/name." ~ app.request.requestFormat ~ ".twig" with {'source':source.nameSource}%}
|
5
application/symfony/templates/source/view/name.html.twig
Normal file
5
application/symfony/templates/source/view/name.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "source/view/source.html.twig" %}
|
||||
{% block content %}
|
||||
<h1>{% trans %} Name {% endtrans %}</h1>
|
||||
{% include "source/view/content/name." ~ app.request.requestFormat ~ ".twig" %}
|
||||
{% endblock %}
|
@@ -0,0 +1,7 @@
|
||||
{% extends "source/source.html.twig" %}
|
||||
{% block title %}
|
||||
{% trans %}
|
||||
Source
|
||||
{% endtrans %}
|
||||
#{{ source.id }}
|
||||
{% endblock %}
|
5
application/symfony/templates/source/view/user.html.twig
Normal file
5
application/symfony/templates/source/view/user.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "source/view/source.html.twig" %}
|
||||
{% block content %}
|
||||
<h1>{% trans %} User {% endtrans %}</h1>
|
||||
{% include "source/view/content/user." ~ app.request.requestFormat ~ ".twig" %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user