mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
storedObject: add title in form twig and in activity show
This commit is contained in:
parent
e8cf7ae8e1
commit
60c163ae9d
@ -152,7 +152,7 @@
|
||||
{% if entity.documents|length > 0 %}
|
||||
<ul>
|
||||
{% for d in entity.documents %}
|
||||
<li>{{ m.download_button(d) }}</li>
|
||||
<li>{{ d.title }}{{ m.download_button(d) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
|
@ -68,7 +68,9 @@ class StoredObjectType extends AbstractType
|
||||
|
||||
if ($options['has_title']) {
|
||||
$builder
|
||||
->add('title', TextType::class);
|
||||
->add('title', TextType::class, [
|
||||
'label' => 'Title',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,5 +18,6 @@
|
||||
{{ form_widget(form.keyInfos, { 'attr': { 'data-stored-object-key': 1 } }) }}
|
||||
{{ form_widget(form.iv, { 'attr': { 'data-stored-object-iv': 1 } }) }}
|
||||
{{ form_widget(form.type, { 'attr': { 'data-async-file-type': 1 } }) }}
|
||||
{{ form_row(form.title) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user