Browse Source

form + archi

kevin tessier 4 years ago
parent
commit
729e8469b1

+ 4 - 0
5da5c493d20b6.csv

@@ -0,0 +1,4 @@
+Prénom,Nom
+Kevin,Tessier
+Kevin,Tessier
+kevin,Tessier

+ 18 - 0
tmp/forms/863481143c0148f790fb54f6722093b7/j4yksoepezkyowm0gmir/index.yaml

@@ -0,0 +1,18 @@
+form: custom_form
+unique_id: j4yksoepezkyowm0gmir
+url: 'http://127.0.0.1/formulaire'
+user: null
+timestamps:
+  created: 1571171025
+  updated: 1571171025
+data: null
+files:
+  my-file:
+    AA_I.pdf:
+      name: AA_I.pdf
+      type: application/pdf
+      tmp_name: phph3HXHZ
+      size: 435764
+      path: user/data/files/AA_I.pdf
+  my-file/original:
+    AA_I.pdf: null

+ 18 - 0
tmp/forms/863481143c0148f790fb54f6722093b7/u3s5h8hg6trvmjyqmovz/index.yaml

@@ -0,0 +1,18 @@
+form: custom_form
+unique_id: u3s5h8hg6trvmjyqmovz
+url: 'http://127.0.0.1/formulaire'
+user: null
+timestamps:
+  created: 1571170811
+  updated: 1571170811
+data: null
+files:
+  my-file:
+    AA_I.pdf:
+      name: AA_I.pdf
+      type: application/pdf
+      tmp_name: php1QwBZr
+      size: 435764
+      path: user/data/files/AA_I.pdf
+  my-file/original:
+    AA_I.pdf: null

BIN
tmp/forms/863481143c0148f790fb54f6722093b7/u3s5h8hg6trvmjyqmovz/php1QwBZr


+ 81 - 0
user/config/groups.yaml

@@ -0,0 +1,81 @@
+root:
+  groupname: root
+  access:
+    site:
+      login: 'true'
+    admin:
+      super: 'true'
+      login: 'true'
+      cache: 'true'
+      configuration: 'true'
+      configuration_system: 'true'
+      configuration_site: 'true'
+      configuration_media: 'true'
+      configuration_info: 'true'
+      settings: 'true'
+      pages: 'true'
+      maintenance: 'true'
+      statistics: 'true'
+      plugins: 'true'
+      themes: 'true'
+      tools: 'true'
+      users: 'true'
+      data-manager: 'true'
+    admin-addon-user-manager:
+      users: 'true'
+      groups: 'true'
+      users_expert: 'true'
+Administrator:
+  groupname: Administrator
+  access:
+    site:
+      login: 'true'
+    admin:
+      super: 'false'
+      login: 'true'
+      cache: 'true'
+      configuration: 'true'
+      configuration_system: 'false'
+      configuration_site: 'true'
+      configuration_media: 'false'
+      configuration_info: 'false'
+      settings: 'true'
+      pages: 'true'
+      maintenance: 'false'
+      statistics: 'false'
+      plugins: 'false'
+      themes: 'false'
+      tools: 'false'
+      users: 'true'
+      data-manager: 'true'
+    admin-addon-user-manager:
+      users: 'true'
+      groups: 'false'
+      users_expert: 'false'
+Writter:
+  groupname: Writter
+  access:
+    site:
+      login: 'true'
+    admin:
+      super: 'false'
+      login: 'true'
+      cache: 'false'
+      configuration: 'false'
+      configuration_system: 'false'
+      configuration_site: 'false'
+      configuration_media: 'false'
+      configuration_info: 'false'
+      settings: 'false'
+      pages: 'true'
+      maintenance: 'false'
+      statistics: 'false'
+      plugins: 'false'
+      themes: 'false'
+      tools: 'false'
+      users: 'false'
+      data-manager: 'false'
+    admin-addon-user-manager:
+      users: 'false'
+      groups: 'false'
+      users_expert: 'false'

+ 6 - 0
user/config/plugins/admin-addon-user-manager.yaml

@@ -0,0 +1,6 @@
+enabled: true
+default_list_style: list
+pagination:
+  per_page: '20'
+custom_permissions:
+  - admin.data-manager

+ 57 - 0
user/config/plugins/admin.yaml

