Skip to content

Commit

Permalink
Merge pull request #16 from Real-Dev-Squad/develop
Browse files Browse the repository at this point in the history
Develop into main
  • Loading branch information
ankushdharkar authored Jan 24, 2021
2 parents 8073b99 + 6b54eb2 commit 30510aa
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 28 deletions.
Empty file removed app/components/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions app/components/form-input.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@id={{@id}}
@type={{@type}}
@value={{@value}}
@placeholder=""
@class={{if @showError 'input errorBorder' 'input'}}
{{on 'input' (fn this.inputFieldChanged)}}
/>
Expand Down
Empty file removed app/controllers/.gitkeep
Empty file.
33 changes: 12 additions & 21 deletions app/controllers/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default class SignupController extends Controller {
yoe: '',
company_name: '',
designation: '',
github_id: '',
linkedin_id: '',
twitter_id: '',
website: ''
Expand All @@ -33,7 +32,6 @@ export default class SignupController extends Controller {
yoe: false,
company_name: false,
designation: false,
github_id: false,
linkedin_id: false,
twitter_id: false,
website: false
Expand All @@ -58,7 +56,7 @@ export default class SignupController extends Controller {
},
{
id: 'username',
label: 'Choose a username',
label: 'Username for Real Dev Squad',
type: 'text',
errorMessage: 'Username is required',
required: true,
Expand All @@ -85,55 +83,47 @@ export default class SignupController extends Controller {
},
{
id: 'yoe',
label: 'yoe',
label: 'Years of Experience',
type: 'number',
errorMessage: 'Number of years of experience is required',
required: true,
showError: false,
},
{
id: 'company_name',
label: 'Company Name / College Name ',
label: 'Company Name / College Name',
type: 'text',
errorMessage: '',
required: false,
showError: false,
},
{
id: 'designation',
label: 'Designation ',
label: 'Designation',
type: 'text',
errorMessage: '',
required: false,
showError: false,
},
{
id: 'github_id',
label: 'Github_id ',
type: 'text',
errorMessage: 'GitHub username is required',
required: true,
showError: false,
},
{
id: 'linkedin_id',
label: 'linkedin_id ',
label: 'LinkedIn ID (Not the full URL)',
type: 'text',
errorMessage: 'linkedIn username is required',
errorMessage: 'LinkedIn username is required',
required: true,
showError: false,
},
{
id: 'twitter_id',
label: 'twitter_id ',
label: 'Twitter username (Not the full URL)',
type: 'text',
errorMessage: 'Twitter handle is required',
required: true,
showError: false,
},
{
id: 'website',
label: 'Website ',
label: 'Website (Optional)',
type: 'text',
errorMessage: '',
required: false,
Expand Down Expand Up @@ -211,11 +201,12 @@ export default class SignupController extends Controller {
const data = await response.json();
const { statusCode } = data;
if (statusCode === 204) {
return window.open('https://www.realdevsquad.com/goto', '_self');
window.open('https://www.realdevsquad.com/goto', '_self');
} else {
alert('Something went wrong');
}
alert('Something went wrong');
} catch (error) {
console.log('Error : ', error);
console.error('Error : ', error);
}
}
}
2 changes: 1 addition & 1 deletion app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{page-title "WebsiteMy"}}
{{page-title "My"}}
<div class="container">
{{outlet}}
</div>
2 changes: 2 additions & 0 deletions app/templates/signup.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title "Sign Up"}}

<form class="form">
<h2>{{this.title}}</h2>
{{#each this.fields as |field|}}
Expand Down
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30510aa

Please sign in to comment.