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

Archived changes

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