Implemented view for node

This commit is contained in:
Kevin Frantz
2018-09-20 16:03:00 +02:00
parent 1915c77d8c
commit ee1cef71b7
7 changed files with 117 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{% extends "frames/default.html.twig" %}
{% block title %}
{% trans %}
Node
{% endtrans %}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% if nodeList.isEmpty %}
{% trans %}
This list doesn't contain elements.
{% endtrans %}
{% else %}
<ul>
{% for node in nodeList %}
<li><a href="{{ path('app_node_show',{'id':node.id}) }}" class=" nav-link"> <i
class="fas fa-globe"></i> {% trans %}Node{% endtrans %} {{ node.id }}
</a></li>
{% endfor %}
</ul>
{% endif %}

View File

@@ -0,0 +1,34 @@
{% extends "node/node.html.twig" %}
{% block content %}
<h1>
{% trans %}
Node
{% endtrans %}
#
{{ node.id }}
</h1>
{% trans %}
Manages
{% endtrans %}
<a href="{{ path('app_source_show',{'id':node.source.id})}}"> {% trans with {'%node.source.id%':node.source.id}%}
source #%node.source.id% {% endtrans %}
</a>
.
<h2>
{% trans %}
Relatives
{% endtrans %}
</h2>
<h3>
{% trans %}
First Generation Parents
{% endtrans %}
</h3>
{% include "node/structure/_list.html.twig" with {'nodeList':node.parents}%}
<h3>
{% trans %}
First Generation Childs
{% endtrans %}
</h3>
{% include "node/structure/_list.html.twig" with {'nodeList':node.childs}%}
{% endblock %}