-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Form to turn phase into algorithm phase (#3265)
This PR adds a new view to turn prediction phases into algorithm phases. It adds a button to do so to the Challenge list view. The form takes the phases and the algorithm inputs and outputs as values: ![image](https://github.com/comic/grand-challenge.org/assets/30069334/24602b58-23eb-4a36-8bc4-3ce1925231be) The link to this form is both on the challenge request detail page: ![image](https://github.com/comic/grand-challenge.org/assets/30069334/eaee49e8-7ea6-444e-9207-965562df7760) and in the challenge admin: ![image](https://github.com/comic/grand-challenge.org/assets/30069334/617a1227-59e1-4874-b3db-5b2f7398acd8) Closes #2942
- Loading branch information
Showing
10 changed files
with
298 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
app/grandchallenge/evaluation/migrations/0050_alter_phase_options.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.10 on 2024-02-28 12:35 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("evaluation", "0049_alter_phase_options"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="phase", | ||
options={ | ||
"ordering": ("challenge", "submissions_open_at", "created"), | ||
"permissions": ( | ||
("create_phase_submission", "Create Phase Submission"), | ||
("configure_algorithm_phase", "Configure Algorithm Phase"), | ||
), | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/grandchallenge/evaluation/templates/evaluation/configure_algorithm_phases_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "base.html" %} | ||
{% load crispy_forms_tags %} | ||
{% load url %} | ||
|
||
{% block breadcrumbs %} | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a | ||
href="{% url 'challenges:list' %}">Challenges</a> | ||
</li> | ||
<li class="breadcrumb-item"><a | ||
href="{{ challenge.get_absolute_url }}">{% firstof challenge.title challenge.short_name %}</a></li> | ||
<li class="breadcrumb-item active" | ||
aria-current="page">Configure algorithm phases</li> | ||
</ol> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h3>Configure algorithm submission phases</h3> | ||
{% crispy form %} | ||
{% endblock %} | ||
|
||
{% block script %} | ||
{{ block.super }} | ||
{{ form.media }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.