Skip to content
Snippets Groups Projects

Add deadline to prevent further changes from staff.

Merged Andrea Callia D'Iddio requested to merge prevent-changes-from-staff into master
5 files
+ 57
4
Compare changes
  • Side-by-side
  • Inline
Files
5
  • a5e5c8d7
    Fix: for shortlisted-projects.html added a line so that it's the same as the student version. this allows the error message to show on the ranking page. otherwise the message only shows when the user clicks back to the projects page
    
    Feat: currently there is no way to view projects for staff after deadline. change to show edit/view depending on whether it's before/after deadline, respectively. this entailed adding a new view_projects function and a new page project-view.html (this is identical to the student version apart from the colour, so can refactor later).
+ 25
0
{% extends "components/layout.html" %}
{% macro project_details_section(label, value, style) %}
<section class="w3-section">
<div class="w3-quarter">
<h4 class="w3-text-teal">{{ label }}:</h4>
</div>
<div class="w3-rest">
<p>{{ value }}</p>
</div>
</section>
{% endmacro %}
{% block content %}
<div class="w3-content">
<div class="w3-container">
<h1 class="w3-center w3-text-teal">Project proposal</h1>
{{ project_details_section('Title', project.title) }}
{{ project_details_section('Proposer', person.full_name if person.full_name else person.username) }}
{{ project_details_section('Description', project.description) }}
</div>
</div>
{% endblock %}
Loading