mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
main: LocationType: add new property defaultFor in the admin
This commit is contained in:
parent
32af076986
commit
7eeb2f2a7d
@ -29,8 +29,8 @@ class LocationType
|
||||
|
||||
public const STATUS_REQUIRED = 'required';
|
||||
|
||||
const DEFAULT_FOR_PERSON = 'person';
|
||||
const DEFAULT_FOR_3PARTY = 'thirdparty';
|
||||
public const DEFAULT_FOR_PERSON = 'person';
|
||||
public const DEFAULT_FOR_3PARTY = 'thirdparty';
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean", nullable=true)
|
||||
|
@ -71,6 +71,17 @@ final class LocationTypeType extends AbstractType
|
||||
],
|
||||
'expanded' => true,
|
||||
]
|
||||
);
|
||||
)
|
||||
->add(
|
||||
'defaultFor',
|
||||
ChoiceType::class,
|
||||
[
|
||||
'choices' => [
|
||||
'none' => null,
|
||||
'person' => LocationType::DEFAULT_FOR_PERSON,
|
||||
'thirdparty' => LocationType::DEFAULT_FOR_3PARTY,
|
||||
],
|
||||
'expanded' => true
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,7 @@
|
||||
<th>{{ 'Address required'|trans }}</th>
|
||||
<th>{{ 'Contact data'|trans }}</th>
|
||||
<th>{{ 'Active'|trans }}</th>
|
||||
<th>{{ 'Default for'|trans }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -33,6 +34,7 @@
|
||||
<i class="fa fa-square-o"></i>
|
||||
{%- endif -%}
|
||||
</td>
|
||||
<td>{{ entity.defaultFor|trans }}</td>
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
|
@ -212,6 +212,10 @@ Location type: Type de localisation
|
||||
Phonenumber1: Numéro de téléphone
|
||||
Phonenumber2: Autre numéro de téléphone
|
||||
Configure location and location type: Configuration des localisations
|
||||
Default for: Type de localisation par défaut pour
|
||||
none: aucun
|
||||
person: usager
|
||||
thirdparty: tiers
|
||||
|
||||
# circles / scopes
|
||||
Choose the circle: Choisir le cercle
|
||||
|
Loading…
x
Reference in New Issue
Block a user