Skip to content

Commit

Permalink
improve readability for people with color blindness
Browse files Browse the repository at this point in the history
  • Loading branch information
jensilo committed Dec 30, 2023
1 parent 209de06 commit f0c79ec
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
10 changes: 5 additions & 5 deletions templates/eiffel/_form-elicitation.go.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,17 @@ <h1 class="modal-title fs-5" id="eiffelRule-{{ $ruleName }}-info-label">
<div class="row mt-2">
{{ range .Data.Successes }}
<div class="col-12">
<div class="alert alert-success" role="alert">{{ t . }}</div>
<div class="alert alert-success" role="alert">{{ t "eiffel.elicitation.parse.result.success-prefix" }} {{ t . }}</div>
</div>
{{ end }}
{{ range .Data.AllViolations }}
<div class="col-12">
<div class="alert alert-danger" role="alert">{{ tryTranslate . }}</div>
<div class="alert alert-danger" role="alert">{{ t "eiffel.elicitation.parse.result.error-prefix" }} {{ tryTranslate . }}</div>
</div>
{{ end }}
{{ range .Data.AllValidationErrors }}
<div class="col-12">
<div class="alert alert-danger" role="alert">{{ t .FieldErrorKey }}</div>
<div class="alert alert-danger" role="alert">{{ t "eiffel.elicitation.parse.result.error-prefix" }} {{ t .FieldErrorKey }}</div>
</div>
{{ end }}

Expand All @@ -216,13 +216,13 @@ <h1 class="modal-title fs-5" id="eiffelRule-{{ $ruleName }}-info-label">

{{ range .Data.Form.ParsingResult.Warnings }}
<div class="col-12">
<div class="alert alert-warning" role="alert">{{ tryTranslate . }}</div>
<div class="alert alert-warning" role="alert">{{ t "eiffel.elicitation.parse.result.warning-prefix" }} {{ tryTranslate . }}</div>
</div>
{{ end }}

{{ range .Data.Form.ParsingResult.Notices }}
<div class="col-12">
<div class="alert alert-info" role="alert">{{ tryTranslate . }}</div>
<div class="alert alert-info" role="alert">{{ t "eiffel.elicitation.parse.result.notice-prefix" }} {{ tryTranslate . }}</div>
</div>
{{ end }}

Expand Down
8 changes: 7 additions & 1 deletion translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@
"call-to-action": "Anforderungen mit EIFFEL erfassen",
"parse": {
"flawless-success": "Die Anforderung ist fehlerfrei.",
"success": "Die Anforderung ist gültig, jedoch wurden potentielle Probleme gefunden."
"success": "Die Anforderung ist gültig, jedoch wurden potentielle Probleme gefunden.",
"result": {
"success-prefix": "Erfolg:",
"warning-prefix": "Warnung:",
"error-prefix": "Fehler:",
"notice-prefix": "Hinweis:"
}
},
"form": {
"title": "Anforderung erfassen (Alt + P)",
Expand Down
8 changes: 7 additions & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@
"call-to-action": "Capture requirements with EIFFEL",
"parse": {
"flawless-success": "The requirement is flawless.",
"success": "The requirement is valid, but potential problems were found."
"success": "The requirement is valid, but potential problems were found.",
"result": {
"success-prefix": "Success:",
"warning-prefix": "Warning:",
"error-prefix": "Error:",
"notice-prefix": "Notice:"
}
},
"form": {
"title": "Capture Requirement (Alt + P)",
Expand Down

0 comments on commit f0c79ec

Please sign in to comment.