Commit 59cef5f2 authored by Dainis Abols's avatar Dainis Abols
Browse files

Dates update

v4.2.3
parent 70ce68a6
...@@ -215,7 +215,7 @@ class NoticesController extends ActionController ...@@ -215,7 +215,7 @@ class NoticesController extends ActionController
$noticesTable = 'tx_lunotices_domain_model_notices'; $noticesTable = 'tx_lunotices_domain_model_notices';
$fileRepository = GeneralUtility::makeInstance(FileRepository::class); $fileRepository = GeneralUtility::makeInstance(FileRepository::class);
return $fileRepository->findByRelation($noticesTable, 'media', $noticeId); return $fileRepository->findByRelation($noticesTable, 'files', $noticeId);
} }
/** /**
......
...@@ -34,11 +34,9 @@ return [ ...@@ -34,11 +34,9 @@ return [
'config' => [ 'config' => [
'type' => 'input', 'type' => 'input',
'renderType' => 'inputDateTime', 'renderType' => 'inputDateTime',
'size' => 8, 'size' => 16,
'max' => 20,
'eval' => 'datetime,int', 'eval' => 'datetime,int',
'default' => '0', 'default' => '0',
'checkbox' => '0',
], ],
], ],
'endtime' => [ 'endtime' => [
...@@ -47,10 +45,8 @@ return [ ...@@ -47,10 +45,8 @@ return [
'config' => [ 'config' => [
'type' => 'input', 'type' => 'input',
'renderType' => 'inputDateTime', 'renderType' => 'inputDateTime',
'size' => 8, 'size' => 16,
'max' => 20,
'eval' => 'datetime,int', 'eval' => 'datetime,int',
'checkbox' => '0',
'default' => '0', 'default' => '0',
'range' => [ 'range' => [
'upper' => mktime(3, 14, 7, 1, 19, 2038), 'upper' => mktime(3, 14, 7, 1, 19, 2038),
......
...@@ -3,15 +3,27 @@ ...@@ -3,15 +3,27 @@
<f:layout name="Default"/> <f:layout name="Default"/>
<f:section name="main"> <f:section name="main">
<style> <f:if condition="{dates}">
.notice_summary { <f:then>
width: 400px; <style>
line-height:1.2em; .notice_summary {
height:3.6em; width: 400px;
overflow:hidden; line-height:1.2em;
text-overflow: ellipsis; }
} </style>
</style> </f:then>
<f:else>
<style>
.notice_summary {
width: 400px;
line-height:1.2em;
height:3.6em;
overflow:hidden;
text-overflow: ellipsis;
}
</style>
</f:else>
</f:if>
<f:if condition="{dates}"> <f:if condition="{dates}">
<select id="date_selector"> <select id="date_selector">
...@@ -77,6 +89,11 @@ ...@@ -77,6 +89,11 @@
<div class="notice_summary"> <div class="notice_summary">
<f:format.raw>{notice.summary}</f:format.raw> <f:format.raw>{notice.summary}</f:format.raw>
</div> </div>
<f:if condition="{dates}">
<div class="notice_summary">
<f:format.raw>{notice.body}</f:format.raw>
</div>
</f:if>
</li> </li>
</f:for> </f:for>
</ul> </ul>
......
...@@ -76,6 +76,7 @@ DIV.single_notice DIV.notice_title h2, DIV.notice_navi { ...@@ -76,6 +76,7 @@ DIV.single_notice DIV.notice_title h2, DIV.notice_navi {
DIV.single_notice DIV.notice_date{ DIV.single_notice DIV.notice_date{
clear:both; clear:both;
float:right; float:right;
margin-right: 60px;
} }
DIV.single_notice DIV.notice_body, DIV.single_notice DIV.notice_body,
......
{ {
"name": "luitd/lu-notices", "name": "luitd/lu-notices",
"version": "4.2.1", "version": "4.2.3",
"description": "General notice publisher for internal portal", "description": "General notice publisher for internal portal",
"type": "typo3-cms-extension", "type": "typo3-cms-extension",
"keywords": [ "keywords": [
......
...@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [ ...@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_company' => 'University of Latvia', 'author_company' => 'University of Latvia',
'state' => 'stable', 'state' => 'stable',
'clearCacheOnLoad' => true, 'clearCacheOnLoad' => true,
'version' => '4.2.1', 'version' => '4.2.3',
'constraints' => [ 'constraints' => [
'depends' => [ 'depends' => [
'typo3' => '9.5.0-10.9.99', 'typo3' => '9.5.0-10.9.99',
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
## Version ## Version
4.2.1 4.2.3
## Dependencies ## Dependencies
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment