mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed missing templates for part lists.
This commit is contained in:
parent
c8bc5d5214
commit
2040178460
4 changed files with 43 additions and 4 deletions
|
@ -50,7 +50,7 @@ class PartListsController extends AbstractController
|
|||
public function showCategory(Category $category, Request $request, DataTableFactory $dataTable)
|
||||
{
|
||||
$table = $dataTable->createFromType(PartsDataTable::class, ['category' => $category])
|
||||
->handleRequest($request);
|
||||
->handleRequest($request);
|
||||
|
||||
if ($table->isCallback()) {
|
||||
return $table->getResponse();
|
||||
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
11
templates/Parts/lists/all_list.html.twig
Normal file
11
templates/Parts/lists/all_list.html.twig
Normal 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 %}
|
11
templates/Parts/lists/search_list.html.twig
Normal file
11
templates/Parts/lists/search_list.html.twig
Normal 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 %}
|
11
templates/Parts/lists/tags_list.html.twig
Normal file
11
templates/Parts/lists/tags_list.html.twig
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue