Commit b174033b authored by Martin Lehoux's avatar Martin Lehoux

three column card display

parent 1fe31eb2
<div class="ui container">
<div class="ui fluid card">
<div class="content">
<div class="header">
<i class="folder outline icon"></i>
{{ course.name }}
</div>
<div class="description">{{ course.description }}</div>
<div id="teacher_list">
{% for teacher in course.teachers.all %}
{% include "core/components/teacher_button.html" with teacher=teacher %}
{% endfor %}
</div>
<div class="ui fluid card">
<div class="content">
<div class="header">
<i class="folder outline icon"></i>
{{ course.name }}
</div>
<div class="extra content">
<p class="ui red label">{{course.year}}</p>
<p class="ui {% if course.type == 'Electif' %}grey{% else %}teal{% endif %} label">{{ course.type }}</p>
</div>
<div class="ui two bottom attached buttons">
<a href="{% url 'core:accept' 'course' course.pk %}" class="ui green basic labeled icon fluid button"><i class="checkmark icon"></i>Accepter</a>
<a href="{% url 'core:reject' 'course' course.pk %}" class="ui red basic labeled icon fluid button"><i class="remove icon"></i>Rejeter</a>
<div class="description">{{ course.description }}</div>
<div id="teacher_list">
{% for teacher in course.teachers.all %}
{% include "core/components/teacher_button.html" %}
{% endfor %}
</div>
</div>
<div class="extra content">
<p class="ui red label">{{course.year}}</p>
<p class="ui {% if course.type == 'Electif' %}grey{% else %}teal{% endif %} label">{{ course.type }}</p>
</div>
<div class="ui two bottom attached buttons">
<a href="{% url 'core:accept' 'course' course.pk %}" class="ui green basic labeled icon fluid button"><i class="checkmark icon"></i>Accepter</a>
<a href="{% url 'core:reject' 'course' course.pk %}" class="ui red basic labeled icon fluid button"><i class="remove icon"></i>Rejeter</a>
</div>
</div>
\ No newline at end of file
<div class="ui container">
<div class="ui fluid card">
<div class="content">
<div class="header">
<i class="student icon"></i>
{{ teacher.firstName }} {{teacher.lastName }}
</div>
<div class="ui list">
<div class="item" title="Email"><i class="envelope icon"></i> {{ teacher.email }}</div>
<div class="item" title="Département"><i class="industry icon"></i> {{ teacher.department }}</div>
<div class="item" title="Bureau"><i class="coffee icon"></i> {{ teacher.office }}</div>
</div>
<div class="ui fluid card">
<div class="content">
<div class="header">
<i class="student icon"></i>
{{ teacher.firstName }} {{teacher.lastName }}
</div>
<div class="ui two bottom attached buttons">
<a href="{% url 'core:accept' 'teacher' teacher.pk %}" class="ui green basic labeled icon fluid button">
<i class="checkmark icon"></i>
Accepter
</a>
<a href="{% url 'core:reject' 'teacher' teacher.pk %}" class="ui red basic labeled icon fluid button">
<i class="remove icon"></i>
Rejeter
</a>
<div class="ui list">
<div class="item" title="Email"><i class="envelope icon"></i> {{ teacher.email }}</div>
<div class="item" title="Département"><i class="industry icon"></i> {{ teacher.department }}</div>
<div class="item" title="Bureau"><i class="coffee icon"></i> {{ teacher.office }}</div>
</div>
</div>
<div class="ui two bottom attached buttons">
<a href="{% url 'core:accept' 'teacher' teacher.pk %}" class="ui green basic labeled icon fluid button">
<i class="checkmark icon"></i>
Accepter
</a>
<a href="{% url 'core:reject' 'teacher' teacher.pk %}" class="ui red basic labeled icon fluid button">
<i class="remove icon"></i>
Rejeter
</a>
</div>
</div>
\ No newline at end of file
......@@ -19,25 +19,37 @@
</div>
<div class="ui horizontal divider">Cours à accepter</div>
{% for course in course_list %}
{% include "core/components/course_moderation.html" %}
{% endfor %}
<div class="ui cards three column stackable grid container">
{% for course in course_list %}
{% include "core/components/course_moderation.html" %}
{% endfor %}
</div>
<div class="ui horizontal divider">Documents à accepter</div>
{% for document in document_list %}
{% include "core/components/document_moderation.html" %}
{% endfor %}
<div class="ui cards three column stackable grid container">
{% for document in document_list %}
{% include "core/components/document_moderation.html" %}
{% endfor %}
</div>
<div class="ui horizontal divider">Commentaires à modérer</div>
{% for comment in document_comment_list %}
{% include "core/components/comment_moderation.html" with type='document' %}
{% endfor %}
{% for comment in course_comment_list %}
{% include "core/components/comment_moderation.html" with type='course' %}
{% endfor %}
<div class="ui cards three column stackable grid container">
{% for comment in document_comment_list %}
{% include "core/components/comment_moderation.html" with type='document' %}
{% endfor %}
{% for comment in course_comment_list %}
{% include "core/components/comment_moderation.html" with type='course' %}
{% endfor %}
</div>
<div class="ui horizontal divider">Nouveaux professeurs à accepter</div>
{% for teacher in teacher_list %}
{% include "core/components/teacher_moderation.html" %}
{% endfor %}
<div class="ui cards three column stackable grid container">
{% for teacher in teacher_list %}
{% include "core/components/teacher_moderation.html" %}
{% endfor %}
</div>
{% endblock content %}
\ No newline at end of file
Markdown is supported
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