Skip to content

Commit

Permalink
Displaying duration fields in testcase.get kiwitcms#1923
Browse files Browse the repository at this point in the history
- Displays fields directly from objects into get.html
- Removed todos
- Fixed duplicate line
  • Loading branch information
gasharova committed Mar 3, 2021
1 parent a6b881c commit 00b0da3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
15 changes: 3 additions & 12 deletions tcms/testcases/templates/testcases/get.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,18 @@ <h2 class="card-pf-title" style="text-align: left">
</h2>

<h2 class="card-pf-title" style="text-align: left">
{% with dummy_setup_duration=3000 %}
<span class="fa fa-clock-o"></span>{% trans 'Setup duration' %}:
{{ dummy_setup_duration }}
{% endwith %}
<!-- TODO: filter for duration readability -->
{{ object.setup_duration }}
</h2>

<h2 class="card-pf-title" style="text-align: left">
{% with dummy_testing_duration=2000 %}
<span class="fa fa-clock-o"></span>{% trans 'Testing duration' %}:
{{ dummy_testing_duration }}
{% endwith %}
<!-- TODO: filter for duration readability -->
{{ object.testing_duration }}
</h2>

<h2 class="card-pf-title" style="text-align: left">
{% with dummy_expected_duration=5000 %}
<span class="fa fa-clock-o"></span>{% trans 'Expected duration' %}:
{{ dummy_expected_duration }}
{% endwith %}
<!-- TODO: filter for duration readability -->
{{ object.expected_duration }}
</h2>

<h2 class="card-pf-title" style="text-align: left">
Expand Down
5 changes: 2 additions & 3 deletions tcms/testcases/templates/testcases/mutable.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@
<div class="form-group">
<label class="col-md-1 col-lg-1">{% trans "Setup duration" %}</label>
<div class="col-md-3 col-lg-3">
<!-- Todo: https://github.com/koss-lebedev/bootstrap-duration-picker -->
<!-- https://github.com/koss-lebedev/bootstrap-duration-picker -->
</div>

<label class="col-md-1 col-lg-1">{% trans "Testing duration" %}</label>
<div class="col-md-3 col-lg-3">
<!-- Todo: https://github.com/koss-lebedev/bootstrap-duration-picker -->
<!-- https://github.com/koss-lebedev/bootstrap-duration-picker -->
</div>
</div>

Expand Down Expand Up @@ -209,7 +209,6 @@
</div>
<div class="col-md-3 col-lg-3">
<input class="bootstrap-switch" name="{{ notify_formset.prefix }}-{{ forloop.counter0 }}-notify_on_case_update" type="checkbox" {% if notify_form.notify_on_case_update.value %}checked{% endif %} data-on-text="{% trans 'Yes' %}" data-off-text="{% trans 'No' %}">
<input class="bootstrap-switch" name="{{ notify_formset.prefix }}-{{ forloop.counter0 }}-notify_on_case_update" type="checkbox" {% if notify_form.notify_on_case_update.value %}checked{% endif %} data-on-text="{% trans 'Yes' %}" data-off-text="{% trans 'No' %}">
</div>

<div class="col-md-1 col-lg-1">
Expand Down

0 comments on commit 00b0da3

Please sign in to comment.