Bladeren bron

concernement form improved

bach 1 jaar geleden
bovenliggende
commit
8ee327f2bf

+ 1 - 0
src/composer.json

@@ -31,6 +31,7 @@
         "drupal/genpass": "^1.1",
         "drupal/graphql": "4.x-dev@dev",
         "drupal/group": "3.0.x-dev@dev",
+        "drupal/hide_revision_field": "^2.2",
         "drupal/mail_login": "^2.6",
         "drupal/paragraphs": "^1.15",
         "drupal/paragraphs_modal_edit": "^1.1",

+ 45 - 1
src/composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "f874a1a846eacffa0d31c1312d5e160a",
+    "content-hash": "017c14c4d3314080d32106bcdc238fd2",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -5870,6 +5870,50 @@
                 "issues": "https://drupal.org/project/issues/group"
             }
         },
+        {
+            "name": "drupal/hide_revision_field",
+            "version": "2.2.0",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/hide_revision_field.git",
+                "reference": "8.x-2.2"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/hide_revision_field-8.x-2.2.zip",
+                "reference": "8.x-2.2",
+                "shasum": "fd26577c66b6105e2a7cb1df16b2270cf21dfc04"
+            },
+            "require": {
+                "drupal/core": "^8 || ^9"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "8.x-2.2",
+                    "datestamp": "1606459114",
+                    "security-coverage": {
+                        "status": "covered",
+                        "message": "Covered by Drupal's security advisory policy"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "NickDickinsonWilde",
+                    "homepage": "https://www.drupal.org/user/3094661"
+                }
+            ],
+            "description": "Controls visibility of the revision field on content add/edit forms.",
+            "homepage": "https://www.drupal.org/project/hide_revision_field",
+            "support": {
+                "source": "https://git.drupalcode.org/project/hide_revision_field"
+            }
+        },
         {
             "name": "drupal/honeypot",
             "version": "2.1.2",

+ 3 - 23
src/config/sync/core.entity_form_display.node.concernement.default.yml

@@ -136,12 +136,6 @@ targetEntityType: node
 bundle: concernement
 mode: default
 content:
-  created:
-    type: datetime_timestamp
-    weight: 3
-    region: content
-    settings: {  }
-    third_party_settings: {  }
   field_caillou:
     type: string_textarea
     weight: 2
@@ -219,13 +213,6 @@ content:
     settings:
       progress_indicator: throbber
     third_party_settings: {  }
-  status:
-    type: boolean_checkbox
-    weight: 1
-    region: content
-    settings:
-      display_label: true
-    third_party_settings: {  }
   title:
     type: string_textfield
     weight: 0
@@ -239,19 +226,12 @@ content:
         maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
       advanced_text_formatter:
         show_token_tree: 0
-  uid:
-    type: entity_reference_autocomplete
-    weight: 2
-    region: content
-    settings:
-      match_operator: CONTAINS
-      match_limit: 10
-      size: 60
-      placeholder: ''
-    third_party_settings: {  }
 hidden:
+  created: true
   langcode: true
   path: true
   promote: true
+  status: true
   sticky: true
+  uid: true
   url_redirects: true

+ 9 - 0
src/web/themes/custom/ouatminimal_theme/css/ouatminimal.css

@@ -23,6 +23,15 @@
   display: none;
 }
 
+div[data-drupal-selector=edit-actions] {
+  display: flex;
+  flex-direction: column;
+}
+div[data-drupal-selector=edit-actions] > * {
+  width: 10em;
+  margin: 0 0 0.5em !important;
+}
+
 .adminimal input.form-autocomplete, .adminimal input.form-text, .adminimal input.form-tel, .adminimal input.form-email, .adminimal input.form-url, .adminimal input.form-search, .adminimal input.form-number, .adminimal input.form-color, .adminimal input.form-file, .adminimal input.form-date, .adminimal input.form-time, .adminimal textarea.form-textarea {
   background-color: #fff;
   border-radius: 3px;

File diff suppressed because it is too large
+ 0 - 0
src/web/themes/custom/ouatminimal_theme/css/ouatminimal.css.map


+ 1 - 0
src/web/themes/custom/ouatminimal_theme/ouatminimal.theme

@@ -60,6 +60,7 @@ function ouatminimal_form_node_form_alter(&$form, FormStateInterface $form_state
 
   // unset($form['advanced']);
   $form['advanced']['#type'] = 'container';
+  $form['advanced']['#access'] = FALSE;
   $form['meta']['#type'] = 'container';
   $form['meta']['#access'] = TRUE;
   $form['meta']['changed']['#wrapper_attributes']['class'][] = 'container-inline';

+ 9 - 0
src/web/themes/custom/ouatminimal_theme/scss/ouatminimal.scss

@@ -27,6 +27,15 @@
   }
 }
 
+div[data-drupal-selector="edit-actions"]{
+  display: flex;
+  flex-direction: column;
+  >*{
+    width:10em;
+    margin: 0 0 0.5em!important;
+  }
+}
+
 .adminimal input.form-autocomplete, .adminimal input.form-text, .adminimal input.form-tel, .adminimal input.form-email, .adminimal input.form-url, .adminimal input.form-search, .adminimal input.form-number, .adminimal input.form-color, .adminimal input.form-file, .adminimal input.form-date, .adminimal input.form-time, .adminimal textarea.form-textarea{
   background-color: #fff;
   border-radius: 3px;

Some files were not shown because too many files changed in this diff