From c2b58d70cdc10eee175ae8b5b0081215e961f85b Mon Sep 17 00:00:00 2001 From: doishub Date: Wed, 24 Nov 2021 13:13:08 +0100 Subject: [PATCH] - Fix PHP warnings - When creating a new property, is directly directed to the new mask - Added list overview link - Added translations (en) --- composer.json | 2 +- .../BackendModule/BackendModuleController.php | 14 +- src/LayoutBuilder.php | 6 +- src/Resources/contao/config/config.php | 14 +- src/Resources/contao/dca/tl_real_estate.php | 42 ++-- .../de/backend_real_estate_management.xlf | 4 + .../en/backend_real_estate_management.xlf | 238 ++++++++++++++++++ .../languages/en/tl_estate_manager_addon.xlf | 13 + src/Resources/public/css/backend.css | 6 + src/Resources/public/css/backend.css.map | 2 +- src/Resources/public/css/backend.scss | 4 + .../views/be_real_estate_edit.html.twig | 5 +- 12 files changed, 311 insertions(+), 39 deletions(-) create mode 100644 src/Resources/contao/languages/en/backend_real_estate_management.xlf create mode 100644 src/Resources/contao/languages/en/tl_estate_manager_addon.xlf diff --git a/composer.json b/composer.json index 079127b..52f1ae6 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "php":"^7.4 || ^8.0", "contao/core-bundle":">=4.9", "oveleon/contao-be-field-dependency": ">=0.4", - "contao-estatemanager/core": "*" + "contao-estatemanager/core": ">=1.1" }, "require-dev": { "contao/manager-plugin": "^2.0", diff --git a/src/Controller/BackendModule/BackendModuleController.php b/src/Controller/BackendModule/BackendModuleController.php index 29a5f55..e2bace1 100644 --- a/src/Controller/BackendModule/BackendModuleController.php +++ b/src/Controller/BackendModule/BackendModuleController.php @@ -16,6 +16,7 @@ use Contao\Ajax; use Contao\Controller; use Contao\Environment; +use Contao\FilesModel; use Contao\Input; use Contao\Message; use Contao\System; @@ -89,8 +90,7 @@ public function __invoke($id): Response Controller::reload(); } - // Get real estate object - $realEstate = new RealEstate($this->objRealEstate); + $objFile = FilesModel::findByUuid($this->objRealEstate->titleImageSRC); // Render template return new Response($this->twig->render( @@ -98,11 +98,13 @@ public function __invoke($id): Response [ 'head' => [ 'title' => $this->translator->trans('backend_real_estate_management.title', [$id], 'contao_default'), - 'subtitle' => $realEstate->title, - 'image' => $realEstate->generateMainImage([50, 50]), + 'subtitle' => $this->objRealEstate->title, + 'image' => RealEstate::parseImageTemplate($objFile, [50, 50]), 'message' => Message::generate(), - 'classicLink' => '/contao?do=real_estate&act=edit&id='.$id.'&rt='.REQUEST_TOKEN, 'classicLabel' => $this->translator->trans('backend_real_estate_management.label_classic_link', [], 'contao_default'), + 'classicLink' => '/contao?do=real_estate&act=edit&id='.$id.'&rt='.REQUEST_TOKEN, + 'overviewLabel' => $this->translator->trans('backend_real_estate_management.label_overview_link', [], 'contao_default'), + 'overviewLink' => '/contao?do=real_estate&rt='.REQUEST_TOKEN, ], 'form' => [ 'id' => $id, @@ -110,7 +112,7 @@ public function __invoke($id): Response 'palette' => $this->adapter->getPalette(), 'label' => $this->translator->trans('backend_real_estate_management.label_submit', [], 'contao_default'), 'content' => $htmlContent, - ] + ], ] )); } diff --git a/src/LayoutBuilder.php b/src/LayoutBuilder.php index 145074e..66df91d 100644 --- a/src/LayoutBuilder.php +++ b/src/LayoutBuilder.php @@ -24,16 +24,16 @@ * * $layout->addSection('sectionAlias'); * $layout->addHtml(''); - * $layout->parse('sectionAlias'); // Returns => + * $layout->parse('sectionAlias'); // Returns => * * --- * * $layout->addSection('sectionAlias', 'div', ['class' => 'myClass']); // <- Set pointer to sectionAlias - * $layout->addSection('inputBag', 'nav'); // <- Set pointer to inputBag + * $layout->addSection('inputBag', 'nav'); // <- Set pointer to inputBag * * $layout->addHtml(''); * $layout->append('sectionAlias') - * $layout->parse('sectionAlias'); // Returns:
+ * $layout->parse('sectionAlias'); // Returns:
* * @author Daniele Sciannimanica */ diff --git a/src/Resources/contao/config/config.php b/src/Resources/contao/config/config.php index 7263054..087609d 100644 --- a/src/Resources/contao/config/config.php +++ b/src/Resources/contao/config/config.php @@ -87,7 +87,7 @@ ], 'geo' => [ 'breitengrad', - 'laengengrad' + 'laengengrad', ], ], 'prices' => [ @@ -234,7 +234,7 @@ 'gastroflaeche', 'gartenflaeche', 'kellerflaeche', - 'teilbarAb' + 'teilbarAb', ], 'quantity' => [ ['column' => 'right'], @@ -271,7 +271,7 @@ ], 'area_commerce' => [ 'flaechevon', - 'flaechebis' + 'flaechebis', ], 'area_investment' => [ ['column' => 'right'], @@ -283,8 +283,8 @@ 'area_props' => [ ['column' => 'right'], 'kubatur', - 'ausnuetzungsziffer' - ] + 'ausnuetzungsziffer', + ], ], 'texts' => [ 'objTitle' => [ @@ -400,7 +400,7 @@ 'extra' => [ 'geschlecht', 'stromanschlusswert', - ] + ], ], 'parking' => [ 'parking' => [ @@ -483,7 +483,7 @@ 'energiepassHwbklasse', 'energiepassFgeewert', 'energiepassFgeeklasse', - ] + ], ], 'files' => [ 'images' => [ diff --git a/src/Resources/contao/dca/tl_real_estate.php b/src/Resources/contao/dca/tl_real_estate.php index 4bef9db..0b84896 100644 --- a/src/Resources/contao/dca/tl_real_estate.php +++ b/src/Resources/contao/dca/tl_real_estate.php @@ -12,17 +12,35 @@ */ use Contao\BackendUser; +use Contao\Controller; +use Contao\Database; use Contao\Environment; -use Contao\StringUtil; use Contao\Image; +use Contao\StringUtil; + +$strEditRoute = '/contao/realestate/edit/'; -$GLOBALS['TL_DCA']['tl_real_estate']['list']['operations']['edit']['button_callback'] = static function(array $row, string $href, string $label, string $title, string $icon, string $attributes) +$onCreateCallback = static function ($table, $intId) use ($strEditRoute): void { + Database::getInstance()->prepare('UPDATE tl_real_estate SET tstamp=? WHERE id=?')->execute([time(), $intId]); + Controller::redirect($strEditRoute.$intId); +}; + +if (is_array($GLOBALS['TL_DCA']['tl_real_estate']['config']['oncreate_callback'] ?? null)) +{ + $GLOBALS['TL_DCA']['tl_real_estate']['config']['oncreate_callback'][] = $onCreateCallback; +} +else { + $GLOBALS['TL_DCA']['tl_real_estate']['config']['oncreate_callback'] = [$onCreateCallback]; +} + +$GLOBALS['TL_DCA']['tl_real_estate']['list']['operations']['edit']['button_callback'] = static function (array $row, string $href, string $label, string $title, string $icon, string $attributes) use ($strEditRoute) { $user = BackendUser::getInstance(); - return $user->canEditFieldsOf('tl_real_estate') ? ''.Image::getHtml($icon, $label).' ' : Image::getHtml(preg_replace('/\.svg$/i', '_.svg', $icon)).' '; + + return $user->canEditFieldsOf('tl_real_estate') ? ''.Image::getHtml($icon, $label).' ' : Image::getHtml(preg_replace('/\.svg$/i', '_.svg', $icon)).' '; }; -if (false !== strpos(Environment::get('requestUri'), '/contao/realestate/edit/')) +if (false !== strpos(Environment::get('requestUri'), $strEditRoute)) { // Load backend css / js $GLOBALS['TL_CSS'][] = 'bundles/estatemanagerbackendrealestatemanagement/css/backend.css'; @@ -76,18 +94,13 @@ $GLOBALS['TL_DCA']['tl_real_estate']['fields']['zinsTyp']['dependsOn'] = ['objektart' => 'zinshaus_renditeobjekt']; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['landTyp']['dependsOn'] = ['objektart' => 'land_und_forstwirtschaft']; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['freizeitTyp']['dependsOn'] = ['objektart' => 'freizeitimmobilie_gewerblich']; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['breitbandArt']['dependsOn'] = ['breitbandZugang' => 1]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['breitbandGeschw']['dependsOn'] = ['breitbandZugang' => 1]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['weitergabePositiv']['dependsOn'] = ['weitergabeGenerell' => 1]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['weitergabeNegativ']['dependsOn'] = ['weitergabeGenerell' => 1]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['verkaufstatus']['dependsOn'] = ['vermarktungsartKauf' => 1]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['vermietet']['dependsOn'] = ['vermarktungsartMietePacht' => 1]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['laufzeit']['dependsOn'] = ['vermarktungsartErbpacht' => 1]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['kaufpreis']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['kaufpreisAufAnfrage']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['kaufpreisnetto']['dependsOn'] = [$marketingBuy]; @@ -96,13 +109,11 @@ $GLOBALS['TL_DCA']['tl_real_estate']['fields']['provisionspflichtig']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['provisionTeilen']['dependsOn'] = ['provisionspflichtig' => 1]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['provisionTeilenWert']['dependsOn'] = ['provisionTeilen' => 1]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['innenCourtage']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['innenCourtageMwst']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['aussenCourtage']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['aussenCourtageMwst']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['courtageHinweis']['dependsOn'] = [$marketingBuy]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['nettorendite']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['nettorenditeSoll']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['nettorenditeIst']['dependsOn'] = [$marketingBuy]; @@ -110,21 +121,16 @@ $GLOBALS['TL_DCA']['tl_real_estate']['fields']['mieteinnahmenIstPeriode']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['mieteinnahmenSoll']['dependsOn'] = [$marketingBuy]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['mieteinnahmenSollPeriode']['dependsOn'] = [$marketingBuy]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['warmmiete']['dependsOn'] = [$marketingRent]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['kaltmiete']['dependsOn'] = [$marketingRent]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['nettokaltmiete']['dependsOn'] = [$marketingRent]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['mietpreisProQm']['dependsOn'] = [$marketingRent]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['energiepassEnergieverbrauchkennwert']['dependsOn'] = ['energiepassEpart' => 'verbrauch']; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['energiepassMitwarmwasser']['dependsOn'] = ['energiepassEpart' => 'verbrauch']; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['energiepassEndenergiebedarf']['dependsOn'] = ['energiepassEpart' => 'bedarf']; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['breitbandGeschw']['dependsOn'] = ['breitbandZugang' => 1]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['breitbandArt']['dependsOn'] = ['breitbandZugang' => 1]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['branchen']['dependsOn'] = ['gewerblicheNutzung' => 1]; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['aktenzeichen']['dependsOn'] = ['zwangsversteigerung' => 1]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['zvtermin']['dependsOn'] = ['zwangsversteigerung' => 1]; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['zusatztermin']['dependsOn'] = ['zwangsversteigerung' => 1]; @@ -137,16 +143,14 @@ $GLOBALS['TL_DCA']['tl_real_estate']['fields']['objekttitel']['eval']['tl_class'] .= ' long'; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['alias']['eval']['tl_class'] .= ' long'; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['metaDescription']['eval']['tl_class'] .= ' clr'; - $GLOBALS['TL_DCA']['tl_real_estate']['fields']['bad']['eval']['tl_class'] = 'clr long'; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['angeschlGastronomie']['eval']['tl_class'] = 'clr long'; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['sicherheitstechnik']['eval']['tl_class'] = 'clr long'; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['ausstattKategorie']['eval']['tl_class'] = 'long'; $GLOBALS['TL_DCA']['tl_real_estate']['fields']['unterkellert']['eval']['tl_class'] = 'long'; - // Clear checkbox widgets - $arrCheckboxes = ['wbsSozialwohnung','kartenMakro','kartenMikro','luftbildern','virtuelletour','hochhaus','denkmalgeschuetzt','gewerblicheNutzung','branchen','alsFerien','kabelSatTv','dvbt','dvVerkabelung','breitbandZugang','umtsEmpfang','kabelkanaele','telefonFerienimmobilie','nichtraucher','gaestewc','haustiere','raeumeVeraenderbar','wgGeeignet','abstellraum','dachboden','gartennutzung','fahrradraum','rolladen','bibliothek','klimatisiert','seniorengerecht','rollstuhlgerecht','barrierefrei','waschTrockenraum','kamin','sauna','swimmingpool','wintergarten','rampe','hebebuehne','kran','zulieferung','gastterrasse','kantineCafeteria','teekueche','brauereibindung','sporteinrichtungen','wellnessbereich']; + $arrCheckboxes = ['wbsSozialwohnung', 'kartenMakro', 'kartenMikro', 'luftbildern', 'virtuelletour', 'hochhaus', 'denkmalgeschuetzt', 'gewerblicheNutzung', 'branchen', 'alsFerien', 'kabelSatTv', 'dvbt', 'dvVerkabelung', 'breitbandZugang', 'umtsEmpfang', 'kabelkanaele', 'telefonFerienimmobilie', 'nichtraucher', 'gaestewc', 'haustiere', 'raeumeVeraenderbar', 'wgGeeignet', 'abstellraum', 'dachboden', 'gartennutzung', 'fahrradraum', 'rolladen', 'bibliothek', 'klimatisiert', 'seniorengerecht', 'rollstuhlgerecht', 'barrierefrei', 'waschTrockenraum', 'kamin', 'sauna', 'swimmingpool', 'wintergarten', 'rampe', 'hebebuehne', 'kran', 'zulieferung', 'gastterrasse', 'kantineCafeteria', 'teekueche', 'brauereibindung', 'sporteinrichtungen', 'wellnessbereich']; foreach ($arrCheckboxes as $field) { diff --git a/src/Resources/contao/languages/de/backend_real_estate_management.xlf b/src/Resources/contao/languages/de/backend_real_estate_management.xlf index 7bed6c3..710816b 100644 --- a/src/Resources/contao/languages/de/backend_real_estate_management.xlf +++ b/src/Resources/contao/languages/de/backend_real_estate_management.xlf @@ -292,6 +292,10 @@ Classic view Klassische Ansicht + + Real Estate Overview + Immobilien-Übersicht + Save Speichern diff --git a/src/Resources/contao/languages/en/backend_real_estate_management.xlf b/src/Resources/contao/languages/en/backend_real_estate_management.xlf new file mode 100644 index 0000000..daba2cd --- /dev/null +++ b/src/Resources/contao/languages/en/backend_real_estate_management.xlf @@ -0,0 +1,238 @@ + + + + + Provider + + + Base information + + + Identification + + + Marketing + + + Website + + + SEO + + + Export / Portals + + + Images + + + Documents + + + Links + + + Prices + + + Other price properties + + + Courtage + + + Return on investment + + + Provision + + + Zeiteinheiten + + + Further price properties + + + Deposit + + + Service charges + + + Currency + + + Texts + + + General + + + Carport + + + Duplex + + + Free space + + + Garage + + + Parking garage + + + Underground parking + + + Miscellaneous + + + Address + + + Geo + + + Energy pass + + + Condition of the property + + + Country-specific (Energy pass) + + + Areas + + + Quantity + + + Commerce + + + Extended plot details + + + Investment + + + Further properties + + + Properties + + + Distances + + + Position / View + + + Status + + + Equipment + + + Building + + + Internet / TV / Telephony + + + Properties + + + Extra + + + Bidding process + + + Forced sale + + + Residential + + + Floor + + + Ground lease + + + Availability + + + Language + + + + Basics + + + Location + + + Prices + + + Areas / Quantity + + + Details + + + Parking + + + Texts + + + Condition / Energy pass + + + Files + + + Publishing + + + + Title + + + Description + + + Equipment + + + Location + + + Miscellaneous + + + + Classic view + + + Real Estate Overview + + + Save + + + + Edit real estate %s + + + You have installed the extended property management but have not entered a license. Please enter the license in the license management or use the standard management. + + + + diff --git a/src/Resources/contao/languages/en/tl_estate_manager_addon.xlf b/src/Resources/contao/languages/en/tl_estate_manager_addon.xlf new file mode 100644 index 0000000..53cc095 --- /dev/null +++ b/src/Resources/contao/languages/en/tl_estate_manager_addon.xlf @@ -0,0 +1,13 @@ + + + + + + Addon onOffice Import License + + + Please enter your license key + + + + diff --git a/src/Resources/public/css/backend.css b/src/Resources/public/css/backend.css index a678813..55908b3 100644 --- a/src/Resources/public/css/backend.css +++ b/src/Resources/public/css/backend.css @@ -11,6 +11,9 @@ border-radius: 2px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); overflow: hidden; + min-width: 50px; + min-height: 50px; + background: #f1f1f1; } .headline_inner .image img { object-fit: cover; @@ -26,6 +29,9 @@ font-size: 16px; margin-top: 8px; } +.headline_inner .actions { + text-align: right; +} .headline_inner .actions a { color: #767676; font-size: 13px; diff --git a/src/Resources/public/css/backend.css.map b/src/Resources/public/css/backend.css.map index 1b57ffd..c3b7396 100644 --- a/src/Resources/public/css/backend.css.map +++ b/src/Resources/public/css/backend.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["backend.scss"],"names":[],"mappings":"AAAA;EACE;;;AAGF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAMF;EACE;EACA;EACA;;AAEA;EACE;;;AAMR;EACE;;AAEA;EACE;;AAGF;EACE;EACA;;AAGF;AAAA;EAEE;;AAGF;EACE;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EAEA;EAEA;;AAIJ;EACE;EACA;EACA;EAEA;EACA;EAEA;EAEA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAKN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;EACE;EACA;;AAIF;EACE;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EAEA;EACA;EACA;EACA;EAEA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAKA;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAOV;EAII;IACE;;EAEA;IACE;;;AAMR;EACE;IACE;;EAGF;IACE","file":"backend.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["backend.scss"],"names":[],"mappings":"AAAA;EACE;;;AAGF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAIJ;EACE;;AAEA;EACE;EACA;EACA;;AAEA;EACE;;;AAMR;EACE;;AAEA;EACE;;AAGF;EACE;EACA;;AAGF;AAAA;EAEE;;AAGF;EACE;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EAEA;EAEA;;AAIJ;EACE;EACA;EACA;EAEA;EACA;EAEA;EAEA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAKN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;EACE;EACA;;AAIF;EACE;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EAEA;EACA;EACA;EACA;EAEA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAKA;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAOV;EAII;IACE;;EAEA;IACE;;;AAMR;EACE;IACE;;EAGF;IACE","file":"backend.css"} \ No newline at end of file diff --git a/src/Resources/public/css/backend.scss b/src/Resources/public/css/backend.scss index 7993bc2..4f521ae 100644 --- a/src/Resources/public/css/backend.scss +++ b/src/Resources/public/css/backend.scss @@ -11,6 +11,9 @@ border-radius: 2px; box-shadow: 0 0 0 2px rgba(255,255,255,.55); overflow: hidden; + min-width: 50px; + min-height: 50px; + background: #f1f1f1; img{ object-fit: cover; @@ -31,6 +34,7 @@ } .actions{ + text-align: right; a{ color: #767676; diff --git a/src/Resources/views/be_real_estate_edit.html.twig b/src/Resources/views/be_real_estate_edit.html.twig index 4cf9270..94404bb 100644 --- a/src/Resources/views/be_real_estate_edit.html.twig +++ b/src/Resources/views/be_real_estate_edit.html.twig @@ -10,7 +10,8 @@
{{ head.subtitle }}
{% endblock %} @@ -21,7 +22,7 @@ {% if head.message %} {{ head.message|raw }} {% endif %} -
+