Compare commits

..

11 Commits

6 changed files with 81 additions and 16 deletions

View File

@ -7,8 +7,21 @@
#block-accreditationcount {
position: absolute;
right: 50%;
/*background-color: #fff;*/
background-image: linear-gradient(to top, #2a419a 0%, #1d84c3 100%);
border-radius: 5px;
}
#block-accreditationcount table {
border: 0px #2a419a;
background-color: #1d84c3;
}
#block-accreditationcount h1 {
color: white;
}
#block-accreditationcount td {
color: black;
}
@ -133,3 +146,50 @@ table.views-table.views-view-table caption {
form.oc-organisation-relation-form tr:first-child {
display: none;
}
/* trav styling */
.site-branding {
margin-top: -2.20em !important;
}
.follow-up-due {
}
tr:nth-child(even) {
background-color: #fefefe;
}
tr:nth-child(odd) {
background-color: #eee;
}
.Off {
color:gray;
}
.Off a {
color:gray;
background-color:black;
}
.field--type-entity-reference-revisions {
border-radius: 25px;
border: 2px solid #2A419A;
padding: 10px;
border-width: thin;
}
.follow-ups-due table{
background-color: #FB8A4F;
}
.views-field-field-client-substatus {
font-weight: bold;
}
thead {
background-color: #1d84c3;
}

View File

@ -234,7 +234,7 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setLabel(t('Title'))
->setRevisionable(TRUE)
->setSettings([
'max_length' => 50,
'max_length' => 120,
'text_processing' => 0,
])
->setDefaultValue('')

View File

@ -277,9 +277,16 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
$fields['oc_provider'] = \Drupal\Core\Field\BaseFieldDefinition::create('entity_reference')
->setLabel(t('Provider'))
->setSetting('target_type', 'oc_actor') // TODO: this should eventually point to a Provider rather than an Actor
->setSetting('handler', 'default')
->setSetting('handler', 'views')
->setTranslatable(TRUE)
->setCardinality(1)
->setSetting('handler_settings', [
'view' => [
'view_name' => 'case_providers',
'display_name' => 'entity_reference_1',
'arguments' => [],
]
])
->setDisplayConfigurable("view", true)
->setDisplayConfigurable("form", true)
->setRequired(TRUE);

View File

@ -225,25 +225,14 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
$fields['activity_date_time'] = BaseFieldDefinition::create('datetime')
->setLabel(t('Date and time'))
->setRevisionable(TRUE)
->setRequired(TRUE)
->setDefaultValueCallback('\Drupal\opencase_entities\Entity\OCActivity::currentDateTime')
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setSettings([
'datetime_type' => 'date'
])
->setDisplayOptions('view', [
'label' => 'above',
'type' => 'datetime_default',
'settings' => [
'format_type' => 'short',
],
'weight' => -3,
])
->setDisplayOptions('form', [
'type' => 'datetime_default',
'weight' => -3,
]);
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
$fields['status'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Publishing status'))

View File

@ -70,3 +70,8 @@ opencase.manage_event_types:
parent: opencase.opencase_admin_menu
url: internal:/admin/opencase/oc_event_type
weight: 1
opencase.reporting:
title: 'Reporting'
menu_name: opencase
route_name: opencase.opencase_reporting_menu
weight: 0

View File

@ -10,3 +10,7 @@ opencase.opencase_add_new_things_menu:
path: '/'
requirements:
_permission: 'use opencase'
opencase.opencase_reporting_menu:
path: '/'
requirements:
_permission: 'use opencase'