Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wizard refactoring #655

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "common/base.html" %}
{% load crispy_forms_tags %}
{% load static %}


Expand All @@ -14,9 +13,6 @@


{% block content %}
<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script>
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/>

<h1>Secure Directory: Data Description</h1><hr>

Expand All @@ -28,41 +24,6 @@ <h1>Secure Directory: Data Description</h1><hr>

<p>Please respond to the following questions to provide us with more information about your data.</p>

<form action="" method="post">
{% csrf_token %}
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form|crispy }}
{% endfor %}
{% else %}
{{ wizard.form|crispy }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.first }}">
First Step
</button>
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.prev }}">
Previous Step
</button>
{% endif %}
<input class="btn btn-primary" type="submit" value="Next Step"/>
</form>
<br>

<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
{% include wizard_form.html %}

{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "common/base.html" %}
{% load crispy_forms_tags %}
{% load static %}


Expand All @@ -14,7 +13,6 @@


{% block content %}
<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>

<h1>Secure Directory: Directory Name</h1><hr>

Expand All @@ -37,41 +35,6 @@ <h1>Secure Directory: Directory Name</h1><hr>
Both directories will have the same name on the cluster.
</p>

<form action="" method="post">
{% csrf_token %}
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form|crispy }}
{% endfor %}
{% else %}
{{ wizard.form|crispy }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.first }}">
First Step
</button>
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.prev }}">
Previous Step
</button>
{% endif %}
<input class="btn btn-primary" type="submit" value="Submit"/>
</form>
<br>

<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
{% include "wizard_form.html" %}

{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "common/base.html" %}
{% load crispy_forms_tags %}
{% load static %}


Expand All @@ -14,9 +13,6 @@


{% block content %}
<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script>
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/>

<h1>Secure Directory: PI Selection</h1><hr>

Expand All @@ -28,23 +24,6 @@ <h1>Secure Directory: PI Selection</h1><hr>

<p>Select a PI of the project. This PI will be asked to sign a Researcher Use Agreement during the approval process.</p>

<form action="" method="post">
{% csrf_token %}
matthew-li marked this conversation as resolved.
Show resolved Hide resolved
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form|crispy }}
{% endfor %}
{% else %}
{{ wizard.form|crispy }}
{% endif %}
</table>
<input class="btn btn-primary" type="submit" value="Next Step"/>
</form>
<br>

<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
{% include "wizard_form.html" %}

{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "common/base.html" %}
{% load crispy_forms_tags %}
{% load static %}


Expand All @@ -14,9 +13,6 @@


{% block content %}
<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script>
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/>

<h1>Secure Directory: Research Data Management Team</h1><hr>

Expand All @@ -26,41 +22,6 @@ <h1>Secure Directory: Research Data Management Team</h1><hr>
<li>{{ breadcrumb_pi }}</li>
</ol>

<form action="" method="post">
{% csrf_token %}
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form|crispy }}
{% endfor %}
{% else %}
{{ wizard.form|crispy }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.first }}">
First Step
</button>
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.prev }}">
Previous Step
</button>
{% endif %}
<input class="btn btn-primary" type="submit" value="Next Step"/>
</form>
<br>

<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
{% include "wizard_form.html" %}

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ <h1>Review and Update Allowance Details</h1>
<hr>

<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script>
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/>

<p>Review allowance details, updating as needed. These are used to generate the Researcher Use Agreement (RUA).{% if notify_pi %}
Clicking "Submit and Notify" will generate the RUA and send an email notification to the PI.{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ <h1>Review and Update Allowance Details</h1>
<hr>

<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script>
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/>

<p>Review allowance details, updating as needed. These are used to generate the Memorandum of Understanding (MOU).{% if notify_pi %}
Clicking "Submit and Notify" will generate the MOU and send an email notification to the PI.{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@


{% block content %}
<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script>
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/>

<h1>Select an Allocation Period</h1><hr>

<p>
Expand All @@ -27,42 +23,7 @@ <h1>Select an Allocation Period</h1><hr>
then.
</p>

<form action="" method="post">
{% csrf_token %}
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form|crispy }}
{% endfor %}
{% else %}
{{ wizard.form|crispy }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.first }}">
First Step
</button>
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.prev }}">
Previous Step
</button>
{% endif %}
<input class="btn btn-primary" type="submit" value="Next Step"/>
</form>
<br>

<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
{% include "wizard_form.html" %}

<script>
$('select').selectize({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


{% block content %}
<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>

<h1>New Project Details</h1><hr>

<ol class="breadcrumb">
Expand All @@ -27,41 +27,6 @@ <h1>New Project Details</h1><hr>

<p>You are creating a new project. Please provide the following details:</p>

<form action="" method="post">
{% csrf_token %}
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form|crispy }}
{% endfor %}
{% else %}
{{ wizard.form|crispy }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.first }}">
First Step
</button>
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.prev }}">
Previous Step
</button>
{% endif %}
<input class="btn btn-primary" type="submit" value="Next Step"/>
</form>
<br>

<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
{% include "wizard_form.html" %}

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@


{% block content %}
<script type="text/javascript" src="{% static 'common/js/leave_form_alert.js' %}"></script>
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script>
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/>

<h1>New Project Survey</h1><hr>

Expand All @@ -32,41 +29,6 @@ <h1>New Project Survey</h1><hr>

<p>Please respond to the following questions to provide us with more information about your project and computational needs.</p>

<form action="" method="post">
{% csrf_token %}
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form|crispy }}
{% endfor %}
{% else %}
{{ wizard.form|crispy }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.first }}">
First Step
</button>
<button
class="btn btn-secondary"
formnovalidate="formnovalidate"
name="wizard_goto_step"
type="submit"
value="{{ wizard.steps.prev }}">
Previous Step
</button>
{% endif %}
<input class="btn btn-primary" type="submit" value="Next Step"/>
</form>
<br>

<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
{% include "wizard_form.html" %}

{% endblock %}
Loading
Loading