Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.

Commit a264b80

Browse files
committed
Twig namespacing
1 parent aa6716f commit a264b80

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

Controller/ConfigController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class ConfigController extends AbstractController
2828
{
2929
/**
3030
* @Route("/settings/{method}")
31+
* @Template("@ZikulaOAuthModule/Config/settings.html.twig")
3132
* @Theme("admin")
32-
* @Template("ZikulaOAuthModule:Config:settings.html.twig")
3333
*
3434
* @throws AccessDeniedException
3535
*/

Controller/MappingController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MappingController extends AbstractController
2727
{
2828
/**
2929
* @Route("/list")
30-
* @Template("ZikulaOAuthModule:Mapping:list.html.twig")
30+
* @Template("@ZikulaOAuthModule/Mapping/list.html.twig")
3131
* @Theme("admin")
3232
*
3333
* @throws AccessDeniedException

Resources/views/Config/settings.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% form_theme form with [
2-
'ZikulaFormExtensionBundle:Form:bootstrap_3_zikula_admin_layout.html.twig',
3-
'ZikulaFormExtensionBundle:Form:form_div_layout.html.twig'
2+
'@ZikulaFormExtension/Form/bootstrap_3_zikula_admin_layout.html.twig',
3+
'@ZikulaFormExtension/Form/form_div_layout.html.twig'
44
] %}
55
{{ polyfill() }}
66
{{ adminHeader() }}

Resources/views/Mapping/list.html.twig

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
33
<h2><i class="fa fa-list"></i>{{ __('Mappings list') }}</h2>
44

55
<table class="table table-bordered table-striped">
6+
<colgroup>
7+
<col id="cMethod" />
8+
<col id="cMethodId" />
9+
<col id="cZikulaId" />
10+
</colgroup>
611
<thead>
7-
<tr><th>{{ __('Method') }}</th><th>{{ __('MethodId') }}</th><th>{{ __('ZikulaId') }}</th></tr>
12+
<tr>
13+
<th id="hMethod" scope="col">{{ __('Method') }}</th>
14+
<th id="hMethodId" scope="col">{{ __('MethodId') }}</th>
15+
<th id="hZikulaId" scope="col">{{ __('ZikulaId') }}</th>
16+
</tr>
817
</thead>
918
<tbody>
1019
{% for mapping in mappings %}
11-
<tr><td>{{ mapping.method }}</td><td>{{ mapping.methodId }}</td><td>{{ mapping.zikulaId }}</td></tr>
20+
<tr>
21+
<td headers="hMethod">{{ mapping.method }}</td>
22+
<td headers="hMethodId">{{ mapping.methodId }}</td>
23+
<td headers="hZikulaId">{{ mapping.zikulaId }}</td>
24+
</tr>
1225
{% endfor %}
1326
</tbody>
1427
</table>

0 commit comments

Comments
 (0)