Fixed missing templates for part lists.

This commit is contained in:
Jan Böhmer 2019-09-08 14:32:44 +02:00
parent c8bc5d5214
commit 2040178460
4 changed files with 43 additions and 4 deletions

View file

@ -122,7 +122,10 @@ class PartListsController extends AbstractController
return $table->getResponse();
}
return $this->render('parts_list.html.twig', ['datatable' => $table]);
return $this->render('Parts/lists/tags_list.html.twig', [
'tag' => $tag,
'datatable' => $table
]);
}
/**
@ -139,7 +142,10 @@ class PartListsController extends AbstractController
return $table->getResponse();
}
return $this->render('parts_list.html.twig', ['datatable' => $table]);
return $this->render('Parts/lists/search_list.html.twig', [
'datatable' => $table,
'keyword' => $keyword
]);
}
/**
@ -159,6 +165,6 @@ class PartListsController extends AbstractController
return $table->getResponse();
}
return $this->render('parts_list.html.twig', ['datatable' => $table]);
return $this->render('Parts/lists/all_list.html.twig', ['datatable' => $table]);
}
}

View file

@ -0,0 +1,11 @@
{% extends "base.html.twig" %}
{% block title %}
{% trans %}parts_list.all.title{% endtrans %}
{% endblock %}
{% block content %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}

View file

@ -0,0 +1,11 @@
{% extends "base.html.twig" %}
{% block title %}
{% trans %}parts_list.search.title{% endtrans %} {{ keyword }}
{% endblock %}
{% block content %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}

View file

@ -0,0 +1,11 @@
{% extends "base.html.twig" %}
{% block title %}
{% trans %}parts_list.tags.title{% endtrans %} {{ tag }}
{% endblock %}
{% block content %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}