Basic mark-up for the extra log hint feedback.

This commit is contained in:
Paulo Reis 2016-07-22 11:56:45 +01:00
parent ef6eefe1b1
commit 95db6ba934
2 changed files with 48 additions and 1 deletions

View file

@ -108,7 +108,7 @@ div.full-size.pdf(ng-controller="PdfController")
'alert-info': entry.level == 'typesetting'\
}"
ng-click="openInEditor(entry)"
ng-init="feedbackSent = false;"
ng-init="feedbackSent = false; negFeedbackReason = ''"
)
span.line-no
i.fa.fa-link(aria-hidden="true")
@ -148,8 +148,42 @@ div.full-size.pdf(ng-controller="PdfController")
ng-click="trackLogHintsNegativeFeedback(entry.ruleId); feedbackSent = true;"
href
) #{translate("answer_no")}
.card-hint-extra-feedback
p Can you help us understand why this hint wasn't helpful?
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="didnt_understand"
)
| I didnt understand the hint
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="not_applicable"
)
| I couldnt apply it to my document
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="incorrect"
)
| I dont think this is correct
.radio: label
input(
type="radio"
ng-model="negFeedbackReason"
value="other"
)
| Other:
.clearfix
button.btn.btn-default.btn-xs.pull-right Submit
.card-hint-feedback(ng-show="feedbackSent")
label.card-hint-feedback-label #{translate("log_hint_feedback_gratitude")}
p.entry-content(ng-show="entry.content") {{ entry.content.trim() }}
p

View file

@ -280,6 +280,19 @@
float: right;
}
&-extra-feedback {
color: @gray-dark;
font-size: 0.8rem;
border-top: solid 1px @gray-light;
margin-top: 10px;
padding-top: 10px;
.radio {
margin-top: 5px;
margin-bottom: 5px;
}
}
& + p {
margin-top: 20px;
}