@@ -0,0 +1,57 @@
+enabled: true
+route: /admin
+cache_enabled: false
+theme: grav
+content_padding: true
+twofa_enabled: true
+log_viewer_files:
+  - grav
+  - email
+sidebar:
+  activate: tab
+  hover_delay: 100
+  size: auto
+dashboard:
+  days_of_stats: 7
+widgets:
+  dashboard-maintenance: true
+  dashboard-statistics: true
+  dashboard-notifications: false
+  dashboard-feed: false
+  dashboard-pages: true
+pages:
+  show_parents: both
+  show_modular: true
+session:
+  timeout: 1800
+warnings:
+  delete_page: true
+edit_mode: normal
+frontend_preview_target: inline
+show_github_msg: true
+pages_list_display_field: title
+google_fonts: false
+admin_icons: line-awesome
+enable_auto_updates_check: true
+notifications:
+  feed: false
+  dashboard: false
+  plugins: false
+  themes: false
+popularity:
+  enabled: true
+  ignore:
+    - '/test*'
+    - /modular
+  history:
+    daily: '30'
+    monthly: '12'
+    visitors: '20'
+pagemedia:
+  resize_width: 0
+  resize_height: 0
+  res_min_width: 0
+  res_min_height: 0
+  res_max_width: 0
+  res_max_height: 0
+  resize_quality: 0.8

+ 1 - 1
user/config/plugins/email.yaml

@@ -11,7 +11,7 @@ mailer:
   smtp:
     server: smtp.mailtrap.io
     port: 587
-    encryption: tls
+    encryption: none
     user: 5e920233e534b8
     password: a78fb10acda1fc
   sendmail:

BIN
user/pages/01.formulaire/AA_I.pdf


+ 56 - 0
user/pages/01.formulaire/form.md

@@ -0,0 +1,56 @@
+---
+title: formulaire
+aura:
+    pagetype: website
+form:
+    name: custom_form
+    fields:
+        name:
+            label: Name
+            placeholder: 'Enter your name'
+            autocomplete: 'on'
+            type: text
+            validate:
+                required: true
+        email:
+            label: Email
+            placeholder: 'Enter your email address'
+            type: email
+            validate:
+                required: true
+        my-file:
+            label: 'Add a file'
+            type: file
+            multiple: false
+            destination: user/data/files
+            accept:
+                - application/pdf
+                - application/x-pdf
+                - image/png
+                - text/plain
+    buttons:
+        -
+            type: submit
+            value: Envoyer
+    process:
+        -
+            email:
+                from: '{{ config.plugins.email.from }}'
+                to: '{{ config.plugins.email.to }}'
+                subject: '[inscriptions-] {{ form.value.name|e }}'
+                body: '{% include "forms/data.html.twig" %}'
+                attachments:
+                    - my-file
+        -
+            save:
+                fileprefix: inscriptions-
+                dateformat: Y-H-u
+                extension: txt
+                body: '{% include "forms/data.txt.twig" %}'
+        - null
+        -
+            message: 'Thank you for your feedback!'
+            reset: true
+---
+
+Salut, je suis la page formulaire

+ 17 - 0
user/pages/02.whats-on/blog.md

@@ -0,0 +1,17 @@
+---
+title: 'What''s On'
+show_sidebar: true
+content:
+    items:
+        - '@self.children'
+    limit: 5
+    order:
+        by: date
+        dir: desc
+    pagination: true
+    url_taxonomy_filters: true
+aura:
+    pagetype: website
+---
+
+Coactique aliquotiens nostri pedites ad eos persequendos scandere clivos sublimes etiam si lapsantibus plantis fruticeta prensando vel dumos ad vertices venerint summos, inter arta tamen et invia nullas acies explicare permissi nec firmare nisu valido gressus: hoste discursatore rupium abscisa volvente, ruinis ponderum inmanium consternuntur, aut ex necessitate ultima fortiter dimicante, superati periculose per prona discedunt.

+ 2 - 2
user/pages/07.visit-us/blog.md → user/pages/02.whats-on/events/blog.md

@@ -1,5 +1,6 @@
 ---
-title: 'Visit Us'
+title: Events
+visible: true
 content:
     items:
         - '@self.children'
@@ -13,4 +14,3 @@ aura:
     pagetype: website
 ---
 
-Salut, Visit Us

+ 6 - 0
user/pages/02.whats-on/events/event-15-11-12/item.md

@@ -0,0 +1,6 @@
+---
+title: 'Event 15/11/12'
+aura:
+    pagetype: website
+---
+

+ 17 - 0
user/pages/02.whats-on/exhibitions/blog.md

@@ -0,0 +1,17 @@
+---
+title: Exhibitions
+visible: false
+content:
+    items:
+        - '@self.children'
+    limit: 5
+    order:
+        by: date
+        dir: desc
+    pagination: true
+    url_taxonomy_filters: true
+aura:
+    pagetype: website
+---
+
+Salut page Exhibitions

+ 6 - 0
user/pages/02.whats-on/exhibitions/exhibitions-jean-marais/item.md

@@ -0,0 +1,6 @@
+---
+title: 'Exhibitions Jean marais'
+aura:
+    pagetype: website
+---
+

+ 0 - 47
user/pages/03.formulaire/form.md

