Skip to content
Snippets Groups Projects
Commit 7f145cea authored by Andrew Rudenets's avatar Andrew Rudenets
Browse files

Added default styles for search results

parent 07e96db2
Branches
Tags
No related merge requests found
......@@ -22,6 +22,12 @@
&.P2Width {
width: 18.5% !important;
}
&.Width65 {
width: 65% !important;
}
&.Width35 {
width: 33.5% !important;
}
&.marginBetween {
margin-bottom: 5px;
//&:last-child { margin-bottom: 0; }
......
......@@ -18,3 +18,32 @@
#resultPrototype {
display: none;
}
.ResultRow {
.FirstLine {
font-size: 1.1em;
font-weight: 600;
}
.SecondLine {
font-size: 0.8em;
width: 90%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.ActionBar {
text-align: right;
display: block;
vertical-align: middle;
&.Padding
{
padding: 8px 0;
}
}
background: #EDF1F5;
overflow: hidden;
margin: 10px 0;
padding: 7px 10px;
box-shadow: 2px 2px 2px #DDE8F0;
}
......@@ -38,7 +38,7 @@
<select class="SelectDepartment defaultForm {{ Faculties|length ? "HalfWidth" : "FullWidth" }} FRight" {{ Departments|length ?: "disabled" }}>
<option value="0">-- Фильтр по кафедре --</option>
{% for Dep in Departments %}
<option value="{{ Dep.ID }}">{{ Dep.Name|default('Служебная кафедра') }}</option>
<option value="{{ Dep.ID }}">{{ Dep.Name|default('Без кафедры') }}</option>
{% endfor %}
</select>
</div>
......
......@@ -12,19 +12,19 @@
{% block _ResultPrototype %}
<div class="goodClearFix">
<div class="defaultForm FLeft">
<div class="StudentName">
<a href="{{ URL.site('office/students/profile/[# ID #]') }}">
<div class="FirstLine">
<a href="{{ URL.site('office/students/[# ID #]') }}">
[# LastName #] [# FirstName #] [# SecondName #]
</a>
</div>
<div class="SecondLine">[# GradeNum #] курс, [# GroupNum #] группа</div>
</div>
<div class="defaultForm FRight">
<div class="StudentGroup">[# GradeNum #].[# GroupNum #]</div>
<div class="ActionBar Padding">&nbsp;</div>
</div>
</div>
{% endblock %}
{% block main_top_title %}Студенты{% endblock %}
{% block office_content %}
......
......@@ -12,19 +12,20 @@
{% block _ResultPrototype %}
<div class="goodClearFix">
<div class="defaultForm FLeft">
<div class="StudentName">
<a href="{{ URL.site('office/teachers/profile/[# ID #]') }}">
<div class="defaultForm FLeft Width65">
<div class="FirstLine">
<a href="{{ URL.site('office/teachers/[# ID #]') }}">
[# LastName #] [# FirstName #] [# SecondName #]
</a>
</div>
<div class="SecondLine">[# DepName #]</div>
</div>
<div class="defaultForm FRight">
<div class="StudentGroup">[# DepName #]</div>
<div class="defaultForm FRight Width35">
<div class="ActionBar Padding">&nbsp;</div>
</div>
</div>
{% endblock %}
{% block office_content %}
{{ search.control(block('_ResultPrototype'), []) }}
{{ search.control(block('_ResultPrototype'), Faculties, Departments) }}
{% endblock %}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment