+
{{ terms.name }}
+
+ {{ form_start(form, {'attr': {'id': 'terms-edition-form'}}) }}
+ {{ form_row(form.isTermsPublished, {'attr': {'class': 'terms-module-form-field-small'}}) }}
+ {{ form_row(form.needVersionActivation) }}
+
+
+
+
+
+ {% if currentTermsVersion.id == lastTermsVersion.id and lastTermsVersion.isEnabled() %}
+
+
+ {{ 'terms_module.admin.edit.new_version'|trans({}, 'terms_module') }}
+
+ {% endif %}
+
+ {% if currentTermsVersion.id != lastTermsVersion.id %}
+
+
+ {{ 'terms_module.admin.edit.duplicate'|trans({}, 'terms_module') }}
+
+ {% endif %}
+
+ {% if currentTermsVersion.id is not null and currentTermsVersion.id == lastTermsVersion.id and not lastTermsVersion.isEnabled() %}
+
+
+ {{ 'terms_module.admin.edit.activate_version'|trans({}, 'terms_module') }}
+
+ {% endif %}
+
+ {% if currentTermsVersion.id is not null and not currentTermsVersion.isEnabled() and terms.versions|length > 1 %}
+
+
+
+ {% endif %}
+
+
+
+
+
{{ form_row(form.title, {'attr': {'class': 'terms-module-form-field-full'}}) }}
+
{{ form_row(form.publicationDate, {'attr': {'class': 'terms-module-form-field-small'}}) }}
+
+
+ {{ form_row(form.content, {'attr': {'class': 'terms-module-form-field-full'}}) }}
+
+
+ {{ form_end(form) }}
+
+
+{% include '@RichIdTermsModule/_load-picto.html.twig' %}
+
+
diff --git a/src/Infrastructure/Resources/views/admin/edit/_partial/_content.html.twig b/src/Infrastructure/Resources/views/admin/edit/_partial/_content.html.twig
new file mode 100644
index 0000000..d1c2094
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/edit/_partial/_content.html.twig
@@ -0,0 +1,10 @@
+{% include '@RichIdTermsModule/_styles.html.twig' %}
+{% include '@RichIdTermsModule/admin/edit/_partial/_styles.html.twig' %}
+
+
+ {% include '@RichIdTermsModule/admin/edit/_partial/_header.html.twig' %}
+
+
+ {% include '@RichIdTermsModule/admin/edit/_partial/_body.html.twig' %}
+
+
diff --git a/src/Infrastructure/Resources/views/admin/edit/_partial/_header.html.twig b/src/Infrastructure/Resources/views/admin/edit/_partial/_header.html.twig
new file mode 100644
index 0000000..6e1f229
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/edit/_partial/_header.html.twig
@@ -0,0 +1,3 @@
+
diff --git a/src/Infrastructure/Resources/views/admin/edit/_partial/_styles.html.twig b/src/Infrastructure/Resources/views/admin/edit/_partial/_styles.html.twig
new file mode 100644
index 0000000..368dca1
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/edit/_partial/_styles.html.twig
@@ -0,0 +1,157 @@
+
diff --git a/src/Infrastructure/Resources/views/admin/edit/_partial/_terms_version_card.html.twig b/src/Infrastructure/Resources/views/admin/edit/_partial/_terms_version_card.html.twig
new file mode 100644
index 0000000..49ea726
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/edit/_partial/_terms_version_card.html.twig
@@ -0,0 +1,14 @@
+
+ {% for terms in termsList %}
+ {% include '@RichIdTermsModule/admin/list/_partial/_terms-card.html.twig' with {'terms' : terms} %}
+ {% endfor %}
+
+
+{% include '@RichIdTermsModule/_load-picto.html.twig' %}
diff --git a/src/Infrastructure/Resources/views/admin/list/_partial/_content.html.twig b/src/Infrastructure/Resources/views/admin/list/_partial/_content.html.twig
new file mode 100644
index 0000000..ba2aec2
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/list/_partial/_content.html.twig
@@ -0,0 +1,10 @@
+{% include '@RichIdTermsModule/_styles.html.twig' %}
+{% include '@RichIdTermsModule/admin/list/_partial/_styles.html.twig' %}
+
+
+ {% include '@RichIdTermsModule/admin/list/_partial/_header.html.twig' %}
+
+
+ {% include '@RichIdTermsModule/admin/list/_partial/_body.html.twig' %}
+
+
diff --git a/src/Infrastructure/Resources/views/admin/list/_partial/_header.html.twig b/src/Infrastructure/Resources/views/admin/list/_partial/_header.html.twig
new file mode 100644
index 0000000..282367a
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/list/_partial/_header.html.twig
@@ -0,0 +1,3 @@
+
diff --git a/src/Infrastructure/Resources/views/admin/list/_partial/_styles.html.twig b/src/Infrastructure/Resources/views/admin/list/_partial/_styles.html.twig
new file mode 100644
index 0000000..79db3aa
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/list/_partial/_styles.html.twig
@@ -0,0 +1,41 @@
+
diff --git a/src/Infrastructure/Resources/views/admin/list/_partial/_terms-card.html.twig b/src/Infrastructure/Resources/views/admin/list/_partial/_terms-card.html.twig
new file mode 100644
index 0000000..2941fa1
--- /dev/null
+++ b/src/Infrastructure/Resources/views/admin/list/_partial/_terms-card.html.twig
@@ -0,0 +1,12 @@
+{% if terms is defined %}
+
+ {% if hasSignedTerms(terms.slug, subject.termsSubjectType, subject.termsSubjectIdentifier) == constant('RichId\\TermsModuleBundle\\Domain\\UseCase\\HasSignedTerms::HAS_SIGNED_OLD_VERSION') %}
+
{{ 'terms_module.sign.new_version'|trans({}, 'terms_module') }}
+ {% endif %}
+
+
{{ lastTermsVersion.title }}
+
{{ lastTermsVersion.content|raw }}
+
+
+
+
+
diff --git a/src/Infrastructure/Resources/views/sign/_partial/_content.html.twig b/src/Infrastructure/Resources/views/sign/_partial/_content.html.twig
new file mode 100644
index 0000000..ccc30fb
--- /dev/null
+++ b/src/Infrastructure/Resources/views/sign/_partial/_content.html.twig
@@ -0,0 +1,13 @@
+{% include '@RichIdTermsModule/_styles.html.twig' %}
+{% include '@RichIdTermsModule/sign/_partial/_styles.html.twig' %}
+{% include '@RichIdTermsModule/_loader.html.twig' %}
+
+