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

Commit

Permalink
Twig namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Dec 16, 2019
1 parent aa6716f commit a264b80
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class ConfigController extends AbstractController
{
/**
* @Route("/settings/{method}")
* @Template("@ZikulaOAuthModule/Config/settings.html.twig")
* @Theme("admin")
* @Template("ZikulaOAuthModule:Config:settings.html.twig")
*
* @throws AccessDeniedException
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/MappingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MappingController extends AbstractController
{
/**
* @Route("/list")
* @Template("ZikulaOAuthModule:Mapping:list.html.twig")
* @Template("@ZikulaOAuthModule/Mapping/list.html.twig")
* @Theme("admin")
*
* @throws AccessDeniedException
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/Config/settings.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% form_theme form with [
'ZikulaFormExtensionBundle:Form:bootstrap_3_zikula_admin_layout.html.twig',
'ZikulaFormExtensionBundle:Form:form_div_layout.html.twig'
'@ZikulaFormExtension/Form/bootstrap_3_zikula_admin_layout.html.twig',
'@ZikulaFormExtension/Form/form_div_layout.html.twig'
] %}
{{ polyfill() }}
{{ adminHeader() }}
Expand Down
17 changes: 15 additions & 2 deletions Resources/views/Mapping/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,25 @@
<h2><i class="fa fa-list"></i>{{ __('Mappings list') }}</h2>

<table class="table table-bordered table-striped">
<colgroup>
<col id="cMethod" />
<col id="cMethodId" />
<col id="cZikulaId" />
</colgroup>
<thead>
<tr><th>{{ __('Method') }}</th><th>{{ __('MethodId') }}</th><th>{{ __('ZikulaId') }}</th></tr>
<tr>
<th id="hMethod" scope="col">{{ __('Method') }}</th>
<th id="hMethodId" scope="col">{{ __('MethodId') }}</th>
<th id="hZikulaId" scope="col">{{ __('ZikulaId') }}</th>
</tr>
</thead>
<tbody>
{% for mapping in mappings %}
<tr><td>{{ mapping.method }}</td><td>{{ mapping.methodId }}</td><td>{{ mapping.zikulaId }}</td></tr>
<tr>
<td headers="hMethod">{{ mapping.method }}</td>
<td headers="hMethodId">{{ mapping.methodId }}</td>
<td headers="hZikulaId">{{ mapping.zikulaId }}</td>
</tr>
{% endfor %}
</tbody>
</table>
Expand Down

0 comments on commit a264b80

Please sign in to comment.