Commit 5531986c authored by Dainis Abols's avatar Dainis Abols
Browse files

Archived changes

4.3.0
parent 79ad2b42
......@@ -54,19 +54,31 @@ return [
],
],
'date_terminated' => [
'date_archived' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lu_nas/Resources/Private/Language/locallang.xlf:document.date_terminated',
'label' => 'LLL:EXT:lu_nas/Resources/Private/Language/locallang.xlf:document.date_archived',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'date,int,required',
'eval' => 'date,int',
'size' => 16,
'default' => 0,
],
],
'archived' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lu_nas/Resources/Private/Language/locallang.xlf:document.archived',
'config' => [
'type' => 'check',
'size' => 16,
'default' => '0',
],
],
'order_doc_id' => [
'exclude' => true,
'label' => 'LLL:EXT:lu_nas/Resources/Private/Language/locallang.xlf:document.document_ordertype',
......@@ -228,12 +240,15 @@ return [
],
'types' => [
'0' => ['showitem' => 'title, --palette--;;group-1, --palette--;;group-2, --palette--;;filenames, --palette--;;group-3, related_from'],
'0' => ['showitem' => '--palette--;;group-0, --palette--;;group-1, --palette--;;group-2, --palette--;;filenames, --palette--;;group-3, related_from'],
],
'palettes' => [
'group-0' => [
'showitem' => 'title, public',
],
'group-1' => [
'showitem' => 'number, date_accepted, date_terminated, public',
'showitem' => 'number, date_accepted, date_archived, archived',
],
'group-2' => [
'showitem' => 'order_doc_id, document_type_id, issuer_id, status_id',
......
......@@ -20,9 +20,12 @@
<trans-unit id="document.date_accepted">
<source><![CDATA[Pieņemts]]></source>
</trans-unit>
<trans-unit id="document.date_terminated">
<trans-unit id="document.date_archived">
<source><![CDATA[Aktuāls līdz]]></source>
</trans-unit>
<trans-unit id="document.archived">
<source><![CDATA[Arhivēts]]></source>
</trans-unit>
<trans-unit id="document.document_ordertype">
<source><![CDATA[Rīkojuma dokumenta veids]]></source>
</trans-unit>
......@@ -107,6 +110,9 @@
<trans-unit id="form.search">
<source><![CDATA[Meklēt]]></source>
</trans-unit>
<trans-unit id="form.archived">
<source><![CDATA[Rādīt arhivētos]]></source>
</trans-unit>
<trans-unit id="form.status">
<source><![CDATA[Statuss]]></source>
</trans-unit>
......
......@@ -25,10 +25,14 @@
<source><![CDATA[Pieņemts]]></source>
<target><![CDATA[Pieņemts]]></target>
</trans-unit>
<trans-unit id="document.date_terminated">
<trans-unit id="document.date_archived">
<source><![CDATA[Aktuāls līdz]]></source>
<target><![CDATA[Aktuāls līdz]]></target>
</trans-unit>
<trans-unit id="document.archived">
<source><![CDATA[Arhivēts]]></source>
<target><![CDATA[Arhivēts]]></target>
</trans-unit>
<trans-unit id="document.document_type" approved="yes">
<source><![CDATA[Dokumenta tips]]></source>
<target><![CDATA[Dokumenta tips]]></target>
......@@ -137,6 +141,10 @@
<source><![CDATA[Statuss]]></source>
<target><![CDATA[Statuss]]></target>
</trans-unit>
<trans-unit id="form.arcived" approved="yes">
<source><![CDATA[Rādīt arhivētos]]></source>
<target><![CDATA[Rādīt arhivētos]]></target>
</trans-unit>
<trans-unit id="form.study_guide" approved="yes">
<source><![CDATA[Studiju ceļvedis]]></source>
<target><![CDATA[Studiju ceļvedis]]></target>
......
......@@ -101,6 +101,15 @@
</div>
</div>
<!-- Show/hide archived -->
<div class="form-group">
<label class="control-label" for="nas-form-status">
<f:translate key="form.archived"/>
</label>
<f:form.checkbox id="nas-form-status" value="1" class="form-control" checked="{filter.archived} == 1" name="Filter[archived]" />
</div>
</div>
<f:if condition="{filter.facet_field}">
<div class="form-group">
<div class="col-xs-8">
......
......@@ -32,6 +32,13 @@
</tr>
</f:if>
<!-- Show status -->
<f:if condition="{document.archived}">
<tr>
<td style="color:red;"><f:translate key="document.archived" /></td><td></td>
</tr>
</f:if>
<!-- Show Order type -->
<f:if condition="{document.orderType}">
<tr>
......
{
"name": "luitd/lu-nas",
"version": "4.2.8",
"version": "4.3.0",
"description": "Latvijas Universitātes Normatīvo Aktu sistēmas TYPO3 spraudnis",
"type": "typo3-cms-extension",
"keywords": [
......@@ -17,7 +17,7 @@
"license": "GPL-3.0-or-later",
"require": {
"typo3/cms-core": "^10",
"luitd/lu-api": "^2.7"
"luitd/lu-api": "^2.8"
},
"autoload": {
"psr-4": {
......
......@@ -9,11 +9,11 @@ $EM_CONF[$_EXTKEY] = [
'author_email' => 'dainis.abols@lu.lv',
'state' => 'stable',
'clearCacheOnLoad' => true,
'version' => '4.2.8',
'version' => '4.3.0',
'constraints' => [
'depends' => [
'typo3' => '10.4.0-10.9.99',
'lu_api' => '2.7.0-2.99.99',
'lu_api' => '2.8.0-2.99.99',
],
],
'autoload' => [
......
......@@ -10,7 +10,8 @@ CREATE TABLE `tx_lunas_domain_model_document`
`document_type_id` INT(11) DEFAULT NULL,
`number` VARCHAR(255) DEFAULT NULL,
`date_accepted` INT(11) DEFAULT NULL,
`date_terminated` INT(11) DEFAULT NULL,
`date_archived` INT(11) DEFAULT NULL,
`archived` TINYINT(1) DEFAULT '0',
`issuer_id` INT(11) DEFAULT NULL,
`status_id` INT(11) DEFAULT NULL,
`filename_lv` VARCHAR(255) DEFAULT NULL,
......
......@@ -4,7 +4,7 @@ TYPO3 Extension for Regulations (NAS)
## Version
4.2.8
4.3.0
## Dependecies
......
Supports Markdown
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