Sfoglia il codice sorgente

admin can access and edit subscriptions

bach 1 anno fa
parent
commit
895be04b6b

+ 25 - 13
config/sync/structure_sync.data.yml

@@ -1,3 +1,16 @@
+blocks:
+  -
+    info: contact
+    langcode: en
+    uuid: e202a879-0a6d-4819-a171-15dfac8d7567
+    bundle: simple_text
+    revision_id: null
+    rev_id_current: null
+    fields:
+      field_content:
+        -
+          value: "<p>contact <a href=\"mailto:hello@materio.com\" title=\"hello@materio.com\">hello@materio.com</a> | developed by&nbsp;<a href=\"https://figureslibres.cc/\" rel=\"noopener\" target=\"_blank\" title=\"figureslibres.cc\">figureslibres.cc</a></p>\r\n"
+          format: wysiwyg
 menus:
   -
     menu_name: header
@@ -56,7 +69,7 @@ menus:
     description: null
     enabled: '1'
     expanded: '0'
-    weight: '-50'
+    weight: '-49'
     langcode: en
     uuid: 27e5f4e1-1ea7-425e-aabb-81404d40a864
   -
@@ -104,19 +117,18 @@ menus:
     description: null
     enabled: '1'
     expanded: '0'
-    weight: '-49'
+    weight: '-50'
     langcode: en
     uuid: 5b14e014-7aba-4e1b-a619-45177584cf80
-blocks:
   -
-    info: contact
+    menu_name: editors
+    title: Subscriptions
+    parent: editors_menus.commerce
+    uri: 'internal:/admin/commerce/subscriptions'
+    link_title: ''
+    description: null
+    enabled: '1'
+    expanded: '0'
+    weight: '-45'
     langcode: en
-    uuid: e202a879-0a6d-4819-a171-15dfac8d7567
-    bundle: simple_text
-    revision_id: null
-    rev_id_current: null
-    fields:
-      field_content:
-        -
-          value: "<p>contact <a href=\"mailto:hello@materio.com\" title=\"hello@materio.com\">hello@materio.com</a> | developed by&nbsp;<a href=\"https://figureslibres.cc/\" rel=\"noopener\" target=\"_blank\" title=\"figureslibres.cc\">figureslibres.cc</a></p>\r\n"
-          format: wysiwyg
+    uuid: b87ef278-a92a-47b5-adc2-2bea12fd9b07

+ 2 - 0
config/sync/user.role.admin.yml

@@ -64,6 +64,7 @@ permissions:
   - 'access commerce_license overview'
   - 'access commerce_order overview'
   - 'access commerce_product overview'
+  - 'access commerce_subscription overview'
   - 'access files overview'
   - 'access materio search'
   - 'access profile overview'
@@ -76,6 +77,7 @@ permissions:
   - 'administer commerce_license'
   - 'administer commerce_order'
   - 'administer commerce_payment'
+  - 'administer commerce_subscription'
   - 'administer newsletters'
   - 'administer nodes'
   - 'administer simplenews subscriptions'

+ 235 - 4
config/sync/views.view.commerce_subscriptions.yml

@@ -469,7 +469,7 @@ display:
           click_sort_column: value
           type: timestamp
           settings:
-            date_format: custom
+            date_format: short
             custom_date_format: 'M jS Y H:i:s'
             timezone: ''
           group_column: value
@@ -536,7 +536,7 @@ display:
           click_sort_column: value
           type: timestamp
           settings:
-            date_format: custom
+            date_format: short
             custom_date_format: 'M jS Y H:i:s'
             timezone: ''
           group_column: value
@@ -625,7 +625,7 @@ display:
         type: basic
         options:
           submit_button: Apply
-          reset_button: false
+          reset_button: true
           reset_button_label: Reset
           exposed_sorts_label: 'Sort by'
           expose_sort_order: true
@@ -698,6 +698,58 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
+        mail:
+          id: mail
+          table: users_field_data
+          field: mail
+          relationship: uid
+          group_type: group
+          admin_label: ''
+          entity_type: user
+          entity_field: mail
+          plugin_id: string
+          operator: contains
+          value: ''
+          group: 1
+          exposed: true
+          expose:
+            operator_id: mail_op
+            label: Courriel
+            description: ''
+            use_operator: false
+            operator: mail_op
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: mail
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              unverified: '0'
+              anonymous: '0'
+              free_user: '0'
+              contact_company: '0'
+              alpha_testeur: '0'
+              student: '0'
+              adherent: '0'
+              translator: '0'
+              admin_showroom: '0'
+              admin: '0'
+              root: '0'
+            placeholder: ''
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
         state:
           id: state
           table: commerce_subscription
@@ -741,6 +793,122 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
+        starts:
+          id: starts
+          table: commerce_subscription
+          field: starts
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: commerce_subscription
+          entity_field: starts
+          plugin_id: date
+          operator: between
+          value:
+            min: ''
+            max: ''
+            value: ''
+            type: date
+          group: 1
+          exposed: true
+          expose:
+            operator_id: starts_op
+            label: Starts
+            description: ''
+            use_operator: false
+            operator: starts_op
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: starts
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              unverified: '0'
+              anonymous: '0'
+              free_user: '0'
+              contact_company: '0'
+              alpha_testeur: '0'
+              student: '0'
+              adherent: '0'
+              translator: '0'
+              admin_showroom: '0'
+              admin: '0'
+              root: '0'
+            min_placeholder: 'AAAA-MM-JJ HH:MM:SS'
+            max_placeholder: 'AAAA-MM-JJ HH:MM:SS'
+            placeholder: ''
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+        ends:
+          id: ends
+          table: commerce_subscription
+          field: ends
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: commerce_subscription
+          entity_field: ends
+          plugin_id: date
+          operator: between
+          value:
+            min: ''
+            max: ''
+            value: ''
+            type: date
+          group: 1
+          exposed: true
+          expose:
+            operator_id: ends_op
+            label: Ends
+            description: ''
+            use_operator: false
+            operator: ends_op
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: ends
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              unverified: '0'
+              anonymous: '0'
+              free_user: '0'
+              contact_company: '0'
+              alpha_testeur: '0'
+              student: '0'
+              adherent: '0'
+              translator: '0'
+              admin_showroom: '0'
+              admin: '0'
+              root: '0'
+            min_placeholder: 'AAAA-MM-JJ HH:MM:SS'
+            max_placeholder: 'AAAA-MM-JJ HH:MM:SS'
+            placeholder: ''
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
       filter_groups:
         operator: AND
         groups:
@@ -854,7 +1022,70 @@ display:
           required: false
       header: {  }
       footer: {  }
-      display_extenders: {  }
+      display_extenders:
+        views_ef_fieldset:
+          views_ef_fieldset:
+            enabled: 0
+            options:
+              sort:
+                root:
+                  container_type: details
+                  title: Filtres
+                  description: ''
+                  open: '1'
+                  weight: '0'
+                  id: root
+                  pid: ''
+                  depth: '0'
+                  type: container
+                uid:
+                  weight: '-6'
+                  id: uid
+                  pid: root
+                  depth: '1'
+                  type: filter
+                state:
+                  weight: '-6'
+                  id: state
+                  pid: root
+                  depth: '1'
+                  type: filter
+                submit:
+                  weight: '-6'
+                  id: submit
+                  pid: root
+                  depth: '1'
+                  type: buttons
+                container-0:
+                  container_type: details
+                  title: 'Container 0'
+                  description: ''
+                  weight: '-5'
+                  open: 0
+                  id: container-0
+                  pid: root
+                  depth: '1'
+                  type: container
+                container-1:
+                  container_type: details
+                  title: 'Container 1'
+                  description: ''
+                  weight: '-4'
+                  open: 0
+                  id: container-1
+                  pid: root
+                  depth: '1'
+                  type: container
+                container-2:
+                  container_type: details
+                  title: 'Container 2'
+                  description: ''
+                  weight: '-3'
+                  open: 0
+                  id: container-2
+                  pid: root
+                  depth: '1'
+                  type: container
     cache_metadata:
       max-age: -1
       contexts:

+ 1 - 1
config/sync/views.view.licences.yml

@@ -1241,7 +1241,7 @@ display:
         type: normal
         title: Licences
         description: ''
-        weight: 3
+        weight: -44
         expanded: false
         menu_name: editors
         parent: editors_menus.commerce