From f0930b06bb593fa618dbcba260ef78c7b693428f Mon Sep 17 00:00:00 2001 From: Dave Brown Date: Sun, 17 Dec 2023 17:47:26 +0000 Subject: [PATCH] Position footer correctly at the bottom of page --- .../Components/PropertyCard.razor | 2 +- .../Pages/AccountList.razor | 33 +++++++-------- .../Pages/ContactList.razor | 33 ++++++++------- .../Pages/ContactTypeList.razor | 33 ++++++++------- .../Pages/Documents.razor | 4 +- .../Pages/PortfolioList.razor | 33 ++++++++------- .../Pages/TenancyList.razor | 33 ++++++++------- .../Pages/TenancyTypeList.razor | 33 ++++++++------- .../Pages/UnitList.razor | 35 ++++++++-------- .../Pages/UnitTypeList.razor | 33 ++++++++------- .../Shared/MainLayout.razor | 41 ++++++++++--------- .../wwwroot/css/app.css | 2 +- 12 files changed, 155 insertions(+), 160 deletions(-) diff --git a/src/PropertyPortfolioManager.Client/Components/PropertyCard.razor b/src/PropertyPortfolioManager.Client/Components/PropertyCard.razor index f25804e..20e8f64 100644 --- a/src/PropertyPortfolioManager.Client/Components/PropertyCard.razor +++ b/src/PropertyPortfolioManager.Client/Components/PropertyCard.razor @@ -1,4 +1,4 @@ -
+

@Property.StreetAddress, @Property.TownCity

