Add feedback widget for log hints.

This commit is contained in:
Paulo Reis 2016-06-20 11:53:10 +01:00
parent 605bb07ba3
commit 1893ae68a9
2 changed files with 35 additions and 5 deletions

View file

@ -109,10 +109,16 @@ div.full-size.pdf(ng-controller="PdfController")
figure.card-hint-icon-container
i.fa.fa-lightbulb-o(aria-hidden="true")
p.card-hint-text(ng-show="entry.humanReadableHint", ng-bind-html="entry.humanReadableHint")
.clearfix
a.btn.btn-sm.btn-default.pull-right(ng-href="{{ entry.extraInfoURL }}", target="_blank")
i.fa.fa-external-link
| #{translate("log_entry_extra_info")}
.card-hint-actions
.card-hint-action-ext-link
a.btn.btn-sm.btn-default(ng-href="{{ entry.extraInfoURL }}", target="_blank")
i.fa.fa-external-link
| #{translate("log_hint_extra_info")}
.card-hint-action-feedback
label.card-hint-enquiry-label #{translate("log_hint_enquiry_helpful")} 
.btn-group.btn-group-sm(role="group")
button.btn.btn-default #{translate("answer_yes")}
button.btn.btn-default #{translate("answer_no")}
p.entry-content(ng-show="entry.content") {{ entry.content }}
p

View file

@ -197,10 +197,34 @@
}
}
&-text {
&-text,
&-enquiry-label {
color: @gray-dark;
font-size: 0.9rem;
margin-bottom: 30px;
}
&-enquiry-label {
font-size: 0.8rem;
margin-bottom: 0;
margin-right: 0.5em;
font-weight: normal;
}
&-actions {
}
&-action-ext-link,
&-action-feedback {
display: inline-block;
}
&-action-feedback {
float: right;
}
& + p {
margin-top: 20px;
}