Rename admin twig templates

This commit is contained in:
Romain Neutron
2012-07-20 17:32:51 +02:00
parent b6b080b561
commit 0666f04cba
18 changed files with 14 additions and 14 deletions

View File

@@ -241,7 +241,7 @@ class Description implements ControllerProviderInterface
'vocabularies' => VocabularyController::getAvailable(), 'vocabularies' => VocabularyController::getAvailable(),
); );
return new Response($app['twig']->render('admin/databox/doc_structure.twig', $params)); return new Response($app['twig']->render('admin/databox/doc_structure.html.twig', $params));
})->before(function(Request $request) use ($app) { })->before(function(Request $request) use ($app) {
if (false === $app['phraseanet.core']->getAuthenticatedUser()->ACL() if (false === $app['phraseanet.core']->getAuthenticatedUser()->ACL()
->has_right_on_sbas($request->get('sbas_id'), 'bas_modify_struct')) { ->has_right_on_sbas($request->get('sbas_id'), 'bas_modify_struct')) {

View File

@@ -35,7 +35,7 @@ class Publications implements ControllerProviderInterface
); );
return $app['twig'] return $app['twig']
->render('admin/publications/list.html', array('feeds' => $feeds)); ->render('admin/publications/list.html.twig', array('feeds' => $feeds));
}); });
$controllers->post('/create/', function(PhraseaApplication $app, Request $request) { $controllers->post('/create/', function(PhraseaApplication $app, Request $request) {

View File

@@ -35,7 +35,7 @@ class Subdefs implements ControllerProviderInterface
$databox = \databox::get_instance((int) $sbas_id); $databox = \databox::get_instance((int) $sbas_id);
return new response($app['twig']->render( return new response($app['twig']->render(
'admin/subdefs.twig', array( 'admin/subdefs.html.twig', array(
'databox' => $databox, 'databox' => $databox,
'subdefs' => $databox->get_subdef_structure() 'subdefs' => $databox->get_subdef_structure()
) )

View File

@@ -36,14 +36,14 @@ class Users implements ControllerProviderInterface
$controllers->post('/rights/', function(Application $app) { $controllers->post('/rights/', function(Application $app) {
$rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']); $rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']);
return $app['twig']->render('admin/editusers.twig', $rights->get_users_rights()); return $app['twig']->render('admin/editusers.html.twig', $rights->get_users_rights());
} }
); );
$controllers->get('/rights/', function(Application $app) { $controllers->get('/rights/', function(Application $app) {
$rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']); $rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']);
return $app['twig']->render('admin/editusers.twig', $rights->get_users_rights()); return $app['twig']->render('admin/editusers.html.twig', $rights->get_users_rights());
} }
); );
@@ -106,7 +106,7 @@ class Users implements ControllerProviderInterface
$controllers->post('/rights/quotas/', function(Application $app) { $controllers->post('/rights/quotas/', function(Application $app) {
$rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']); $rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']);
return $app['twig']->render('admin/editusers_quotas.twig', $rights->get_quotas()); return $app['twig']->render('admin/editusers_quotas.html.twig', $rights->get_quotas());
} }
); );
@@ -121,7 +121,7 @@ class Users implements ControllerProviderInterface
$controllers->post('/rights/time/', function(Application $app) { $controllers->post('/rights/time/', function(Application $app) {
$rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']); $rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']);
return $app['twig']->render('admin/editusers_timelimit.twig', $rights->get_time()); return $app['twig']->render('admin/editusers_timelimit.html.twig', $rights->get_time());
} }
); );
@@ -136,7 +136,7 @@ class Users implements ControllerProviderInterface
$controllers->post('/rights/masks/', function(Application $app) { $controllers->post('/rights/masks/', function(Application $app) {
$rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']); $rights = new UserHelper\Edit($app['phraseanet.core'], $app['request']);
return $app['twig']->render('admin/editusers_masks.twig', $rights->get_masks()); return $app['twig']->render('admin/editusers_masks.html.twig', $rights->get_masks());
} }
); );
@@ -151,7 +151,7 @@ class Users implements ControllerProviderInterface
$controllers->match('/search/', function(Application $app) { $controllers->match('/search/', function(Application $app) {
$users = new UserHelper\Manage($app['phraseanet.core'], $app['request']); $users = new UserHelper\Manage($app['phraseanet.core'], $app['request']);
return $app['twig']->render('admin/users.html', $users->search()); return $app['twig']->render('admin/users.html.twig', $users->search());
} }
); );

View File

@@ -1,4 +1,4 @@
{% extends 'admin/publications/wrapper.html' %} {% extends 'admin/publications/wrapper.html.twig' %}
{% block content %} {% block content %}

View File

@@ -1,4 +1,4 @@
{% extends 'admin/publications/wrapper.html' %} {% extends 'admin/publications/wrapper.html.twig' %}
{% block content %} {% block content %}

View File

@@ -1,5 +1,5 @@
{% extends "admin/common/iframe_wrap.html" %} {% extends "admin/common/iframe_wrap.html.twig" %}
{% block stylesheet %} {% block stylesheet %}

View File

@@ -1,5 +1,5 @@
{% extends request.is_ajax ? "admin/common/ajax_wrap.html" : "admin/common/iframe_wrap.html" %} {% extends request.is_ajax ? "admin/common/ajax_wrap.html.twig" : "admin/common/iframe_wrap.html.twig" %}
{% block content %} {% block content %}

View File

@@ -73,4 +73,4 @@ $twig = $core->getTwig();
$parm['view'] = 'XML'; $parm['view'] = 'XML';
echo $twig->render('admin/task.html', array('task' => $task, 'view' => $parm['view'])); echo $twig->render('admin/task.html.twig', array('task' => $task, 'view' => $parm['view']));