-
Notifications
You must be signed in to change notification settings - Fork 44
Offer join form #982 #1034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offer join form #982 #1034
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1034 +/- ##
=========================================
- Coverage 90.92% 90.7% -0.23%
=========================================
Files 114 116 +2
Lines 2701 2755 +54
Branches 31 31
=========================================
+ Hits 2456 2499 +43
- Misses 241 252 +11
Partials 4 4
Continue to review full report at Codecov.
|
c26f23f to
abed5df
Compare
juliaanholcer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes in the template are needed to improve the way this form looks.
|
|
||
| export class OfferJoinFormComponent implements OnInit { | ||
| public joinForm: FormGroup = this.fb.group({ | ||
| applicant_email: [''], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO camelCase will be better for TypeScript.
| </div> | ||
| <div class="form-group row"> | ||
| <div> | ||
| <button type="submit" class="btn-primary"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed btn class
| </div> | ||
| <div class="form-group row"> | ||
| <div> | ||
| <button type="submit" class="btn-primary"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <div class="form-group row"> | ||
| <label class="col-form-label" for="{{ email }}">Email:</label> | ||
| <div class="col-md-5"> | ||
| <input disabled class="form-control" formControlName="applicant_email" id="{{ email }}"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You use {{ }} to bind to email variable, that is not defined in the component, so as a result, you get empty for attributes in HTML (same problem for all other labels). Define them just using strings, and if you define for attribute in a label don't forget to define id' in input`, so focus can be set after clicking on label.
|
Because of git problems I needed to open this change in another PR. Go to #1066 |

This component joins offer and if succesful redirects user to offer details.
There is no new imports I think.
No idea how to test it but that could be taken care of in other PR - I think.