Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
fix: required on all fields
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit authored and ia3andy committed Jul 5, 2018
1 parent 3676f2f commit 57eba0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h2 class="card-pf-title">
<div class="col-xs-8 f8launcher-project-summary-data-field f8launcher-application-text-field">
<input class="f8launcher-project-summary-data-field_input f8launcher-application-text-field_input"
name="applicationTitle" placeholder="New Application" type="text" #projectName="ngModel"
[(ngModel)]="dependencyCheck.projectName" lowercase validateProjectName
[(ngModel)]="dependencyCheck.projectName" lowercase validateProjectName required
(keyup.enter)="$event.target.blur();">
</div>
<div *ngIf="projectName.invalid && (projectName.dirty || projectName.touched)">
Expand Down Expand Up @@ -276,7 +276,7 @@ <h2 class="card-pf-title">
<div class="col-xs-8 f8launcher-project-summary-data-field f8launcher-application-text-field">
<input class="f8launcher-project-summary-data-field_input f8launcher-application-text-field_input"
name="version" placeholder="Version Number" type="text" pattern="[a-zA-Z0-9-.]{3,63}"
[(ngModel)]="dependencyCheck.projectVersion" #projectVersion="ngModel"
[(ngModel)]="dependencyCheck.projectVersion" #projectVersion="ngModel" required
(keyup.enter)="$event.target.blur();">
</div>
<div *ngIf="projectVersion.invalid && (projectVersion.dirty || projectVersion.touched)" class="col-xs-8 col-xs-offset-4 has-error">
Expand All @@ -289,7 +289,7 @@ <h2 class="card-pf-title">
<label class="col-xs-4 control-label">Group ID</label>
<div class="col-xs-8 f8launcher-project-summary-data-field f8launcher-application-text-field">
<input class="f8launcher-project-summary-data-field_input f8launcher-application-text-field_input"
name="groupId" placeholder="Group ID" type="text" pattern="[a-z][a-z0-9.]{3,63}"
name="groupId" placeholder="Group ID" type="text" pattern="[a-z][a-z0-9.]{3,63}" required
[(ngModel)]="dependencyCheck.groupId" #groupId="ngModel">
</div>
<div *ngIf="groupId.invalid && (groupId.dirty || groupId.touched)" class="col-xs-8 col-xs-offset-4 has-error">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2 class="card-pf-title">
<div class="col-xs-8 f8launcher-project-summary-data-field f8launcher-application-text-field">
<input class="f8launcher-project-summary-data-field_input f8launcher-application-text-field_input"
name="applicationTitle" placeholder="New Application" type="text" #projectName="ngModel"
[(ngModel)]="dependencyCheck.projectName" lowercase validateProjectName
[(ngModel)]="dependencyCheck.projectName" lowercase validateProjectName required
(keyup.enter)="$event.target.blur();">
</div>
<div class="col-xs-8 col-xs-offset-4 has-error" *ngIf="projectName.invalid && (projectName.dirty || projectName.touched)">
Expand All @@ -133,7 +133,7 @@ <h2 class="card-pf-title">
<label class="col-xs-4 control-label">Maven Artifact</label>
<div class="col-xs-8 f8launcher-project-summary-data-field f8launcher-application-text-field">
<input class="f8launcher-project-summary-data-field_input f8launcher-application-text-field_input"
name="artifact" placeholder="Maven Artifact" type="text" pattern="[a-z][a-z0-9-]{3,63}"
name="artifact" placeholder="Maven Artifact" type="text" pattern="[a-z][a-z0-9-]{3,63}" required
[(ngModel)]="dependencyCheck.mavenArtifact" #mavenArtifact="ngModel"
(keyup.enter)="$event.target.blur();">
</div>
Expand All @@ -147,7 +147,7 @@ <h2 class="card-pf-title">
<label class="col-xs-4 control-label">Version</label>
<div class="col-xs-8 f8launcher-project-summary-data-field f8launcher-application-text-field">
<input class="f8launcher-project-summary-data-field_input f8launcher-application-text-field_input"
name="version" placeholder="Version Number" type="text" pattern="[a-zA-Z0-9-.]{3,63}"
name="version" placeholder="Version Number" type="text" pattern="[a-zA-Z0-9-.]{3,63}" required
[(ngModel)]="dependencyCheck.projectVersion" #projectVersion="ngModel"
(keyup.enter)="$event.target.blur();">
</div>
Expand All @@ -161,7 +161,7 @@ <h2 class="card-pf-title">
<label class="col-xs-4 control-label">Group ID</label>
<div class="col-xs-8 f8launcher-project-summary-data-field f8launcher-application-text-field">
<input class="f8launcher-project-summary-data-field_input f8launcher-application-text-field_input"
name="groupId" placeholder="Group ID" type="text" pattern="[a-z][a-z0-9.]{3,63}"
name="groupId" placeholder="Group ID" type="text" pattern="[a-z][a-z0-9.]{3,63}" required
[(ngModel)]="dependencyCheck.groupId" #groupId="ngModel"
(keyup.enter)="$event.target.blur();">
</div>
Expand Down

0 comments on commit 57eba0d

Please sign in to comment.