euscanwww: Report problems is hided and can be shown with a click
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
d70e4cb617
commit
8268e634f0
@ -168,8 +168,8 @@
|
|||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<h3>Report problems</h3>
|
<h3 class="report-problems-toggle cursor-pointer">Report problems</h3>
|
||||||
|
<div class="report-problems hide">
|
||||||
<form action="." method="post" class="form-horizontal">
|
<form action="." method="post" class="form-horizontal">
|
||||||
<div class="control-group {% if problem_form.version.errors %}error{% endif %}">
|
<div class="control-group {% if problem_form.version.errors %}error{% endif %}">
|
||||||
<label class="control-label" for="version">{{ problem_form.version.label }}</label>
|
<label class="control-label" for="version">{{ problem_form.version.label }}</label>
|
||||||
@ -199,8 +199,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function () {
|
||||||
$(".refresh-button").click(function() {
|
$(".refresh-button").click(function() {
|
||||||
var url = "{% url "refresh_package" "XXX" "YYY" %}";
|
var url = "{% url "refresh_package" "XXX" "YYY" %}";
|
||||||
$.post(url.replace("XXX", $(this).data("category")).replace("YYY", $(this).data("package")),
|
$.post(url.replace("XXX", $(this).data("category")).replace("YYY", $(this).data("package")),
|
||||||
@ -222,6 +224,12 @@
|
|||||||
$(".unfavourite-button").addClass("hide");
|
$(".unfavourite-button").addClass("hide");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(".report-problems-toggle").click(function () {
|
||||||
|
$(".report-problems").toggle("slow");
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -238,6 +238,10 @@ th {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cursor-pointer {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
width: inherit;
|
width: inherit;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user