diff --git a/Controller/AdminMaritalStatusController.php b/Controller/AdminMaritalStatusController.php
new file mode 100644
index 000000000..da46ac5c5
--- /dev/null
+++ b/Controller/AdminMaritalStatusController.php
@@ -0,0 +1,15 @@
+ '@ChillPerson/ClosingMotive/edit.html.twig',
]
]
+ ],
+ [
+ 'class' => \Chill\PersonBundle\Entity\MaritalStatus::class,
+ 'name' => 'marital_status',
+ 'base_path' => '/admin/marital-status',
+ 'form_class' => \Chill\PersonBundle\Form\MaritalStatusType::class,
+ 'controller' => \Chill\PersonBundle\Controller\AdminMaritalStatusController::class,
+ 'actions' => [
+ 'index' => [
+ 'role' => 'ROLE_ADMIN',
+ 'template' => '@ChillPerson/MaritalStatus/index.html.twig',
+ ],
+ 'new' => [
+ 'role' => 'ROLE_ADMIN',
+ 'template' => '@ChillPerson/MaritalStatus/new.html.twig',
+ ],
+ 'edit' => [
+ 'role' => 'ROLE_ADMIN',
+ 'template' => '@ChillPerson/MaritalStatus/edit.html.twig',
+ ]
+ ]
]
]
]);
diff --git a/Form/MaritalStatusType.php b/Form/MaritalStatusType.php
new file mode 100644
index 000000000..1897c7dc4
--- /dev/null
+++ b/Form/MaritalStatusType.php
@@ -0,0 +1,45 @@
+add('id', TextType::class, [
+ 'label' => 'Identifiant'
+ ])
+ ->add('name', TranslatableStringFormType::class, [
+ 'label' => 'Nom'
+ ])
+ ;
+ }
+
+ /**
+ * @param OptionsResolver $resolver
+ */
+ public function configureOptions(OptionsResolver $resolver)
+ {
+ $resolver
+ ->setDefault('class', MaritalStatus::class)
+ ;
+ }
+}
\ No newline at end of file
diff --git a/Resources/views/Admin/index.html.twig b/Resources/views/Admin/index.html.twig
index 5fe052596..2853c491c 100644
--- a/Resources/views/Admin/index.html.twig
+++ b/Resources/views/Admin/index.html.twig
@@ -38,6 +38,15 @@
{{ 'person_admin.closing motive explanation'|trans }}
+
+
+
+ {{ 'person_admin.marital status list'|trans }}
+
+
+
+ {{ 'person_admin.marital status explanation'|trans }}
+
diff --git a/Resources/views/MaritalStatus/edit.html.twig b/Resources/views/MaritalStatus/edit.html.twig
new file mode 100644
index 000000000..2d465f77e
--- /dev/null
+++ b/Resources/views/MaritalStatus/edit.html.twig
@@ -0,0 +1,12 @@
+{% extends '@ChillMain/Admin/layout.html.twig' %}
+
+{% block title %}
+{% include('@ChillMain/CRUD/_edit_title.html.twig') %}
+{% endblock %}
+
+{% block admin_content %}
+{% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
+ {% block content_form_actions_view %}{% endblock %}
+ {% block content_form_actions_save_and_show %}{% endblock %}
+{% endembed %}
+{% endblock %}
\ No newline at end of file
diff --git a/Resources/views/MaritalStatus/index.html.twig b/Resources/views/MaritalStatus/index.html.twig
new file mode 100644
index 000000000..8de83f16a
--- /dev/null
+++ b/Resources/views/MaritalStatus/index.html.twig
@@ -0,0 +1,27 @@
+{% extends '@ChillMain/Admin/layout.html.twig' %}
+
+{% block admin_content %}
+ {% embed '@ChillMain/CRUD/_index.html.twig' %}
+ {% block table_entities_thead_tr %}
+ {{ 'Id'|trans }} |
+ {{ 'Name'|trans }} |
+ |
+ {% endblock %}
+
+ {% block table_entities_tbody %}
+ {% for entity in entities %}
+
+ {{ entity.id }} |
+ {{ entity.name|localize_translatable_string }} |
+
+
+ |
+
+ {% endfor %}
+ {% endblock %}
+ {% endembed %}
+{% endblock %}
\ No newline at end of file
diff --git a/Resources/views/MaritalStatus/new.html.twig b/Resources/views/MaritalStatus/new.html.twig
new file mode 100644
index 000000000..b430411a8
--- /dev/null
+++ b/Resources/views/MaritalStatus/new.html.twig
@@ -0,0 +1,11 @@
+{% extends '@ChillMain/Admin/layout.html.twig' %}
+
+{% block title %}
+{% include('@ChillMain/CRUD/_new_title.html.twig') %}
+{% endblock %}
+
+{% block admin_content %}
+{% embed '@ChillMain/CRUD/_new_content.html.twig' %}
+ {% block content_form_actions_save_and_show %}{% endblock %}
+{% endembed %}
+{% endblock %}
diff --git a/translations/messages.fr.yml b/translations/messages.fr.yml
index d8bdef57a..2dab37bc0 100644
--- a/translations/messages.fr.yml
+++ b/translations/messages.fr.yml
@@ -229,7 +229,12 @@ crud:
add_new: Ajouter un nouveau
title_new: Nouveau motif de clotûre
title_edit: Modifier le motif de clotûre
-
+ marital_status:
+ index:
+ title: Liste des états civils
+ add_new: Ajouter un nouveau
+ title_new: Nouvel état civil
+ title_edit: Modifier l'état civil
# specific to closing motive
closing_motive:
@@ -243,9 +248,11 @@ person_admin:
closing motive explanation: >
Les motifs de clotûre donnent des indications sur la fermeture
d'une période d'accompagnement.
+ marital status list: Liste des états civils
+ marital status explanation: >
+ Configurer la liste des états civils.
accompanying_period:
dates: Période
dates_from_%opening_date%: Ouvert depuis le %opening_date%
dates_from_%opening_date%_to_%closing_date%: Ouvert du %opening_date% au %closing_date%
-
\ No newline at end of file