mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Rename admin twig templates
This commit is contained in:
@@ -241,7 +241,7 @@ class Description implements ControllerProviderInterface
|
||||
'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) {
|
||||
if (false === $app['phraseanet.core']->getAuthenticatedUser()->ACL()
|
||||
->has_right_on_sbas($request->get('sbas_id'), 'bas_modify_struct')) {
|
||||
|
@@ -35,7 +35,7 @@ class Publications implements ControllerProviderInterface
|
||||
);
|
||||
|
||||
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) {
|
||||
|
@@ -35,7 +35,7 @@ class Subdefs implements ControllerProviderInterface
|
||||
$databox = \databox::get_instance((int) $sbas_id);
|
||||
|
||||
return new response($app['twig']->render(
|
||||
'admin/subdefs.twig', array(
|
||||
'admin/subdefs.html.twig', array(
|
||||
'databox' => $databox,
|
||||
'subdefs' => $databox->get_subdef_structure()
|
||||
)
|
||||
|
@@ -36,14 +36,14 @@ class Users implements ControllerProviderInterface
|
||||
$controllers->post('/rights/', function(Application $app) {
|
||||
$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) {
|
||||
$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) {
|
||||
$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) {
|
||||
$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) {
|
||||
$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) {
|
||||
$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());
|
||||
}
|
||||
);
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends 'admin/publications/wrapper.html' %}
|
||||
{% extends 'admin/publications/wrapper.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends 'admin/publications/wrapper.html' %}
|
||||
{% extends 'admin/publications/wrapper.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
{% extends "admin/common/iframe_wrap.html" %}
|
||||
{% extends "admin/common/iframe_wrap.html.twig" %}
|
||||
|
||||
{% block stylesheet %}
|
||||
|
@@ -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 %}
|
||||
|
@@ -73,4 +73,4 @@ $twig = $core->getTwig();
|
||||
|
||||
$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']));
|
||||
|
Reference in New Issue
Block a user