pedagogy: clean up guide page

This commit is contained in:
Antoine Bartuccio 2019-07-07 16:52:28 +02:00
parent 3bff09b04c
commit 2404edd289
Signed by: klmp200
GPG Key ID: E7245548C53F904B
2 changed files with 30 additions and 6 deletions

View File

@ -1703,7 +1703,22 @@ $pedagogy-white-text: #f0f0f0;
} }
} }
#dynamic_view {
font-family: "Fira Sans";
font-size: 1.1em;
table {
}
td {
text-align: center;
border: none;
}
}
#search_form { #search_form {
font-family: "Fira Sans";
margin: 0px; margin: 0px;
width: 100%; width: 100%;
@ -1742,6 +1757,10 @@ $pedagogy-white-text: #f0f0f0;
.radio_guide label:hover { .radio_guide label:hover {
background-color: #0e97ce; background-color: #0e97ce;
} }
#radioAUTUMN + label {
margin-left: 50px;
}
} }
#pedagogy { #pedagogy {
@ -1764,6 +1783,7 @@ $pedagogy-white-text: #f0f0f0;
> p { > p {
text-align: right; text-align: right;
font-weight: bold;
} }
} }
@ -1771,6 +1791,7 @@ $pedagogy-white-text: #f0f0f0;
grid-area: grade-stars; grid-area: grade-stars;
color: $pedagogy-white-text; color: $pedagogy-white-text;
background-color: $pedagogy-blue; background-color: $pedagogy-blue;
font-weight: bold;
} }
.uv-infos { .uv-infos {

View File

@ -7,6 +7,13 @@
{% block content %} {% block content %}
<form id="search_form" action="{{ url('pedagogy:guide') }}" method="get"> <form id="search_form" action="{{ url('pedagogy:guide') }}" method="get">
{% if can_create_uv(user) %}
<p>
<a href="{{ url('pedagogy:uv_create') }}">{% trans %}Create UV{% endtrans %}</a>
</p>
<p>
<a href="{{ url('pedagogy:moderation') }}">{% trans %}Moderate comments{% endtrans %}</a>
</p>
<p> <p>
<input class="input_search" type="text" name="search"> <input class="input_search" type="text" name="search">
<button class="button_search">{% trans %}Search{% endtrans %}</button> <button class="button_search">{% trans %}Search{% endtrans %}</button>
@ -27,16 +34,12 @@
<input type="radio" name="credit_type" id="radioQC" value="QC"><label for="radioQC">{% trans %}QC{% endtrans %}</label> <input type="radio" name="credit_type" id="radioQC" value="QC"><label for="radioQC">{% trans %}QC{% endtrans %}</label>
<input type="radio" name="credit_type" id="radioOM" value="OM"><label for="radioOM">{% trans %}OM{% endtrans %}</label> <input type="radio" name="credit_type" id="radioOM" value="OM"><label for="radioOM">{% trans %}OM{% endtrans %}</label>
<input type="checkbox" name="semester" id="radioAUTUMN" value="AUTUMN"><label for="radioAUTUMN">A</label> <input type="checkbox" name="semester" id="radioAUTUMN" value="AUTUMN"><label for="radioAUTUMN"><i class="fa fa-leaf"></i></label>
<input type="checkbox" name="semester" id="radioSPRING" value="SPRING"><label for="radioSPRING">P</label> <input type="checkbox" name="semester" id="radioSPRING" value="SPRING"><label for="radioSPRING"><i class="fa fa-sun-o"></i></label>
<span><input type="checkbox" name="semester" id="radioAP" value="AUTUMN_AND_SPRING"><label for="radioAP">AP</label></span> <span><input type="checkbox" name="semester" id="radioAP" value="AUTUMN_AND_SPRING"><label for="radioAP">AP</label></span>
</div> </div>
<input type="text" name="json" hidden> <input type="text" name="json" hidden>
</form> </form>
{% if can_create_uv(user) %}
<p>
<a href="{{ url('pedagogy:uv_create') }}">{% trans %}Create UV{% endtrans %}</a>
</p>
<br> <br>
{% endif %} {% endif %}
<table id="dynamic_view"> <table id="dynamic_view">