mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 05:43:48 +00:00
Basic mark-up for the extra log hint feedback.
This commit is contained in:
parent
ef6eefe1b1
commit
95db6ba934
2 changed files with 48 additions and 1 deletions
|
@ -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 didn’t understand the hint
|
||||
.radio: label
|
||||
input(
|
||||
type="radio"
|
||||
ng-model="negFeedbackReason"
|
||||
value="not_applicable"
|
||||
)
|
||||
| I couldn’t apply it to my document
|
||||
.radio: label
|
||||
input(
|
||||
type="radio"
|
||||
ng-model="negFeedbackReason"
|
||||
value="incorrect"
|
||||
)
|
||||
| I don’t 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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue