doleancer admin fixes
This commit is contained in:
parent
2420bfb8b1
commit
b21dd2cb2e
|
@ -8,7 +8,7 @@ dependencies:
|
||||||
- field.field.node.cercle_politique.field_comment_enonce_doleance
|
- field.field.node.cercle_politique.field_comment_enonce_doleance
|
||||||
- field.field.node.cercle_politique.field_comment_formule_decision
|
- field.field.node.cercle_politique.field_comment_formule_decision
|
||||||
- field.field.node.cercle_politique.field_decision_formulee
|
- field.field.node.cercle_politique.field_decision_formulee
|
||||||
- field.field.node.cercle_politique.field_enquete
|
- field.field.node.cercle_politique.field_enquete_terraindevie
|
||||||
- field.field.node.cercle_politique.field_entite_adresse_application
|
- field.field.node.cercle_politique.field_entite_adresse_application
|
||||||
- field.field.node.cercle_politique.field_entite_adresse_doleance
|
- field.field.node.cercle_politique.field_entite_adresse_doleance
|
||||||
- field.field.node.cercle_politique.field_entites_decisionnaires
|
- field.field.node.cercle_politique.field_entites_decisionnaires
|
||||||
|
@ -45,7 +45,7 @@ third_party_settings:
|
||||||
group_probleme_enquete:
|
group_probleme_enquete:
|
||||||
children:
|
children:
|
||||||
- field_le_probleme
|
- field_le_probleme
|
||||||
- field_enquete
|
- field_enquete_terraindevie
|
||||||
label: 'Probleme & enquête'
|
label: 'Probleme & enquête'
|
||||||
region: content
|
region: content
|
||||||
parent_name: group_tabs
|
parent_name: group_tabs
|
||||||
|
@ -353,9 +353,9 @@ content:
|
||||||
rows: 5
|
rows: 5
|
||||||
placeholder: ''
|
placeholder: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
field_enquete:
|
field_enquete_terraindevie:
|
||||||
type: text_textarea
|
type: string_textarea
|
||||||
weight: 2
|
weight: 36
|
||||||
region: content
|
region: content
|
||||||
settings:
|
settings:
|
||||||
rows: 5
|
rows: 5
|
||||||
|
@ -404,8 +404,8 @@ content:
|
||||||
duplicate: duplicate
|
duplicate: duplicate
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
field_le_probleme:
|
field_le_probleme:
|
||||||
type: text_textarea
|
type: string_textarea
|
||||||
weight: 1
|
weight: 35
|
||||||
region: content
|
region: content
|
||||||
settings:
|
settings:
|
||||||
rows: 5
|
rows: 5
|
||||||
|
|
|
@ -8,7 +8,7 @@ dependencies:
|
||||||
- field.field.node.cercle_politique.field_comment_enonce_doleance
|
- field.field.node.cercle_politique.field_comment_enonce_doleance
|
||||||
- field.field.node.cercle_politique.field_comment_formule_decision
|
- field.field.node.cercle_politique.field_comment_formule_decision
|
||||||
- field.field.node.cercle_politique.field_decision_formulee
|
- field.field.node.cercle_politique.field_decision_formulee
|
||||||
- field.field.node.cercle_politique.field_enquete
|
- field.field.node.cercle_politique.field_enquete_terraindevie
|
||||||
- field.field.node.cercle_politique.field_entite_adresse_application
|
- field.field.node.cercle_politique.field_entite_adresse_application
|
||||||
- field.field.node.cercle_politique.field_entite_adresse_doleance
|
- field.field.node.cercle_politique.field_entite_adresse_doleance
|
||||||
- field.field.node.cercle_politique.field_entites_decisionnaires
|
- field.field.node.cercle_politique.field_entites_decisionnaires
|
||||||
|
@ -66,12 +66,12 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 109
|
weight: 109
|
||||||
region: content
|
region: content
|
||||||
field_enquete:
|
field_enquete_terraindevie:
|
||||||
type: text_default
|
type: basic_string
|
||||||
label: above
|
label: above
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 102
|
weight: 120
|
||||||
region: content
|
region: content
|
||||||
field_entite_adresse_application:
|
field_entite_adresse_application:
|
||||||
type: text_default
|
type: text_default
|
||||||
|
@ -104,11 +104,11 @@ content:
|
||||||
weight: 103
|
weight: 103
|
||||||
region: content
|
region: content
|
||||||
field_le_probleme:
|
field_le_probleme:
|
||||||
type: text_default
|
type: basic_string
|
||||||
label: above
|
label: above
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 101
|
weight: 119
|
||||||
region: content
|
region: content
|
||||||
field_mise_en_oeuvre_decision:
|
field_mise_en_oeuvre_decision:
|
||||||
type: entity_reference_revisions_entity_view
|
type: entity_reference_revisions_entity_view
|
||||||
|
|
|
@ -9,7 +9,7 @@ dependencies:
|
||||||
- field.field.node.cercle_politique.field_comment_enonce_doleance
|
- field.field.node.cercle_politique.field_comment_enonce_doleance
|
||||||
- field.field.node.cercle_politique.field_comment_formule_decision
|
- field.field.node.cercle_politique.field_comment_formule_decision
|
||||||
- field.field.node.cercle_politique.field_decision_formulee
|
- field.field.node.cercle_politique.field_decision_formulee
|
||||||
- field.field.node.cercle_politique.field_enquete
|
- field.field.node.cercle_politique.field_enquete_terraindevie
|
||||||
- field.field.node.cercle_politique.field_entite_adresse_application
|
- field.field.node.cercle_politique.field_entite_adresse_application
|
||||||
- field.field.node.cercle_politique.field_entite_adresse_doleance
|
- field.field.node.cercle_politique.field_entite_adresse_doleance
|
||||||
- field.field.node.cercle_politique.field_entites_decisionnaires
|
- field.field.node.cercle_politique.field_entites_decisionnaires
|
||||||
|
@ -50,7 +50,7 @@ hidden:
|
||||||
field_comment_enonce_doleance: true
|
field_comment_enonce_doleance: true
|
||||||
field_comment_formule_decision: true
|
field_comment_formule_decision: true
|
||||||
field_decision_formulee: true
|
field_decision_formulee: true
|
||||||
field_enquete: true
|
field_enquete_terraindevie: true
|
||||||
field_entite_adresse_application: true
|
field_entite_adresse_application: true
|
||||||
field_entite_adresse_doleance: true
|
field_entite_adresse_doleance: true
|
||||||
field_entites_decisionnaires: true
|
field_entites_decisionnaires: true
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
uuid: 390d33a7-b878-4759-a6e8-126ff3739754
|
uuid: 4c942826-9687-4f26-aad8-5cedb2fec9d9
|
||||||
langcode: fr
|
langcode: fr
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.storage.node.field_enquete
|
- field.storage.node.field_enquete_terraindevie
|
||||||
- node.type.cercle_politique
|
- node.type.cercle_politique
|
||||||
module:
|
id: node.cercle_politique.field_enquete_terraindevie
|
||||||
- allowed_formats
|
field_name: field_enquete_terraindevie
|
||||||
- text
|
|
||||||
third_party_settings:
|
|
||||||
allowed_formats:
|
|
||||||
allowed_formats:
|
|
||||||
- linkonly
|
|
||||||
id: node.cercle_politique.field_enquete
|
|
||||||
field_name: field_enquete
|
|
||||||
entity_type: node
|
entity_type: node
|
||||||
bundle: cercle_politique
|
bundle: cercle_politique
|
||||||
label: 'L’enquête menée sur le terrain de vie'
|
label: 'L’enquête menée sur le terrain de vie'
|
||||||
|
@ -23,4 +16,4 @@ translatable: false
|
||||||
default_value: { }
|
default_value: { }
|
||||||
default_value_callback: ''
|
default_value_callback: ''
|
||||||
settings: { }
|
settings: { }
|
||||||
field_type: text_long
|
field_type: string_long
|
|
@ -1,26 +1,19 @@
|
||||||
uuid: 31da45f1-cc01-4efb-9f8d-9b163724d298
|
uuid: 57028fe9-9ff0-4c0e-8712-6604f1032773
|
||||||
langcode: fr
|
langcode: fr
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.storage.node.field_le_probleme
|
- field.storage.node.field_le_probleme
|
||||||
- node.type.cercle_politique
|
- node.type.cercle_politique
|
||||||
module:
|
|
||||||
- allowed_formats
|
|
||||||
- text
|
|
||||||
third_party_settings:
|
|
||||||
allowed_formats:
|
|
||||||
allowed_formats:
|
|
||||||
- linkonly
|
|
||||||
id: node.cercle_politique.field_le_probleme
|
id: node.cercle_politique.field_le_probleme
|
||||||
field_name: field_le_probleme
|
field_name: field_le_probleme
|
||||||
entity_type: node
|
entity_type: node
|
||||||
bundle: cercle_politique
|
bundle: cercle_politique
|
||||||
label: 'Le problème (injustice, indignation, plainte…)'
|
label: 'Le problème (injustice, indignation, plainte…) '
|
||||||
description: 'Quel est le caillou dans votre chaussure qui vous fait mal quand vous marchez ? '
|
description: 'Quel est le caillou dans votre chaussure qui vous fait mal quand vous marchez ?'
|
||||||
required: false
|
required: false
|
||||||
translatable: false
|
translatable: false
|
||||||
default_value: { }
|
default_value: { }
|
||||||
default_value_callback: ''
|
default_value_callback: ''
|
||||||
settings: { }
|
settings: { }
|
||||||
field_type: text_long
|
field_type: string_long
|
||||||
|
|
|
@ -16,7 +16,7 @@ id: node.cercle_politique.field_oui_nouvelle_situation
|
||||||
field_name: field_oui_nouvelle_situation
|
field_name: field_oui_nouvelle_situation
|
||||||
entity_type: node
|
entity_type: node
|
||||||
bundle: cercle_politique
|
bundle: cercle_politique
|
||||||
label: 'Si oui ou partiellement, quelle est la nouvelle situation ?'
|
label: 'Si oui, quelle est la nouvelle situation ?'
|
||||||
description: ''
|
description: ''
|
||||||
required: false
|
required: false
|
||||||
translatable: false
|
translatable: false
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
uuid: 94dc72a4-4224-469e-ae0b-90920a7e6783
|
uuid: cb11a557-a87f-4ad9-a8e9-2d02152e001e
|
||||||
langcode: fr
|
langcode: fr
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
module:
|
module:
|
||||||
- node
|
- node
|
||||||
- text
|
id: node.field_enquete_terraindevie
|
||||||
id: node.field_enquete
|
field_name: field_enquete_terraindevie
|
||||||
field_name: field_enquete
|
|
||||||
entity_type: node
|
entity_type: node
|
||||||
type: text_long
|
type: string_long
|
||||||
settings: { }
|
settings:
|
||||||
module: text
|
case_sensitive: false
|
||||||
|
module: core
|
||||||
locked: false
|
locked: false
|
||||||
cardinality: 1
|
cardinality: 1
|
||||||
translatable: true
|
translatable: true
|
|
@ -1,16 +1,16 @@
|
||||||
uuid: 1202a85b-a0f1-4a74-932f-4f17db3ca82b
|
uuid: 53170e37-a0bb-4915-bf95-2e6a6e3971e0
|
||||||
langcode: fr
|
langcode: fr
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
module:
|
module:
|
||||||
- node
|
- node
|
||||||
- text
|
|
||||||
id: node.field_le_probleme
|
id: node.field_le_probleme
|
||||||
field_name: field_le_probleme
|
field_name: field_le_probleme
|
||||||
entity_type: node
|
entity_type: node
|
||||||
type: text_long
|
type: string_long
|
||||||
settings: { }
|
settings:
|
||||||
module: text
|
case_sensitive: false
|
||||||
|
module: core
|
||||||
locked: false
|
locked: false
|
||||||
cardinality: 1
|
cardinality: 1
|
||||||
translatable: true
|
translatable: true
|
||||||
|
|
|
@ -102,9 +102,9 @@ function ouatt_admin_inline_entity_form_entity_form_alter(&$entity_form, &$form_
|
||||||
* @param \Drupal\Core\Form\FormStateInterface $form_state
|
* @param \Drupal\Core\Form\FormStateInterface $form_state
|
||||||
* The form state of the parent form.
|
* The form state of the parent form.
|
||||||
*/
|
*/
|
||||||
function ouatt_admin_inline_entity_form_reference_form_alter(&$reference_form, &$form_state) {
|
// function ouatt_admin_inline_entity_form_reference_form_alter(&$reference_form, &$form_state) {
|
||||||
$t="t";
|
// $t="t";
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alter the fields used to represent an entity in the IEF table.
|
* Alter the fields used to represent an entity in the IEF table.
|
||||||
|
@ -121,9 +121,9 @@ function ouatt_admin_inline_entity_form_reference_form_alter(&$reference_form, &
|
||||||
*
|
*
|
||||||
* @see \Drupal\inline_entity_form\InlineFormInterface::getTableFields()
|
* @see \Drupal\inline_entity_form\InlineFormInterface::getTableFields()
|
||||||
*/
|
*/
|
||||||
function ouatt_admin_inline_entity_form_table_fields_alter($fields, $context) {
|
// function ouatt_admin_inline_entity_form_table_fields_alter($fields, $context) {
|
||||||
$t="t";
|
// $t="t";
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide post-processing of auto generated titles (labels).
|
* Provide post-processing of auto generated titles (labels).
|
||||||
|
|
|
@ -120,12 +120,27 @@ function ouatminimal_preprocess_toolbar(&$variables) {
|
||||||
|
|
||||||
function ouatminimal_preprocess_form_element(&$variables) {
|
function ouatminimal_preprocess_form_element(&$variables) {
|
||||||
$element = $variables['element'];
|
$element = $variables['element'];
|
||||||
|
|
||||||
if(isset($variables['description_display'])){
|
if(isset($variables['description_display'])){
|
||||||
$variables['description_display']="before";
|
$variables['description_display']="before";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepares variables for text format wrapper templates.
|
||||||
|
*
|
||||||
|
* Default template: text-format-wrapper.html.twig.
|
||||||
|
*
|
||||||
|
* @param array $variables
|
||||||
|
* An associative array containing:
|
||||||
|
* - attributes: An associative array containing properties of the element.
|
||||||
|
*/
|
||||||
|
// function ouatminimal_preprocess_text_format_wrapper(&$variables) {
|
||||||
|
// $t="t";
|
||||||
|
// // $children = $variables['children'];
|
||||||
|
// }
|
||||||
|
|
||||||
function ouatminimal_preprocess_textarea(&$variables) {
|
function ouatminimal_preprocess_textarea(&$variables) {
|
||||||
$element = $variables['element'];
|
$element = $variables['element'];
|
||||||
unset($variables['element']['#cols']);
|
unset($variables['element']['#cols']);
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
#}
|
#}
|
||||||
<div class="js-text-format-wrapper text-format-wrapper js-form-item form-item">
|
<div class="js-text-format-wrapper text-format-wrapper js-form-item form-item">
|
||||||
{{ children }}
|
{{ children }}
|
||||||
{% if description %}
|
{# {% if description %}
|
||||||
{%
|
{%
|
||||||
set classes = [
|
set classes = [
|
||||||
aria_description ? 'description',
|
aria_description ? 'description',
|
||||||
]
|
]
|
||||||
%}
|
%}
|
||||||
<div{{ attributes.addClass(classes) }}>{{ description }}</div>
|
<div{{ attributes.addClass(classes) }}>{{ description }}</div>
|
||||||
{% endif %}
|
{% endif %} #}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue