{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block head %}
.teacher-list {
margin-left: 200px;
height: 100%;
width: 350px;
position: fixed;
overflow:hidden;
overflow-y:scroll;
border-right: 1px solid;
border-color: #d3d3d3;
}
.teacher-list-title {
line-height: 1.3;
height: 4px;
}
.teacher-list-text {
line-height: 1.3;
padding-bottom: 0px;
font-weight: normal;
height: 4px;
}
.teacher-body {
padding-left: 570px;
padding-top: 10px;
text-align: center;
}
.icon-only-button {
background: transparent;
border: none !important;
padding: 0 0 0 0;
}
.search input {
padding-left: 10px;
height: 30px;
width: 220px;
border: none;
}
.line {
margin-left: 550px;
width: 100%;
border-bottom: 1px solid black;
position: absolute;
}
{% endblock %}
{% block content %}
{% for instance in teachers %}
{{ instance.fullname }}
{{ instance.school }}
{% endfor %}
{% if selected_teacher != "" %}
{{ selected_teacher.fullname }}
{% csrf_token %}
{% csrf_token %}
{{ form|crispy }}
Create
{% endif %}
Modal title
...
Close
Save changes
{% endblock %}
< /code>
Внедрение начальной загрузки: < /p>
{% block head %}
{% endblock %}
.content {
padding-left: 220px;
padding-top: 10px;
}
.btn, btn-success {
background-color: #3c89d0 !important;
border-color: #1184e8 !important;
}
CT Behaviour Management
{% include 'nav.html' %}
{% block content %}
{% endblock %}
Подробнее здесь: https://stackoverflow.com/questions/687 ... o-template
Мобильная версия