From 920339ca756f16b3138b4797776c82935771356f Mon Sep 17 00:00:00 2001 From: aakankshadhurandhar Date: Sun, 11 Sep 2022 19:49:15 +0530 Subject: [PATCH 1/3] feat:added location field --- app/components/form-input.hbs | 10 +++++++++- app/controllers/profile.js | 8 ++++++++ app/styles/signup.css | 9 +++++++++ app/templates/profile.hbs | 5 ++++- 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/app/components/form-input.hbs b/app/components/form-input.hbs index 24caf38d..8b2ec242 100644 --- a/app/components/form-input.hbs +++ b/app/components/form-input.hbs @@ -1,6 +1,7 @@
- + + {{#if @buttonupload }} + + {{/if}} +
+ + + {{#if @helpMsg}} {{@helpMsg}} {{/if}} diff --git a/app/controllers/profile.js b/app/controllers/profile.js index b36e74cc..40976476 100644 --- a/app/controllers/profile.js +++ b/app/controllers/profile.js @@ -70,6 +70,14 @@ export default class ProfileController extends Controller { showError: false, disabled: true, }, + { + id: 'location', + label: 'Location', + type: 'text', + placeholder: 'bangalore', + buttonupload: true, + disabled: true, + }, { id: 'email', label: 'Email', diff --git a/app/styles/signup.css b/app/styles/signup.css index ee72286e..c6bd2a24 100644 --- a/app/styles/signup.css +++ b/app/styles/signup.css @@ -28,6 +28,7 @@ h1 { flex-direction: column; justify-content: center; align-items: flex-start; + position: relative; } .field label { @@ -153,3 +154,11 @@ h1 { width: 70%; } } +.upload{ + position: absolute; + top:0; + right: 0; + height: 100%; + color: blue; + font-weight: bold; + } diff --git a/app/templates/profile.hbs b/app/templates/profile.hbs index 3e5cc5ac..09552633 100644 --- a/app/templates/profile.hbs +++ b/app/templates/profile.hbs @@ -16,7 +16,10 @@ @helpMsg={{field.helpMsg}} @onChange={{this.handleFieldChange}} @validator={{field.validator}} - @disabled={{field.disabled}} /> + @disabled={{field.disabled}} + @buttonupload={{field.buttonupload}} + /> + {{/each}}