Skip to content

Commit

Permalink
Merge pull request #6 from contao-estatemanager/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
doishub authored Jul 31, 2020
2 parents 747b0a7 + ac39b2d commit 5984a36
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$GLOBALS['TL_DCA']['tl_module']['fields']['statusTokens']['options'][] = 'project';

// Add module palette for projects
$GLOBALS['TL_DCA']['tl_module']['palettes']['realEstateProjectList'] = '{title_legend},name,headline,type;{config_legend},numberOfItems,perPage,filterMode,childrenObserveFiltering,addSorting;{redirect_legend},jumpTo,jumpToProject;{item_extension_legend:hide},addProvider,addContactPerson;{template_legend:hide},statusTokens,customTpl,realEstateProjectTemplate,realEstateTemplate,realEstateProviderTemplate,realEstateContactPersonTemplate;{image_legend:hide},imgSize,projectImgSize,providerImgSize,contactPersonImgSize;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
$GLOBALS['TL_DCA']['tl_module']['palettes']['realEstateProjectList'] = '{title_legend},name,headline,type;{config_legend},realEstateGroups,numberOfItems,perPage,filterMode,childrenObserveFiltering,addSorting;{redirect_legend},jumpTo,jumpToProject;{item_extension_legend:hide},addProvider,addContactPerson;{template_legend:hide},statusTokens,customTpl,realEstateProjectTemplate,realEstateTemplate,realEstateProviderTemplate,realEstateContactPersonTemplate;{image_legend:hide},imgSize,projectImgSize,providerImgSize,contactPersonImgSize;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';

// Add field
$GLOBALS['TL_DCA']['tl_module']['fields']['showProjects'] = array
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/contao/dca/tl_real_estate.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_real_estate']['project_price_from'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('maxlength'=>20, 'tl_class'=>'w50'),
'eval' => array('maxlength'=>20, 'tl_class'=>'w50 clr'),
'sql' => "decimal(10,2) NULL default NULL"
);

Expand Down Expand Up @@ -181,4 +181,4 @@ public function addProjectInformation($row, $label, Contao\DataContainer $dc, $a

return $args;
}
}
}
50 changes: 49 additions & 1 deletion src/Resources/contao/languages/de/tl_real_estate.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,54 @@
<source>Specify the status/phase in which the project is currently in.</source>
<target>Geben Sie hier den Status / die Phase an, in der sich das Projekt befindet</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_from.0">
<source>Price from</source>
<target>Preis ab</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_from.1">
<source>Define here the price of the cheapest housing unit of this project to display a from-to price.</source>
<target>Definieren Sie hier den Preis der günstigsten Wohneinheit dieses Projektes um einen von-bis Preis anzeigen zu lassen.</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_to.0">
<source>Price to</source>
<target>Preis bis</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_to.1">
<source>Define the price of the most expensive housing unit of this project to display a from-to price.</source>
<target>Definieren Sie hier den Preis der teuersten Wohneinheit dieses Projektes um einen von-bis Preis anzeigen zu lassen.</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_from.0">
<source>Area from</source>
<target>Fläche ab</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_from.1">
<source>Define the area of the smallest housing unit of this project to display a from-to area.</source>
<target>Definieren Sie hier die Fläche der kleinsten Wohneinheit dieses Projektes um eine von-bis Fläche anzeigen zu lassen.</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_to.0">
<source>Area to</source>
<target>Fläche bis</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_to.1">
<source>Define the area of the largest housing unit of this project to display a from-to area.</source>
<target>Definieren Sie hier die Fläche der größten Wohneinheit dieses Projektes um eine von-bis Fläche anzeigen zu lassen.</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_from.0">
<source>Room from</source>
<target>Zimmer ab</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_from.1">
<source>Define here the smallest number of rooms of the housing units of this project to display from-to rooms.</source>
<target>Definieren Sie hier die kleinste Anzahl der Zimmer der Wohneinheiten dieses Projektes um von-bis Zimmer anzeigen zu lassen.</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_to.0">
<source>Room to</source>
<target>Zimmer bis</target>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_to.1">
<source>Define here the largest number of rooms of the housing units of this project to display from-to rooms.</source>
<target>Definieren Sie hier die größte Anzahl der Zimmer der Wohneinheiten dieses Projektes um von-bis Zimmer anzeigen zu lassen.</target>
</trans-unit>
</body>
</file>
</xliff>
</xliff>
38 changes: 37 additions & 1 deletion src/Resources/contao/languages/en/tl_real_estate.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,42 @@
<trans-unit id="tl_real_estate.completionStatus.1">
<source>Specify the status/phase in which the project is currently in.</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_from.0">
<source>Price from</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_from.1">
<source>Define here the price of the cheapest housing unit of this project to display a from-to price.</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_to.0">
<source>Price to</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_price_to.1">
<source>Define the price of the most expensive housing unit of this project to display a from-to price.</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_from.0">
<source>Area from</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_from.1">
<source>Define the area of the smallest housing unit of this project to display a from-to area.</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_to.0">
<source>Area to</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_area_to.1">
<source>Define the area of the largest housing unit of this project to display a from-to area.</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_from.0">
<source>Room from</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_from.1">
<source>Define here the smallest number of rooms of the housing units of this project to display from-to rooms.</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_to.0">
<source>Room to</source>
</trans-unit>
<trans-unit id="tl_real_estate.project_room_to.1">
<source>Define here the largest number of rooms of the housing units of this project to display from-to rooms.</source>
</trans-unit>
</body>
</file>
</xliff>
</xliff>

0 comments on commit 5984a36

Please sign in to comment.