mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
do not show action when editing goals
This commit is contained in:
parent
71a92a8b6b
commit
d4aba04a52
@ -43,17 +43,6 @@ class GoalType extends AbstractType
|
|||||||
->add('title', TranslatableStringFormType::class, [
|
->add('title', TranslatableStringFormType::class, [
|
||||||
'label' => 'Nom',
|
'label' => 'Nom',
|
||||||
])
|
])
|
||||||
|
|
||||||
->add('socialActions', EntityType::class, [
|
|
||||||
'class' => SocialAction::class,
|
|
||||||
'required' => false,
|
|
||||||
'multiple' => true,
|
|
||||||
'choice_label' => function (SocialAction $issue) {
|
|
||||||
return $this->translatableStringHelper->localize($issue->getTitle());
|
|
||||||
},
|
|
||||||
'attr' => ['class' => 'select2 '],
|
|
||||||
])
|
|
||||||
|
|
||||||
->add('results', EntityType::class, [
|
->add('results', EntityType::class, [
|
||||||
'class' => Result::class,
|
'class' => Result::class,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
@ -63,7 +52,6 @@ class GoalType extends AbstractType
|
|||||||
},
|
},
|
||||||
'attr' => ['class' => 'select2 '],
|
'attr' => ['class' => 'select2 '],
|
||||||
])
|
])
|
||||||
|
|
||||||
->add('desactivationDate', ChillDateType::class, [
|
->add('desactivationDate', ChillDateType::class, [
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'label' => 'goal.desactivationDate',
|
'label' => 'goal.desactivationDate',
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
{% block table_entities_thead_tr %}
|
{% block table_entities_thead_tr %}
|
||||||
<th>{{ 'Id'|trans }}</th>
|
<th>{{ 'Id'|trans }}</th>
|
||||||
<th>{{ 'Title'|trans }}</th>
|
<th>{{ 'Title'|trans }}</th>
|
||||||
<th>{{ 'Social actions'|trans }}</th>
|
|
||||||
<th>{{ 'goal.results'|trans }}</th>
|
<th>{{ 'goal.results'|trans }}</th>
|
||||||
<th>{{ 'goal.desactivationDate'|trans }}</th>
|
<th>{{ 'goal.desactivationDate'|trans }}</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
@ -17,11 +16,6 @@
|
|||||||
<td>{{ entity.id }}</td>
|
<td>{{ entity.id }}</td>
|
||||||
<td>{{ entity.title|localize_translatable_string }}</td>
|
<td>{{ entity.title|localize_translatable_string }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% for sa in entity.socialActions %}
|
|
||||||
{{ sa.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{% for sa in entity.results %}
|
{% for sa in entity.results %}
|
||||||
{{ sa.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
{{ sa.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user