<commit_before>{% extends 'activities/show.html' %}
{% block review_content %}
<div class="panel panel-default panel-shadow" data-collapsed="0">		
	<!-- panel body -->
	<div class="panel-body with-table">
		
		<table class="table table-bordered table-responsive">
		<form method="post">
		{% csrf_token %}
		<colgroup>
			<col class="col-md-2">
			<col class="col-md-4">
			<col class="col-md-6">
		</colgroup>
		<thead>
			<tr>
				<th colspan="2"></th>
				<th>الملاحظات</th>
			</tr>
		</thead>
		
		<tbody>
			<tr>
				<th>اسم النشاط</th>
				<td>{{ activity.name|linebreaksbr }}</td>
				<td>{{ review.name_notes }}</td>
			</tr>
			
			<tr>
				<th>وصف النشاط</th>
				<td>{{ activity.description|linebreaksbr }}</td>
				<td>{{ review.description_notes }}</td>
			</tr>
			
			<tr>
				<th>النادي المنظم</th>
				<td>
					<a href="{% url 'clubs:show' activity.primary_club.pk %}">
						{{ activity.primary_club }}
					</a>
				</td>
				<td rowspan="2">{{ review.clubs_notes }}</td>
			</tr>
			<tr>
				<th>الأندية المتعاونة</th>
				<td>
					{% if activity.secondary_clubs.all %}
					    <ul>
					    {% for club in activity.secondary_clubs.all %}
					    <li><a href="{% url 'clubs:show' club.pk %}">{{ club.name }}</a></li>
					    {% endfor %}
					    </ul>
					{% else %}
						لا يوجد.
					{% endif %}
				</td>
			</tr>
			<tr>
				<th>المواعيد</th>
				<td>
					<ul class="list-unstyled">
					{% for episode in activity.episode_set.all %}
					<li>
						<div class="row">
						<a href="#">
							<div>
								<i class="entypo-calendar"></i>
								{{ episode.start_date }}
								-
								{{ episode.end_date }}
							</div>
							<div>
								<i class="entypo-clock"></i>
								{{ episode.start_time }}
								-
								{{ episode.end_time }}
							</div>
							<div>
								<i class="entypo-location"></i>
								{{ episode.location }}
							</div>
						</a>
						</div>
					</li>
					{% endfor %}
					</ul>
				</td>
				<td>
					{{ review.datetime_notes }}
				</td>
			</tr>
			<tr>
				<th>الجهات المشاركة من داخل الجامعة</th>
				<td>
					{% if activity.inside_collaborators %}
						{{ activity.inside_collaborators|linebreaksbr }}
					{% else %}
						لا يوجد.
					{% endif %}
				</td>
				<td>{{ review.inside_notes }}</td>
			</tr>
			<tr>
				<th>الجهات المشاركة من خارج الجامعة</th>
				<td>
					{% if activity.outside_collaborators %}
						{{ activity.outside_collaborators|linebreaksbr }}
					{% else %}
						لا يوجد.
					{% endif %}
				</td>
				<td>{{ review.outside_notes }}</td>
			</tr>
			<tr>
				<th>عدد المنظمين</th>
				<td>{{ activity.organizers }}</td>
				<td>{{ review.organizers_notes }}</td>
			</tr>
			<tr>
				<th>عدد المشاركين</th>
				<td>{{ activity.participants }}</td>
				<td>{{ review.participants_notes }}</td>
			</tr>
			<tr>
                <th>متطلبات النشاط</th>
                <td>
                    {% if activity.requirements %}
                        {{ activity.requirements|linebreaksbr }}
                    {% else %}
                        لا يوجد.
                    {% endif %}
                </td>
                <td>
                    {{ review.requirement_notes }}
                </td>
            </tr>{% if activity.attachment_set.all %}
            <tr>
                <th>المستندات المرفقة</th>
                <td>
                    {% for attachment in activity.attachment_set.all %}
                    {% if forloop.first %}<ul>{% endif %}
                        <li>
                        <a href="{{ attachment.document.url }}">
                            {% if attachment.description %}{{ attachment.description }}{% else %}{{ attachment.filename }}{% endif %}
                        </a>
                        </li>
                    {% if forloop.last %}</ul>{% endif %}
                {% empty %}
                    <p>لا يوجد.</p>
                {% endfor %}
                </td>
				<td>{{ review.attachment_notes }}</td>
            </tr>
			{% endif %}<tr>
				<th>موعد تقديم الطلب</th>
				<td>{{ activity.submission_date }}</td>
				<td>{{ review.submission_date_notes }}</td>
			</tr>
			<tr><td colspan="3">
				<div class="col-md-offset-3 col-md-6">
					<div class="col-md-4" align="center">
					<div class="radio">
						<label>
							<input type="radio" name="is_approved" value="True"
							{% if review.is_approved.value == True %}checked=""{% endif %}>اقبل
						</label>
					</div>
					</div>
					<div class="col-md-4" align="center">
					<div class="radio">
						<label>
							<input type="radio" name="is_approved" value="None" 
							{% if review.is_approved.value == None %}checked=""{% endif %}>أبق معلقًا
						</label>
					</div>
					</div>
					<div class="col-md-4" align="center">
					<div class="radio">
						<label>
							<input type="radio" name="is_approved" value="False"
							{% if review.is_approved.value == False %}checked=""{% endif %}>ارفض
						</label>
					</div>
					</div>
				</div>
		    	<button type="submit" class="btn btn-primary btn-block">
		    		<span class="glyphicon glyphicon-ok-sign"></span> أرسل
		    	</button>
			</td></tr>
		</tbody>
	</form>
	</table>
		
	</div>
