Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ See [keep a changelog] for information about writing changes to this log.

## [Unreleased]

[PR-37](https://github.com/itk-dev/itqr/pull/37)
- Rename "theme" to "design" in general
- Rename "delete" to "archive" in general
[PR-36](https://github.com/itk-dev/itqr/pull/36)
- Fixed issue with set url
- Batch set url only for admins
Expand Down
6 changes: 6 additions & 0 deletions config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ controllers:
path: ../src/Controller/
namespace: App\Controller
type: attribute
root_redirect:
path: /
controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController
defaults:
route: 'qr_index'
permanent: true
2 changes: 1 addition & 1 deletion src/Controller/Admin/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public function configureDashboard(): Dashboard
public function configureMenuItems(): iterable
{
yield MenuItem::linkToCrud(new TranslatableMessage('QR Codes'), 'fa fa-qrcode', Qr::class);
yield MenuItem::linkToCrud(new TranslatableMessage('QR Themes'), 'fa fa-palette', QrVisualConfig::class);
yield MenuItem::linkToCrud(new TranslatableMessage('QR Designs'), 'fa fa-palette', QrVisualConfig::class);
}
}
2 changes: 2 additions & 0 deletions src/Controller/Admin/QrCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@
use Endroid\QrCode\Exception\ValidationException;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Translation\TranslatableMessage;

/**
* @template TData of CrudControllerInterface
*/
class QrCrudController extends AbstractTenantAwareCrudController
{
#[\Symfony\Component\Routing\Attribute\Route('/admin/qr', name: 'qr_index')]
public function __construct(
private readonly DownloadHelper $downloadHelper,
private readonly QrHitTrackerRepository $hitTrackerRepository,
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Admin/QrVisualConfigCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function configureFields(string $pageName): iterable
->setFormTypeOption('data', $this->getContext()->getEntity()->getInstance()->getId()),
TextField::new('name')
->setLabel(new TranslatableMessage('qr.title'))
->setHelp(new TranslatableMessage('Name of the theme.')),
->setHelp(new TranslatableMessage('Name of the design.')),
IntegerField::new('size')
->setLabel(new TranslatableMessage('qr.size.label'))
->setHelp(new TranslatableMessage('qr.size.help')),
Expand Down