Skip to content

Commit

Permalink
Add new sub title for experiment (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatlinh300401 authored Jul 18, 2024
1 parent 5aecf50 commit 89f2341
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions templates/experiments/experiment_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ <h2>{{ experiment.name }} (in Project: <a href="{% url 'project_detail' project_
{% if experiment.state_temp == 0 %}
<p style="color: rgb(255, 255, 0); font-style: italic;">This may take 3-5 business days to complete!</p>
{% elif experiment.state_temp == 1 %}
<p style="color: rgb(255, 183, 15); font-style: italic;">{{ experiment_status_temp }}</p>
<p style="color: rgb(255, 183, 15); font-style: italic;">Experiment is scheduled.</p>
{% elif experiment.state_temp == 2 %}
<p style="color: rgb(0, 254, 38); font-style: italic;">{{ experiment_status_temp }}</p>
<p style="color: rgb(0, 254, 38); font-style: italic;">Experiment is completed.</p>
{% elif experiment.state_temp == 3 %}
<p style="color: rgb(254, 0, 0); font-style: italic;">{{ experiment_status_temp }}</p>
<p style="color: rgb(254, 0, 0); font-style: italic;">There is an ERROR in your experiment. Please check our email for more information.</p>
{% else %}
<p style="color: rgb(254, 0, 0); font-style: italic;">{{ experiment_status_temp }}</p>
<p style="color: rgb(254, 0, 0); font-style: italic;">Experiment is CANCELLED. Please check our email for more information</p>
{% endif %}
<table class="table table-striped table-bordered my-4">
<tr>
Expand Down Expand Up @@ -151,13 +151,13 @@ <h2>{{ experiment.name }} (in Project: <a href="{% url 'project_detail' project_
{% endif %}
</td>
{% if is_creator or is_exp or admin or operator %}
<td>
<!-- <td>
<button class="btn btn-info mr-2"
style="background-color:#076AE0!important">
<a href="{% url 'experiment_status_update' experiment_uuid=experiment.uuid %}"
class="unlink">Update</a>
</button>
</td>
</td> -->
{% endif %}
</tr>
{% if experiment.state_temp == 1 %}
Expand All @@ -184,12 +184,17 @@ <h2>{{ experiment.name }} (in Project: <a href="{% url 'project_detail' project_
&emsp;
{% endif %}
{% if experiment.can_initiate %}
<button class="btn btn-success mr-2"
<!-- <button class="btn btn-success mr-2"
name="Initiate"
style="background-color:#076AE0!important">
<a href="{% url 'experiment_initiate' experiment_uuid=experiment.uuid %}"
class="unlink">Initiate
Development</a>
</button> -->
<button class="btn btn-info mr-2"
style="background-color:#076AE0!important">
<a href="{% url 'experiment_status_update' experiment_uuid=experiment.uuid %}"
class="unlink">Update</a>
</button>
{% endif %}
{% if experiment.state_temp == 0 %}
Expand Down

0 comments on commit 89f2341

Please sign in to comment.