Support for i18n.

This commit is contained in:
Paulo Reis 2016-07-26 11:56:15 +01:00
parent 24614effc4
commit a3ee3134b1

View file

@ -149,35 +149,35 @@ div.full-size.pdf(ng-controller="PdfController")
href
) #{translate("answer_no")}
.card-hint-extra-feedback(ng-hide="!showNegFeedbackUI || feedbackSent")
p.card-hint-extra-feedback-label Can you help us understand why this hint wasn't helpful?
p.card-hint-extra-feedback-label #{translate("log_hint_ask_extra_feedback")}
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="{{ logHintsNegFeedbackValues.DIDNT_UNDERSTAND }}"
)
| I didnt understand the hint
| #{translate("log_hint_extra_feedback_didnt_understand")}
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="{{ logHintsNegFeedbackValues.NOT_APPLICABLE }}"
)
| I cant apply this solution to my document
| #{translate("log_hint_extra_feedback_not_applicable")}
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="{{ logHintsNegFeedbackValues.INCORRECT }}"
)
| This doesnt fix the error
| #{translate("log_hint_extra_feedback_incorrect")}
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="{{ logHintsNegFeedbackValues.OTHER }}"
)
| Other:
| #{translate("log_hint_extra_feedback_other")}
textarea.form-control(
ng-show="negFeedbackReason === logHintsNegFeedbackValues.OTHER"
ng-model="negFeedbackReasonFreeText"
@ -187,7 +187,7 @@ div.full-size.pdf(ng-controller="PdfController")
button.btn.btn-default.btn-sm.pull-right(
ng-disabled="!negFeedbackReason"
ng-click="trackLogHintsNegFeedbackDetails(entry.ruleId, negFeedbackReason, negFeedbackReasonFreeText); feedbackSent = true;"
) Submit
) #{translate("log_hint_extra_feedback_submit")}
.card-hint-feedback(ng-show="feedbackSent")
label.card-hint-feedback-label #{translate("log_hint_feedback_gratitude")}