mirror of
https://github.com/ae-utbm/sith.git
synced 2026-08-31 09:39:15 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fe1a2529f |
@@ -64,100 +64,23 @@ $pedagogy-white-text: #f0f0f0;
|
|||||||
}
|
}
|
||||||
|
|
||||||
#search_form {
|
#search_form {
|
||||||
.search-form-container {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: auto auto;
|
|
||||||
grid-template-rows: auto auto auto;
|
|
||||||
grid-template-areas:
|
|
||||||
"action-bar action-bar"
|
|
||||||
"search-bar search-bar"
|
|
||||||
"radio-department radio-department"
|
|
||||||
"radio-credit-type radio-semester";
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-bar {
|
.radio-guide fieldset {
|
||||||
grid-area: action-bar;
|
input[type="checkbox"] {
|
||||||
margin-bottom: 10px;
|
display: none;
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar {
|
|
||||||
grid-area: search-bar;
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: auto 200px;
|
|
||||||
grid-template-rows: auto;
|
|
||||||
grid-template-areas: "search-bar-input search-bar-button";
|
|
||||||
|
|
||||||
@media screen and (max-width: $medium-devices) {
|
|
||||||
grid-template-columns: auto auto;
|
|
||||||
grid-template-rows: auto;
|
|
||||||
grid-template-areas: "search-bar-input search-bar-button";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: $small-devices) {
|
|
||||||
grid-template-columns: auto;
|
|
||||||
grid-template-rows: auto;
|
|
||||||
grid-template-areas: "search-bar-input";
|
|
||||||
|
|
||||||
.search-bar-button {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar-input {
|
|
||||||
grid-area: search-bar-input;
|
|
||||||
background: $pedagogy-light-blue;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar-button {
|
|
||||||
grid-area: search-bar-button;
|
|
||||||
background: $pedagogy-orange;
|
|
||||||
color: white;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-department {
|
|
||||||
grid-area: radio-department;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-credit-type {
|
|
||||||
grid-area: radio-credit-type;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-semester {
|
|
||||||
grid-area: radio-semester;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-guide input[type="radio"],
|
|
||||||
input[type="checkbox"] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-guide {
|
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
margin-bottom: 0;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
|
||||||
|
|
||||||
.radio-guide label {
|
label {
|
||||||
display: inline-block;
|
padding: 10px 20px;
|
||||||
background-color: $pedagogy-blue;
|
}
|
||||||
padding: 10px 20px;
|
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
font-size: 16px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-guide input[type="radio"]:checked+label {
|
input[type="checkbox"]:checked+label {
|
||||||
background-color: $pedagogy-orange;
|
background-color: $pedagogy-orange;
|
||||||
}
|
@include shadow;
|
||||||
|
}
|
||||||
.radio-guide input[type="checkbox"]:checked+label {
|
|
||||||
background-color: $pedagogy-orange;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-guide label:hover {
|
|
||||||
background-color: $pedagogy-hover-blue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block additional_js %}
|
{% block additional_js %}
|
||||||
<script type="module" src="{{ static('bundled/pedagogy/guide-index.js') }}"></script>
|
<script type="module" src="{{ static('bundled/pedagogy/guide-index.ts') }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
@@ -24,30 +24,32 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if user.has_perm("pedagogy.add_ue") %}
|
{% if user.has_perm("pedagogy.add_ue") %}
|
||||||
<div class="action-bar">
|
<div class="row gap">
|
||||||
<p>
|
<a href="{{ url('pedagogy:ue_create') }}" class="btn btn-blue"><i class="fa fa-plus"></i>{% trans %}Create UE{% endtrans %}</a>
|
||||||
<a href="{{ url('pedagogy:ue_create') }}">{% trans %}Create UE{% endtrans %}</a>
|
<a href="{{ url('pedagogy:moderation') }}" class="btn btn-grey">{% trans %}Moderate comments{% endtrans %}</a>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<a href="{{ url('pedagogy:moderation') }}">{% trans %}Moderate comments{% endtrans %}</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="pedagogy" x-data="ue_search" x-cloak>
|
<div class="pedagogy" x-data="ue_search" x-cloak>
|
||||||
<form id="search_form">
|
<form id="search_form" class="">
|
||||||
<div class="search-form-container">
|
<div class="search-form-container">
|
||||||
<div class="search-bar">
|
<fieldset>
|
||||||
|
<label for="search_input">{% trans %}Search UE{% endtrans %}</label>
|
||||||
<input
|
<input
|
||||||
id="search_input"
|
id="search_input"
|
||||||
class="search-bar-input"
|
class="search-bar-input"
|
||||||
type="text"
|
type="search"
|
||||||
name="search"
|
name="search"
|
||||||
|
placeholder=""
|
||||||
x-model.debounce.500ms="search"
|
x-model.debounce.500ms="search"
|
||||||
/>
|
/>
|
||||||
</div>
|
</fieldset>
|
||||||
<div class="radio-department">
|
<fieldset>
|
||||||
<div class="radio-guide">
|
<input type="checkbox" class="switch" name="hide_closed_ues" id="hide-closed-ues">
|
||||||
|
<label for="hide-closed-ues">{% trans %}Show closed UEs{% endtrans %}</label>
|
||||||
|
</fieldset>
|
||||||
|
<div class="row gap-3x margin-bottom radio-guide">
|
||||||
|
<fieldset>
|
||||||
{% set departments = [
|
{% set departments = [
|
||||||
("EDIM", "EDIM"), ("ENERGIE", "EE"), ("IMSI", "IMSI"),
|
("EDIM", "EDIM"), ("ENERGIE", "EE"), ("IMSI", "IMSI"),
|
||||||
("INFO", "GI"), ("GMC", "MC"), ("HUMA", "HUMA"), ("TC", "TC")
|
("INFO", "GI"), ("GMC", "MC"), ("HUMA", "HUMA"), ("TC", "TC")
|
||||||
@@ -56,16 +58,16 @@
|
|||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="department"
|
name="department"
|
||||||
id="radio{{ real_name }}"
|
id="radio_{{ real_name }}"
|
||||||
value="{{ real_name }}"
|
value="{{ real_name }}"
|
||||||
x-model="department"
|
x-model="department"
|
||||||
/>
|
/>
|
||||||
<label for="radio{{ real_name }}">{% trans %}{{ display_name }}{% endtrans %}</label>
|
<label for="radio_{{ real_name }}" class="btn btn-blue">
|
||||||
|
{% trans %}{{ display_name }}{% endtrans %}
|
||||||
|
</label>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</fieldset>
|
||||||
</div>
|
<fieldset>
|
||||||
<div class="radio-credit-type">
|
|
||||||
<div class="radio-guide">
|
|
||||||
{% for credit_type in ["CS", "TM", "EC", "QC", "OM"] %}
|
{% for credit_type in ["CS", "TM", "EC", "QC", "OM"] %}
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@@ -74,18 +76,21 @@
|
|||||||
value="{{ credit_type }}"
|
value="{{ credit_type }}"
|
||||||
x-model="credit_type"
|
x-model="credit_type"
|
||||||
/>
|
/>
|
||||||
<label for="radio{{ credit_type }}">{% trans %}{{ credit_type }}{% endtrans %}</label>
|
<label for="radio{{ credit_type }}" class="btn btn-blue">
|
||||||
|
{% trans %}{{ credit_type }}{% endtrans %}
|
||||||
|
</label>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</fieldset>
|
||||||
</div>
|
<fieldset>
|
||||||
|
|
||||||
<div class="radio-semester">
|
|
||||||
<div class="radio-guide">
|
|
||||||
<input type="checkbox" name="semester" id="radioAUTUMN" value="AUTUMN" x-model="semester"/>
|
<input type="checkbox" name="semester" id="radioAUTUMN" value="AUTUMN" x-model="semester"/>
|
||||||
<label for="radioAUTUMN"><i class="fa fa-leaf"></i></label>
|
<label for="radioAUTUMN" class="btn btn-no-text btn-blue">
|
||||||
|
<i class="fa fa-leaf"></i>
|
||||||
|
</label>
|
||||||
<input type="checkbox" name="semester" id="radioSPRING" value="SPRING" x-model="semester"/>
|
<input type="checkbox" name="semester" id="radioSPRING" value="SPRING" x-model="semester"/>
|
||||||
<label for="radioSPRING"><i class="fa-regular fa-sun"></i></label>
|
<label for="radioSPRING" class="btn btn-no-text btn-blue">
|
||||||
</div>
|
<i class="fa-regular fa-sun"></i>
|
||||||
|
</label>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user