mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-4875] added spacing and updated validation messages
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<ng-container *ngIf="feedbackForm.controls.email.invalid && (feedbackForm.controls.email.dirty || feedbackForm.controls.email.touched)"
|
||||
class="alert">
|
||||
<ds-error *ngIf="feedbackForm.controls.email.errors?.required" message="{{'info.feedback.error.email.required' | translate}}"></ds-error>
|
||||
<ds-error *ngIf="feedbackForm.controls.email.errors?.pattern" message="{{'info.feedback.error.email.pattern' | translate}}"></ds-error>
|
||||
<ds-error *ngIf="feedbackForm.controls.email.errors?.pattern" message="{{'info.feedback.error.email.required' | translate}}"></ds-error>
|
||||
</ng-container>
|
||||
<div class="row">
|
||||
<div class="control-group col-sm-12">
|
||||
@@ -29,7 +29,7 @@
|
||||
</ng-container>
|
||||
<input class="form-control" formControlName="page" name="page" type="hidden" [value]="routeService.getPreviousUrl() | async"
|
||||
/>
|
||||
<div class="row">
|
||||
<div class="row py-2">
|
||||
<div class="control-group col-sm-12">
|
||||
<button [disabled]="!feedbackForm.valid" class="btn btn-primary" name="submit" type="submit">{{ 'info.feedback.send' | translate }}</button>
|
||||
</div>
|
||||
@@ -37,4 +37,4 @@
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1587,14 +1587,12 @@
|
||||
"info.feedback.comments": "Comments",
|
||||
|
||||
"info.feedback.email-label": "Your Email",
|
||||
|
||||
|
||||
"info.feedback.create.success" : "Feedback Sent Successfully!",
|
||||
|
||||
"info.feedback.error.email.required" : "Email is required",
|
||||
|
||||
"info.feedback.error.email.pattern" : "Valid Email is required",
|
||||
"info.feedback.error.email.required" : "A valid email address is required",
|
||||
|
||||
"info.feedback.error.message.required" : "Comment is required",
|
||||
"info.feedback.error.message.required" : "A comment is required",
|
||||
|
||||
|
||||
"item.alerts.private": "This item is private",
|
||||
|
Reference in New Issue
Block a user