</div>
<script>
	$("textarea").removeAttr("cols")
		.removeAttr("rows")
		.css("height", "100%")
		.css("width", "100%")
		.addClass("form-control")
		.addClass("autogrow")
</script>
{% endblock %}
<commit_msg>Smarter date display.<commit_after>{% extends 'activities/show.html' %}
{% block review_content %}
<div class="panel panel-default panel-shadow" data-collapsed="0">		
	<!-- panel body -->
	<div class="panel-body with-table">
		
		<table class="table table-bordered table-responsive">
		<form method="post">
		{% csrf_token %}
		<colgroup>
			<col class="col-md-2">
			<col class="col-md-4">
			<col class="col-md-6">
		</colgroup>
		<thead>
			<tr>
				<th colspan="2"></th>
				<th>الملاحظات</th>
			</tr>
		</thead>
		
		<tbody>
			<tr>
				<th>اسم النشاط</th>
				<td>{{ activity.name|linebreaksbr }}</td>
				<td>{{ review.name_notes }}</td>
			</tr>
			
			<tr>
				<th>وصف النشاط</th>
				<td>{{ activity.description|linebreaksbr }}</td>
				<td>{{ review.description_notes }}</td>
			</tr>
			
			<tr>
				<th>النادي المنظم</th>
				<td>
					<a href="{% url 'clubs:show' activity.primary_club.pk %}">
						{{ activity.primary_club }}
					</a>
				</td>
				<td rowspan="2">{{ review.clubs_notes }}</td>
			</tr>
			<tr>
				<th>الأندية المتعاونة</th>
				<td>
					{% if activity.secondary_clubs.all %}
					    <ul>
					    {% for club in activity.secondary_clubs.all %}
					    <li><a href="{% url 'clubs:show' club.pk %}">{{ club.name }}</a></li>
					    {% endfor %}
					    </ul>
					{% else %}
						لا يوجد.
					{% endif %}
				</td>
			</tr>
			<tr>
				<th>المواعيد</th>
				<td>
					<ul class="list-unstyled">
					{% for episode in activity.episode_set.all %}
					<li>
						<div class="row">
						<a href="#">
							<div>
								<i class="entypo-calendar"></i>
                                {% if episode.start_date == episode.end_date %}
                                    {{ episode.start_date }}
                                {% else %}
								{{ episode.start_date }}
								-
								{{ episode.end_date }}
                                {% endif %}
							</div>
							<div>
								<i class="entypo-clock"></i>
								{{ episode.start_time }}
								-
								{{ episode.end_time }}
							</div>
							<div>
								<i class="entypo-location"></i>
								{{ episode.location }}
							</div>
						</a>
						</div>
					</li>
					{% endfor %}
					</ul>
				</td>
				<td>
					{{ review.datetime_notes }}
				</td>
			</tr>
			<tr>
				<th>الجهات المشاركة من داخل الجامعة</th>
				<td>
					{% if activity.inside_collaborators %}
						{{ activity.inside_collaborators|linebreaksbr }}
					{% else %}
						لا يوجد.
					{% endif %}
				</td>
				<td>{{ review.inside_notes }}</td>
			</tr>
			<tr>
				<th>الجهات المشاركة من خارج الجامعة</th>
				<td>
					{% if activity.outside_collaborators %}
						{{ activity.outside_collaborators|linebreaksbr }}
					{% else %}
						لا يوجد.
					{% endif %}
				</td>
				<td>{{ review.outside_notes }}</td>
			</tr>
			<tr>
				<th>عدد المنظمين</th>
				<td>{{ activity.organizers }}</td>
				<td>{{ review.organizers_notes }}</td>
			</tr>
			<tr>
				<th>عدد المشاركين</th>
				<td>{{ activity.participants }}</td>
				<td>{{ review.participants_notes }}</td>
			</tr>
			<tr>
                <th>متطلبات النشاط</th>
                <td>
                    {% if activity.requirements %}
                        {{ activity.requirements|linebreaksbr }}
                    {% else %}
                        لا يوجد.
                    {% endif %}
                </td>
                <td>
                    {{ review.requirement_notes }}
                </td>
            </tr>{% if activity.attachment_set.all %}
            <tr>
                <th>المستندات المرفقة</th>
                <td>
                    {% for attachment in activity.attachment_set.all %}
                    {% if forloop.first %}<ul>{% endif %}
                        <li>
                        <a href="{{ attachment.document.url }}">
                            {% if attachment.description %}{{ attachment.description }}{% else %}{{ attachment.filename }}{% endif %}
                        </a>
                        </li>
                    {% if forloop.last %}</ul>{% endif %}
                {% empty %}
                    <p>لا يوجد.</p>
                {% endfor %}
                </td>
				<td>{{ review.attachment_notes }}</td>
            </tr>
			{% endif %}<tr>
				<th>موعد تقديم الطلب</th>
				<td>{{ activity.submission_date }}</td>
				<td>{{ review.submission_date_notes }}</td>
			</tr>
			<tr><td colspan="3">
				<div class="col-md-offset-3 col-md-6">
					<div class="col-md-4" align="center">
					<div class="radio">
						<label>
							<input type="radio" name="is_approved" value="True"
							{% if review.is_approved.value == True %}checked=""{% endif %}>اقبل
						</label>
					</div>
					</div>
					<div class="col-md-4" align="center">
					<div class="radio">
						<label>
							<input type="radio" name="is_approved" value="None" 
							{% if review.is_approved.value == None %}checked=""{% endif %}>أبق معلقًا
						</label>
					</div>
					</div>
					<div class="col-md-4" align="center">
					<div class="radio">
						<label>
							<input type="radio" name="is_approved" value="False"
							{% if review.is_approved.value == False %}checked=""{% endif %}>ارفض
						</label>
					</div>
					</div>
				</div>
		    	<button type="submit" class="btn btn-primary btn-block">
		    		<span class="glyphicon glyphicon-ok-sign"></span> أرسل
		    	</button>
			</td></tr>
		</tbody>
	</form>
	</table>
		
	</div>
</div>
<script>
	$("textarea").removeAttr("cols")
		.removeAttr("rows")
		.css("height", "100%")
		.css("width", "100%")
		.addClass("form-control")
		.addClass("autogrow")
</script>
{% endblock %}

{'fraction_non_alphanumeric': 0.19053639154776955, 'fraction_numerical': 0.0032508578652700017, 'mean_word_length': 1.7318697582634435, 'pattern_counts': {'":': 0, '<': 377, '<?xml version=': 0, '>': 377, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4377392', 'n_tokens_mistral': 5395, 'n_tokens_neox': 3863, 'n_words': 724}