[CONTROLLER][CollectionController] Refactored methods names and form

titles
[PLUGINS][AttachmentCollections] Renamed respective Controller to
differentiate it between The Controller and itself, renamed templates
and removed unnecessary HTML from templates
This commit is contained in:
2022-01-02 18:40:09 +00:00
committed by Diogo Peralta Cordeiro
parent 7ad39fdc83
commit 28424402ec
8 changed files with 74 additions and 91 deletions

View File

@@ -28,7 +28,7 @@ use App\Core\DB\DB;
use App\Core\Router\Router;
use Plugin\AttachmentCollections\Entity\AttachmentCollection;
class Controller extends CollectionController
class AttachmentCollections extends CollectionController
{
public function createCollection(int $owner_id, string $name)
{
@@ -64,7 +64,7 @@ class Controller extends CollectionController
['cid' => $collection_id],
);
return [
'_template' => 'AttachmentCollections/collection.html.twig',
'_template' => 'AttachmentCollections/collection_entry_view.html.twig',
'attachments' => array_values($attachs),
'bare_notes' => array_values($notes),
];