css and removing the "left" and "right" classes from templates
This commit is contained in:
parent
3b62ebd0ee
commit
ba4e6668aa
@ -32,16 +32,14 @@ body {
|
|||||||
font-size: 100% !important;
|
font-size: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.field--type-entity-reference-revisions .field__items {
|
.field.field--type-entity-reference {
|
||||||
margin-left: 2em;
|
margin: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.field--type-entity-reference-revisions .field__items .field{
|
.field {
|
||||||
margin-top: 0;
|
width: 30%;
|
||||||
}
|
display: inline-block;
|
||||||
.field--type-entity-reference-revisions .field__items .paragraph{
|
padding: 0.4em;
|
||||||
margin-top: 0.5em;
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove this confusing thing from user creation page */
|
/* remove this confusing thing from user creation page */
|
||||||
|
@ -275,18 +275,12 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
|
|||||||
$fields['created'] = BaseFieldDefinition::create('created')
|
$fields['created'] = BaseFieldDefinition::create('created')
|
||||||
->setLabel(t('Created on'))
|
->setLabel(t('Created on'))
|
||||||
->setDescription(t('When the case was created.'))
|
->setDescription(t('When the case was created.'))
|
||||||
->setDisplayOptions('view', [
|
->setDisplayConfigurable('view', true);
|
||||||
'label' => 'above',
|
|
||||||
'weight' => 80,
|
|
||||||
]);
|
|
||||||
|
|
||||||
$fields['changed'] = BaseFieldDefinition::create('changed')
|
$fields['changed'] = BaseFieldDefinition::create('changed')
|
||||||
->setLabel(t('Last updated'))
|
->setLabel(t('Last updated'))
|
||||||
->setDescription(t('When the case was last edited.'))
|
->setDescription(t('When the case was last edited.'))
|
||||||
->setDisplayOptions('view', [
|
->setDisplayConfigurable('view', true);
|
||||||
'label' => 'above',
|
|
||||||
'weight' => 80,
|
|
||||||
]);
|
|
||||||
|
|
||||||
$fields['revision_translation_affected'] = BaseFieldDefinition::create('boolean')
|
$fields['revision_translation_affected'] = BaseFieldDefinition::create('boolean')
|
||||||
->setLabel(t('Revision translation affected'))
|
->setLabel(t('Revision translation affected'))
|
||||||
|
@ -16,18 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
<div{{ attributes.addClass('oc_case') }}>
|
<div{{ attributes.addClass('oc_case') }}>
|
||||||
<h2>{{ title }}</h2>
|
{% if content %}
|
||||||
<div class="oc_entity">
|
{{- content -}}
|
||||||
<div class="left">
|
{% endif %}
|
||||||
{{ base_fields.actors_involved }}
|
|
||||||
{{ base_fields.changed }}
|
|
||||||
{{ base_fields.created }}
|
|
||||||
{{ base_fields.user_id }}
|
|
||||||
</div>
|
|
||||||
<div class="right">
|
|
||||||
{% for field in other_fields %}
|
|
||||||
{{ field }}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -246,10 +246,10 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
|
|||||||
->setSetting('target_type', 'user')
|
->setSetting('target_type', 'user')
|
||||||
->setSetting('handler', 'default')
|
->setSetting('handler', 'default')
|
||||||
->setTranslatable(TRUE)
|
->setTranslatable(TRUE)
|
||||||
|
->setDisplayConfigurable('view', true)
|
||||||
->setDisplayOptions('view', [
|
->setDisplayOptions('view', [
|
||||||
'label' => 'inline',
|
'label' => 'above',
|
||||||
'type' => 'author',
|
'type' => 'author',
|
||||||
'weight' => -4,
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$fields['name'] = BaseFieldDefinition::create('string')
|
$fields['name'] = BaseFieldDefinition::create('string')
|
||||||
|
@ -16,19 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
<div{{ attributes.addClass('oc_activity') }}>
|
<div{{ attributes.addClass('oc_activity') }}>
|
||||||
<h2>{{ title }}</h2>
|
{% if content %}
|
||||||
<div class="oc_entity">
|
{{- content -}}
|
||||||
<div class="left">
|
{% endif %}
|
||||||
{{ base_fields.actors_involved }}
|
|
||||||
{{ base_fields.activity_date_time }}
|
|
||||||
{{ base_fields.description }}
|
|
||||||
{{ base_fields.time_taken }}
|
|
||||||
{{ base_fields.user_id }}
|
|
||||||
</div>
|
|
||||||
<div class="right">
|
|
||||||
{% for field in other_fields %}
|
|
||||||
{{ field }}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,20 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
<div{{ attributes.addClass('oc_actor') }}>
|
<div{{ attributes.addClass('oc_actor') }}>
|
||||||
<div class="oc_entity">
|
{% if content %}
|
||||||
<div class="left">
|
{{- content -}}
|
||||||
{% for field in fields_other_than_contact_details %}
|
{% endif %}
|
||||||
{{ field }}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<div class="right">
|
|
||||||
<div id ="contact_details">
|
|
||||||
<h2>Contact Details</h2>
|
|
||||||
<a class="field" href="/opencase/oc_actor/{{ id }}/contact_details_history">See history</a>
|
|
||||||
{% for field in contact_details %}
|
|
||||||
{{ field }}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user