diff --git a/src/PropertyPortfolioManager.Client/Pages/AccountList.razor b/src/PropertyPortfolioManager.Client/Pages/AccountList.razor index 60f0fa7..6b5beb9 100644 --- a/src/PropertyPortfolioManager.Client/Pages/AccountList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/AccountList.razor @@ -2,7 +2,23 @@ -
Accounts
+
+
+
Accounts
+
+
+ Create New Account + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
+
@if (accounts == null) @@ -12,21 +28,6 @@ else {
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
diff --git a/src/PropertyPortfolioManager.Client/Pages/ContactList.razor b/src/PropertyPortfolioManager.Client/Pages/ContactList.razor index 70199d3..edc236e 100644 --- a/src/PropertyPortfolioManager.Client/Pages/ContactList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/ContactList.razor @@ -1,7 +1,22 @@ @page "/contact" -
Contacts
+
+
+
Contacts
+
+
+ Create New Contact + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
@if (contacts == null) @@ -11,22 +26,6 @@ else {
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
-
diff --git a/src/PropertyPortfolioManager.Client/Pages/ContactTypeList.razor b/src/PropertyPortfolioManager.Client/Pages/ContactTypeList.razor index dcbb160..d436558 100644 --- a/src/PropertyPortfolioManager.Client/Pages/ContactTypeList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/ContactTypeList.razor @@ -1,7 +1,22 @@ @page "/contacttype" -
Contact Types
+
+
+
Contact Types
+
+
+ Create New Contact Type + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
@if (contactypes == null) @@ -11,22 +26,6 @@ else {
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
-
diff --git a/src/PropertyPortfolioManager.Client/Pages/Documents.razor b/src/PropertyPortfolioManager.Client/Pages/Documents.razor index 9b9f4e1..2fa2bb1 100644 --- a/src/PropertyPortfolioManager.Client/Pages/Documents.razor +++ b/src/PropertyPortfolioManager.Client/Pages/Documents.razor @@ -1,7 +1,9 @@ @page "/documents" @using static PropertyPortfolioManager.Client.Helpers.StringHelpers -

Documents

+ +
Documents
+
@if (Initialising) { diff --git a/src/PropertyPortfolioManager.Client/Pages/PortfolioList.razor b/src/PropertyPortfolioManager.Client/Pages/PortfolioList.razor index 9960489..e068217 100644 --- a/src/PropertyPortfolioManager.Client/Pages/PortfolioList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/PortfolioList.razor @@ -1,7 +1,22 @@ @page "/portfolio" -
Portfolios
+
+
+
Portfolios
+
+
+ Create New Portfolio + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
@if (portfolios == null) @@ -11,22 +26,6 @@ else {
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
-
diff --git a/src/PropertyPortfolioManager.Client/Pages/TenancyList.razor b/src/PropertyPortfolioManager.Client/Pages/TenancyList.razor index 6046af4..168432f 100644 --- a/src/PropertyPortfolioManager.Client/Pages/TenancyList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/TenancyList.razor @@ -1,7 +1,22 @@ @page "/tenancy" -
Tenancies
+
+
+
Tenancies
+
+
+ Create New Tenancy + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
@if (tenancies == null) @@ -11,22 +26,6 @@ else {
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
-
diff --git a/src/PropertyPortfolioManager.Client/Pages/TenancyTypeList.razor b/src/PropertyPortfolioManager.Client/Pages/TenancyTypeList.razor index c688304..f50f100 100644 --- a/src/PropertyPortfolioManager.Client/Pages/TenancyTypeList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/TenancyTypeList.razor @@ -1,7 +1,22 @@ @page "/tenancytype" -
Tenancy Types
+
+
+
Tenancy Types
+
+
+ Create New Tenancy Type + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
@if (tenancytypes == null) @@ -11,22 +26,6 @@ else {
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
-
diff --git a/src/PropertyPortfolioManager.Client/Pages/UnitList.razor b/src/PropertyPortfolioManager.Client/Pages/UnitList.razor index 5e028bd..7328335 100644 --- a/src/PropertyPortfolioManager.Client/Pages/UnitList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/UnitList.razor @@ -1,7 +1,22 @@ @page "/unit" -
Properties
+
+
+
Properties
+
+
+ Create New Property + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
@if (units == null) @@ -10,23 +25,6 @@ } else { -
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
-
@foreach (var unit in units) { @@ -41,6 +39,5 @@ else }
-
} diff --git a/src/PropertyPortfolioManager.Client/Pages/UnitTypeList.razor b/src/PropertyPortfolioManager.Client/Pages/UnitTypeList.razor index e56cc1c..ad5b9a6 100644 --- a/src/PropertyPortfolioManager.Client/Pages/UnitTypeList.razor +++ b/src/PropertyPortfolioManager.Client/Pages/UnitTypeList.razor @@ -1,7 +1,22 @@ @page "/unittype" -
Unit Types
+
+
+
Unit Types
+
+
+ Create New Unit Type + @if (ActiveOnly) + { + Include Inactive + } + else + { + Hide Inactive + } +
+
@if (unittypes == null) @@ -11,22 +26,6 @@ else {
-
- -
- @if (ActiveOnly) - { - Include Inactive - } - else - { - Hide Inactive - } -
-
-
diff --git a/src/PropertyPortfolioManager.Client/Shared/MainLayout.razor b/src/PropertyPortfolioManager.Client/Shared/MainLayout.razor index 9a91a71..a6e853c 100644 --- a/src/PropertyPortfolioManager.Client/Shared/MainLayout.razor +++ b/src/PropertyPortfolioManager.Client/Shared/MainLayout.razor @@ -1,24 +1,25 @@ @inherits LayoutComponentBase +
+
+ +
+ + +
+ +
+
+
-
- -
- - -
- -
-
-
+
+
+ @Body +
+
-
-
- @Body -
+
+
+ © 2023 - Property Portfolio Manager +
+
- -
-
- © 2023 - Property Portfolio Manager -
-
diff --git a/src/PropertyPortfolioManager.Client/wwwroot/css/app.css b/src/PropertyPortfolioManager.Client/wwwroot/css/app.css index 7ce4aac..50d304d 100644 --- a/src/PropertyPortfolioManager.Client/wwwroot/css/app.css +++ b/src/PropertyPortfolioManager.Client/wwwroot/css/app.css @@ -30,10 +30,10 @@ ul.dropdown-menu .nav-link.active { border-radius: 1rem; border: solid 1px #e3e6eb; padding: 1rem; + margin-bottom: 1rem; } .footer { - position: absolute; bottom: 0; width: 100%; white-space: nowrap;