From 1551ea796d7fe336a7a9cb510fc8e40a89b750eb Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 10 Jun 2021 14:34:14 +0200 Subject: [PATCH] household address: UI of the adress move form --- .../Resources/public/scss/chillmain.scss | 70 ----------------- .../Resources/public/sass/person.scss | 78 +++++++++++++++++++ .../public/vuejs/HouseholdAddress/App.vue | 64 +++++++++------ .../public/vuejs/HouseholdAddress/js/i18n.js | 6 +- .../views/Household/address_move.html.twig | 1 - 5 files changed, 121 insertions(+), 98 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss b/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss index cc3f150d4..f101b78ca 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss @@ -260,73 +260,3 @@ div.address_form { } - -/* - * HOUSEHOLD - */ - - div.household { - div.household__address { - div.row { - height: 100px; - width: 100%; - position: relative; - & > div { - position: absolute; - display: table; - height: 100%; - border: 1px dotted #c3c3c3; - } - div.household__address--date { - width: 30%; - background-color: #c3c3c3; - height: 100%; - div.cell { - box-sizing: border-box; - position: relative; - height: 100%; - width: 100%; - margin-left: 50%; - div.pill { - position: absolute; - box-sizing: border-box; - width: 120px; - height: 40px; - bottom: -20px; - background-color: white; - padding: 10px; - border-radius: 30px; - left: -60px; - text-align: center; - z-index: 10; - } - } - } - div.household__address--content { - width: 70%; - left: 30%; - text-align: left; - background-color: #ececec; - border: 1px solid #888; - div.cell { - display: table-cell; - padding: 5px 30px; - vertical-align: middle; - i.dot::before, i.dot::after { - position: absolute; - width: 20px; - height: 20px; - content: ''; - border: 0; - background-color: white; - border-radius: 50%; - border: 5px solid #c3c3c3; - z-index: 10; - left: -15px; - bottom: -15px; - } - } - } - } - } - } diff --git a/src/Bundle/ChillPersonBundle/Resources/public/sass/person.scss b/src/Bundle/ChillPersonBundle/Resources/public/sass/person.scss index 0bcea886a..b198f74eb 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/sass/person.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/sass/person.scss @@ -86,3 +86,81 @@ div.person-view { } } + + +/* + * HOUSEHOLD + */ + +div.household { + div.household__address { + div.row { + height: 100px; + width: 100%; + position: relative; + & > div { + position: absolute; + display: table; + height: 100%; + border: 1px dotted #c3c3c3; + } + div.household__address--date { + width: 30%; + background-color: #c3c3c3; + height: 100%; + div.cell { + box-sizing: border-box; + position: relative; + height: 100%; + width: 100%; + margin-left: 50%; + div.pill { + position: absolute; + box-sizing: border-box; + width: 120px; + height: 40px; + bottom: -20px; + background-color: white; + padding: 10px; + border-radius: 30px; + left: -60px; + text-align: center; + z-index: 10; + } + } + } + div.household__address--content { + width: 70%; + left: 30%; + text-align: left; + background-color: #ececec; + border: 1px solid #888; + div.cell { + display: table-cell; + padding: 5px 30px; + vertical-align: middle; + i.dot::before, i.dot::after { + position: absolute; + width: 20px; + height: 20px; + content: ''; + border: 0; + background-color: white; + border-radius: 50%; + border: 5px solid #c3c3c3; + z-index: 10; + left: -15px; + bottom: -15px; + } + } + } + } + } + div.household__address-move { + div.household__address-move__create { + display: flex; + flex-direction: row; + + } + } +} diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdAddress/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdAddress/App.vue index 833796277..594f53a93 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdAddress/App.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdAddress/App.vue @@ -1,37 +1,50 @@