Commit 151c3d1d authored by Martin Lehoux's avatar Martin Lehoux

refactor course full

parent e8412e6b
<div class="ui container segment raised">
<div class="ui yellow right ribbon label">
<i class="star icon"> {{ course.like_list|length }}</i>
</div>
<div class="ui container">
<h1 class="ui header center aligned">
<i class="folder outline icon"></i>
<div class="content">{{ course.name }}</div>
</h1>
</div>
<div class="tags">
<p class="ui tag red label">{{course.year}}</p>
<p class="ui tag {% if course.type == 'Electif' %}grey{% else %}teal{% endif %} label">{{ course.type }}</p>
</div>
<div class="ui segment">
<p class="ui ribbon label">Description</p>
{{ 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 stackable four column centered grid">
<div class="column">
<div class="ui container">
<div class="ui fluid card">
<div class="content">
<div class="header">
<i class="folder outline icon"></i>
{{ course.name }}
<div class="ui right floated small yellow statistic">
<div class="value">
<i id="star-icon" class="star icon"></i>
<span id="stars">{{ course.like_list|length }}</span>
</div>
</div>
</div>
</div>
<div class="content">
<div class="description">{{ course.description }}</div>
</div>
<div class="content">
<div id="teacher-list">
{% for teacher in course.teachers.all %}
{% include "core/components/teacher_button.html" with teacher=teacher %}
{% 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 one bottom attached buttons">
<button id="like" class="ui green labeled icon fluid button"> <i class="thumbs up icon"></i> J'aime ce cours</button>
<button id="dislike" class="ui red labeled icon fluid button"> <i class="thumbs down icon"></i> Je n'aime plus ce cours</button>
<button id="load" class="ui loading fluid button">Loading...</button>
</div>
</div>
</div>
{% csrf_token %}
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.14/semantic.min.js"></script>
......
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