@@ -1,47 +0,0 @@
----
-title: formulaire
-aura:
-    pagetype: website
-form:
-    name: "Demande_inscriptions"
-    template: form-messages
-    refresh_prevention: true
-    fields:
-        -
-            name: Prénom
-            placeholder: Prénom
-            type: text
-            size: long
-            classes: fancy
-            validate:
-                required: true
-        -
-            name: Nom
-            placeholder: Nom
-            type: text
-            size: long
-            classes: fancy
-            validate:
-                required: true
-    buttons:
-        -
-            type: submit
-            value: Envoyer
-    process:
-        -
-            email:
-                from: '{{ config.plugins.email.from }}'
-                to: '{{ config.plugins.email.to }}'  
-                subject: '[inscriptions N°] {{ form.value.name|e }}'
-                body: '{% include ''forms/data.html.twig'' %}'
-        -
-            save:
-                fileprefix: inscriptions_N°-
-                dateformat: Y-H-u
-                extension: txt
-                body: '{% include ''forms/data.txt.twig'' %}'
-        -
-            message: 'Merci, votre demande de devis à bien été envoyé ! Elle sera traité dans les prochains jours.'
----
-
-Salut, je suis la page formulaire

+ 16 - 0
user/pages/03.studio-programme/blog.md

@@ -0,0 +1,16 @@
+---
+title: 'Studio Programme'
+content:
+    items:
+        - '@self.children'
+    limit: 5
+    order:
+        by: date
+        dir: desc
+    pagination: true
+    url_taxonomy_filters: true
+aura:
+    pagetype: website
+---
+
+Coactique aliquotiens nostri pedites ad eos persequendos scandere clivos sublimes etiam si lapsantibus plantis fruticeta prensando vel dumos ad vertices venerint summos, inter arta tamen et invia nullas acies explicare permissi nec firmare nisu valido gressus: hoste discursatore rupium abscisa volvente, ruinis ponderum inmanium consternuntur, aut ex necessitate ultima fortiter dimicante, superati periculose per prona discedunt.

+ 7 - 0
user/pages/03.studio-programme/open-day/item.md

@@ -0,0 +1,7 @@
+---
+title: 'Open day'
+aura:
+    pagetype: website
+---
+
+Salut je suis une page open day

+ 2 - 2
user/pages/04.whats-on/blog.md → user/pages/04.news/blog.md

@@ -1,5 +1,5 @@
 ---
-title: 'What''s On'
+title: News
 content:
     items:
         - '@self.children'
@@ -13,4 +13,4 @@ aura:
     pagetype: website
 ---
 
-Salut, What's On
+Salut,  News

+ 1 - 1
user/pages/06.in-residence/blog.md → user/pages/05.visit-us/blog.md

@@ -13,4 +13,4 @@ aura:
     pagetype: website
 ---
 
-Salut,  About
+Salut About

+ 2 - 2
user/pages/05.studio-programme/blog.md → user/pages/06.visit/blog.md

@@ -1,5 +1,5 @@
 ---
-title: 'Studio Programme'
+title: Visit
 content:
     items:
         - '@self.children'
@@ -13,4 +13,4 @@ aura:
     pagetype: website
 ---
 
-Salut, Studio Programme
+Salut visit

+ 10 - 8
user/themes/vocurations/templates/blog.html.twig

@@ -32,11 +32,14 @@
 
         {% embed 'partials/layout.html.twig' with {blog: page} %}
             {% block item %}
-
                 <div class="bricklayer">
-                {% for child in collection %}
-                    {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
-                {% endfor %}
+                  {% for child in collection %}
+
+                      {% if child.template == 'item' %}
+                        {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
+                      {% endif %}
+
+                  {% endfor %}
                 </div>
 
                 {% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
@@ -48,7 +51,9 @@
             {% endblock %}
 
             {% block sidebar %}
-                {% include 'partials/sidebar.html.twig' %}
+              {% if header.show_sidebar == true %}
+                  {% include 'partials/sidebar.html.twig' %}
+                {% endif %}
             {% endblock %}
         {% endembed %}
         </section>
@@ -58,6 +63,3 @@
         var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
     </script>
 {% endblock %}
-
-
-

+ 7 - 0
user/themes/vocurations/templates/partials/sidebar.html.twig

@@ -1,6 +1,13 @@
 {% set feed_url = blog.url == '/' or blog.url == base_url_relative ? (base_url_relative~'/'~blog.slug) : blog.url %}
 {% set new_base_url = blog.url == '/' ? '' : blog.url %}
 
+{% if condition %}{% endif %}
+<div class="sidebar-content">
+  {% for child in collection %}
+      {% include 'partials/blog/title.html.twig' with {blog: page, page: child} %}
+  {% endfor %}
+</div>
+
 {% if config.plugins.simplesearch.enabled %}
 <div class="sidebar-content">
     {% include 'partials/simplesearch_searchbox.html.twig' %}