node revisions (historique) fixed #2257
This commit is contained in:
parent
ff6a9285db
commit
1a13e60a38
@ -30,7 +30,7 @@ third_party_settings:
|
|||||||
- group_ateliers
|
- group_ateliers
|
||||||
- group_puissance_d_agir
|
- group_puissance_d_agir
|
||||||
- group_doleancer
|
- group_doleancer
|
||||||
- group_confidentialite
|
- group_revision
|
||||||
label: Tabs
|
label: Tabs
|
||||||
region: content
|
region: content
|
||||||
parent_name: ''
|
parent_name: ''
|
||||||
@ -105,21 +105,6 @@ third_party_settings:
|
|||||||
formatter: closed
|
formatter: closed
|
||||||
description: ''
|
description: ''
|
||||||
required_fields: true
|
required_fields: true
|
||||||
group_confidentialite:
|
|
||||||
children:
|
|
||||||
- field_confidentialite
|
|
||||||
label: Confidentialité
|
|
||||||
region: content
|
|
||||||
parent_name: group_tabs
|
|
||||||
weight: 18
|
|
||||||
format_type: tab
|
|
||||||
format_settings:
|
|
||||||
classes: ''
|
|
||||||
show_empty_fields: false
|
|
||||||
id: ''
|
|
||||||
formatter: closed
|
|
||||||
description: ''
|
|
||||||
required_fields: true
|
|
||||||
group_doleancer:
|
group_doleancer:
|
||||||
children:
|
children:
|
||||||
- field_doleancer
|
- field_doleancer
|
||||||
@ -150,6 +135,21 @@ third_party_settings:
|
|||||||
formatter: closed
|
formatter: closed
|
||||||
description: ''
|
description: ''
|
||||||
required_fields: true
|
required_fields: true
|
||||||
|
group_revision:
|
||||||
|
children:
|
||||||
|
- revision_log
|
||||||
|
label: revision
|
||||||
|
region: content
|
||||||
|
parent_name: group_tabs
|
||||||
|
weight: 18
|
||||||
|
format_type: tab
|
||||||
|
format_settings:
|
||||||
|
classes: ''
|
||||||
|
show_empty_fields: false
|
||||||
|
id: ''
|
||||||
|
formatter: closed
|
||||||
|
description: ''
|
||||||
|
required_fields: true
|
||||||
id: node.concernement.default
|
id: node.concernement.default
|
||||||
targetEntityType: node
|
targetEntityType: node
|
||||||
bundle: concernement
|
bundle: concernement
|
||||||
@ -244,6 +244,14 @@ content:
|
|||||||
rows: 5
|
rows: 5
|
||||||
placeholder: ''
|
placeholder: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
|
revision_log:
|
||||||
|
type: string_textarea
|
||||||
|
weight: 19
|
||||||
|
region: content
|
||||||
|
settings:
|
||||||
|
rows: 5
|
||||||
|
placeholder: ''
|
||||||
|
third_party_settings: { }
|
||||||
title:
|
title:
|
||||||
type: string_textfield
|
type: string_textfield
|
||||||
weight: 0
|
weight: 0
|
||||||
@ -262,7 +270,6 @@ hidden:
|
|||||||
langcode: true
|
langcode: true
|
||||||
path: true
|
path: true
|
||||||
promote: true
|
promote: true
|
||||||
revision_log: true
|
|
||||||
status: true
|
status: true
|
||||||
sticky: true
|
sticky: true
|
||||||
uid: true
|
uid: true
|
||||||
|
@ -4,11 +4,14 @@ status: true
|
|||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- filter.format.wysiwyg
|
- filter.format.wysiwyg
|
||||||
|
- node.type.concernement
|
||||||
|
- node.type.entite
|
||||||
module:
|
module:
|
||||||
- devel
|
- devel
|
||||||
- filter
|
- filter
|
||||||
- graphql
|
- graphql
|
||||||
- group
|
- group
|
||||||
|
- node
|
||||||
- system
|
- system
|
||||||
- workflow
|
- workflow
|
||||||
_core:
|
_core:
|
||||||
@ -31,5 +34,7 @@ permissions:
|
|||||||
- 'execute ouatterrir arbitrary graphql requests'
|
- 'execute ouatterrir arbitrary graphql requests'
|
||||||
- 'execute ouatterrir persisted graphql requests'
|
- 'execute ouatterrir persisted graphql requests'
|
||||||
- 'use text format wysiwyg'
|
- 'use text format wysiwyg'
|
||||||
|
- 'view concernement revisions'
|
||||||
|
- 'view entite revisions'
|
||||||
- 'view published fil entities'
|
- 'view published fil entities'
|
||||||
- 'view search api pages'
|
- 'view search api pages'
|
||||||
|
@ -7,6 +7,8 @@ dependencies:
|
|||||||
- filter.format.wysiwyg
|
- filter.format.wysiwyg
|
||||||
- node.type.besoin
|
- node.type.besoin
|
||||||
- node.type.cercle_politique
|
- node.type.cercle_politique
|
||||||
|
- node.type.concernement
|
||||||
|
- node.type.entite
|
||||||
module:
|
module:
|
||||||
- devel
|
- devel
|
||||||
- filter
|
- filter
|
||||||
@ -50,6 +52,8 @@ permissions:
|
|||||||
- 'use chutier'
|
- 'use chutier'
|
||||||
- 'use text format linkonly'
|
- 'use text format linkonly'
|
||||||
- 'use text format wysiwyg'
|
- 'use text format wysiwyg'
|
||||||
|
- 'view concernement revisions'
|
||||||
|
- 'view entite revisions'
|
||||||
- 'view own unpublished chutier entities'
|
- 'view own unpublished chutier entities'
|
||||||
- 'view own unpublished composition entities'
|
- 'view own unpublished composition entities'
|
||||||
- 'view own unpublished fil entities'
|
- 'view own unpublished fil entities'
|
||||||
|
@ -59,9 +59,8 @@ function ouatminimal_form_node_form_alter(&$form, FormStateInterface $form_state
|
|||||||
$form['#attached']['library'][] = 'seven/node-form';
|
$form['#attached']['library'][] = 'seven/node-form';
|
||||||
|
|
||||||
if ($form["#form_id"] != 'node_static_edit_form') {
|
if ($form["#form_id"] != 'node_static_edit_form') {
|
||||||
// unset($form['advanced']);
|
|
||||||
$form['advanced']['#type'] = 'container';
|
$form['advanced']['#type'] = 'container';
|
||||||
$form['advanced']['#access'] = FALSE;
|
// $form['advanced']['#access'] = true;
|
||||||
$form['meta']['#type'] = 'container';
|
$form['meta']['#type'] = 'container';
|
||||||
$form['meta']['#access'] = TRUE;
|
$form['meta']['#access'] = TRUE;
|
||||||
$form['meta']['changed']['#wrapper_attributes']['class'][] = 'container-inline';
|
$form['meta']['changed']['#wrapper_attributes']['class'][] = 'container-inline';
|
||||||
@ -150,19 +149,19 @@ function ouatminimal_preprocess_textarea(&$variables) {
|
|||||||
// $variables['attributes']->setAttribute('cols', 40);
|
// $variables['attributes']->setAttribute('cols', 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ouatminimal_preprocess_node_edit_form__node_concernement(&$variables) {
|
// function ouatminimal_preprocess_node_edit_form__node_concernement(&$variables) {
|
||||||
// $variables['form']['advanced']['#group'] = "group_admin";
|
// // $variables['form']['advanced']['#group'] = "group_admin";
|
||||||
// $ph = $variables['form']['title']['widget'][0]['value']['#placeholder'];
|
// // $ph = $variables['form']['title']['widget'][0]['value']['#placeholder'];
|
||||||
// $variables['form']['title']['widget']['#description'] = $ph;
|
// // $variables['form']['title']['widget']['#description'] = $ph;
|
||||||
// $variables['form']['title']['widget'][0]['#description'] = $ph;
|
// // $variables['form']['title']['widget'][0]['#description'] = $ph;
|
||||||
// $variables['form']['title']['widget'][0]['value']['#description'] = $ph;
|
// // $variables['form']['title']['widget'][0]['value']['#description'] = $ph;
|
||||||
|
|
||||||
|
|
||||||
// $variables['form']['title']['widget']['#title'] = $ph;
|
// // $variables['form']['title']['widget']['#title'] = $ph;
|
||||||
// $variables['form']['title']['widget'][0]['#title'] = $ph;
|
// // $variables['form']['title']['widget'][0]['#title'] = $ph;
|
||||||
// $variables['form']['title']['widget'][0]['value']['#title'] = $ph;
|
// // $variables['form']['title']['widget'][0]['value']['#title'] = $ph;
|
||||||
// $variables['form']['title']['widget'][0]['value']['#placeholder'] = "";
|
// // $variables['form']['title']['widget'][0]['value']['#placeholder'] = "";
|
||||||
}
|
// }
|
||||||
|
|
||||||
function ouatminimal_preprocess_input(&$variables) {
|
function ouatminimal_preprocess_input(&$variables) {
|
||||||
$element = &$variables['element'];
|
$element = &$variables['element'];
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
<div class="layout-region layout-region-node-center clearfix">
|
<div class="layout-region layout-region-node-center clearfix">
|
||||||
<div class="layout-region layout-region-node-main">
|
<div class="layout-region layout-region-node-main">
|
||||||
{{ form|without('title','advanced', 'footer', 'actions', 'group_internal') }}
|
{{ form|without('title','advanced', 'footer', 'actions', 'group_internal') }}
|
||||||
{# {{ form|without('title','footer') }} #}
|
|
||||||
{# {{ form }} #}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layout-region layout-region-node-secondary">
|
<div class="layout-region layout-region-node-secondary">
|
||||||
{{ form.group_internal }}
|
{{ form.group_internal }}
|
||||||
@ -32,9 +30,9 @@
|
|||||||
{{ form.actions }}
|
{{ form.actions }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{# <div class="layout-region layout-region-node-footer">
|
<div class="layout-region layout-region-node-footer">
|
||||||
<div class="layout-region-node-footer__content">
|
<div class="layout-region-node-footer__content">
|
||||||
{{ form.footer }}
|
{{ form.footer }}
|
||||||
</div>
|
</div>
|
||||||
</div> #}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user