<commit_before>{% extends "base.html" %}
{% block content %}
	<div class="container">
		<h1 class="text-center">Liste des devoirs</h1>
		<!-- My Homeworks filter form -->
		<div style="width:100%;">
			<form style="width:100%;" class="form-inline text-center" method="post" role="form" action={{ url_for('list_homeworks') }}>
				{{ homework_filter_form.hidden_tag() }}
				{{ render_field(homework_filter_form.from_user_filter) }}	
				{{ render_field(homework_filter_form.to_user_filter) }}	
				{{ render_field(homework_filter_form.submit_homework,label_visible=false,class="btn btn-success") }}
			</form>
		</div>
		<div>
			<table class="table table-striped" id="homeworks_list">
			<tr class="text-center">
				<th class="text-center" style="width:25%;">Titre du film</th>
				<th class="text-center">Réalisateur</th>
				<th class="text-center">De:</th>
				<th class="text-center">A:</th>
				<th class="text-center">Note</th>
				<th class="text-center"></th>
				<th class="text-center"></th>
			</tr>
			{% for cur_homework in homeworks %}
			<tr class="text-center">
				<td><a href="{{ url_for('show_movie',movie_id=cur_homework.movie_id) }}">{{ cur_homework.movie.name }}</a></td>
				<td>{{ cur_homework.movie.director }}</td>
				<td>{{ cur_homework.user.nickname }}</td>
				<td>{{ cur_homework.homework_who_user.nickname }}</td>
				{% if cur_homework.mark == None %}
					{% if cur_homework.user.id == g.user.id %}
						<td><a class="btn btn-primary btn-xs" href="{{ url_for('mark_movie',movie_id_form=cur_homework.movie.id) }}">Noter</a>
					{% else %}
						 <td><a class="disabled btn btn-warning btn-xs">En cours</a>
					{% endif %}
				{% else %}
					<td><strong>{{ cur_homework.mark }}</strong></td>
				{% endif %}
				<td>
					{% if cur_homework.homework_who == g.user.id and cur_homework.mark == None %}
						<a href="{{ url_for("delete_homework", user_id=cur_homework.user.id,movie_id=cur_homework.movie.id) }}"<i class="fa fa-times fa-1x" id="redcross"/></a>
					{% endif %}
				</td>
			</tr>
			{% endfor %}
			</table>
		</div>
	</div>
{% endblock %}<commit_msg>Switch columns from and to on homework list (#83)<commit_after>{% extends "base.html" %}
{% block content %}
	<div class="container">
		<h1 class="text-center">Liste des devoirs</h1>
		<!-- My Homeworks filter form -->
		<div style="width:100%;">
			<form style="width:100%;" class="form-inline text-center" method="post" role="form" action={{ url_for('list_homeworks') }}>
				{{ homework_filter_form.hidden_tag() }}
				{{ render_field(homework_filter_form.from_user_filter) }}	
				{{ render_field(homework_filter_form.to_user_filter) }}	
				{{ render_field(homework_filter_form.submit_homework,label_visible=false,class="btn btn-success") }}
			</form>
		</div>
		<div>
			<table class="table table-striped" id="homeworks_list">
			<tr class="text-center">
				<th class="text-center" style="width:25%;">Titre du film</th>
				<th class="text-center">Réalisateur</th>
				<th class="text-center">De:</th>
				<th class="text-center">A:</th>
				<th class="text-center">Note</th>
				<th class="text-center"></th>
				<th class="text-center"></th>
			</tr>
			{% for cur_homework in homeworks %}
			<tr class="text-center">
				<td><a href="{{ url_for('show_movie',movie_id=cur_homework.movie_id) }}">{{ cur_homework.movie.name }}</a></td>
				<td>{{ cur_homework.movie.director }}</td>
				<td>{{ cur_homework.homework_who_user.nickname }}</td>
				<td>{{ cur_homework.user.nickname }}</td>
				{% if cur_homework.mark == None %}
					{% if cur_homework.user.id == g.user.id %}
						<td><a class="btn btn-primary btn-xs" href="{{ url_for('mark_movie',movie_id_form=cur_homework.movie.id) }}">Noter</a>
					{% else %}
						 <td><a class="disabled btn btn-warning btn-xs">En cours</a>
					{% endif %}
				{% else %}
					<td><strong>{{ cur_homework.mark }}</strong></td>
				{% endif %}
				<td>
					{% if cur_homework.homework_who == g.user.id and cur_homework.mark == None %}
						<a href="{{ url_for("delete_homework", user_id=cur_homework.user.id,movie_id=cur_homework.movie.id) }}"<i class="fa fa-times fa-1x" id="redcross"/></a>
					{% endif %}
				</td>
			</tr>
			{% endfor %}
			</table>
		</div>
	</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.2072135785007072, 'fraction_numerical': 0.005657708628005658, 'mean_word_length': 3.962573099415205, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3207738', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1541, 'n_words': 262}