mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add slugified flag name in admin
This commit is contained in:
@@ -7,6 +7,7 @@ use Alchemy\Phrasea\Model\Entities\ElasticsearchRecord;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
use Alchemy\Phrasea\Model\RecordInterface;
|
||||
use Alchemy\Phrasea\Http\StaticFile\StaticMode;
|
||||
use Alchemy\Phrasea\SearchEngine\Elastic\Structure\Flag;
|
||||
|
||||
class PhraseanetExtension extends \Twig_Extension
|
||||
{
|
||||
@@ -44,6 +45,8 @@ class PhraseanetExtension extends \Twig_Extension
|
||||
new \Twig_SimpleFunction('caption_field', array($this, 'getCaptionField')),
|
||||
new \Twig_SimpleFunction('caption_field_label', array($this, 'getCaptionFieldLabel')),
|
||||
new \Twig_SimpleFunction('caption_field_order', array($this, 'getCaptionFieldOrder')),
|
||||
|
||||
new \Twig_SimpleFunction('flag_slugify', array(Flag::class, 'normalizeName')),
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
{% endif %}
|
||||
|
||||
<h1 style='padding-left:30px;'>
|
||||
{{ 'status:: numero de bit' | trans }} {{ app['request'].get('bit') }}
|
||||
{{ 'status:: numero de bit' | trans }} {{ app['request'].get('bit') }} ({{ flag_slugify(status['labelon']) }})
|
||||
</h1>
|
||||
|
||||
<form id="fileupload" class="form-horizontal" target="_self" enctype="multipart/form-data" method="post" action="{{ path('database_submit_statusbit', { 'databox_id' : app['request'].get('databox_id'), 'bit' : app['request'].get('bit') }) }}">
|
||||
|
Reference in New Issue
Block a user