nopaque/app/templates/jobs/job.html.j2

177 lines
6.8 KiB
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
{% from "jobs/_breadcrumbs.html.j2" import breadcrumbs with context %}
2019-08-09 09:49:09 +00:00
{% block main_attribs %} class="service-scheme" data-service="{{ job.service }}"{% endblock main_attribs %}
2020-09-21 08:36:04 +00:00
2020-10-26 12:04:12 +00:00
{% block page_content %}
<div class="container">
<div class="row">
2021-11-30 15:22:16 +00:00
<div class="col s12" data-job-id="{{ job.hashid }}" data-user-id="{{ job.user.hashid }}" id="job-display">
<div class="row">
<div class="col s8 m9 l10">
<h1 id="title"><i style="font-size: inherit;" class="nopaque-icons service-icon" data-service="{{ job.service }}"></i> <span class="job-title"></span></h1>
</div>
<div class="col s4 m3 l2 right-align">
<p>&nbsp;</p>
<p>&nbsp;</p>
2021-05-05 08:05:12 +00:00
<span class="chip status status-text status-color white-text"></span>
<div class="active preloader-wrapper small status-spinner">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
2020-05-13 14:36:06 +00:00
</div>
2020-02-12 13:48:29 +00:00
</div>
</div>
</div>
</div>
2020-05-13 14:36:06 +00:00
<div class="card service-color-border border-darken" data-service="{{ job.service }}" style="border-top: 10px solid">
<div class="card-content">
<div class="row">
2020-10-26 12:04:12 +00:00
<div class="col s12">
<div class="input-field">
<input class="job-description" disabled id="job-description" type="text">
<label for="job-description">Description</label>
</div>
2020-10-26 12:04:12 +00:00
</div>
2020-05-13 14:36:06 +00:00
2020-10-26 12:04:12 +00:00
<div class="col s12 m6">
<div class="input-field">
<input class="job-creation-date" disabled id="job-creation-date" type="text">
<label for="job-creation-date">Creation date</label>
2020-10-26 12:04:12 +00:00
</div>
</div>
2020-02-12 13:48:29 +00:00
2020-10-26 12:04:12 +00:00
<div class="col s12 m6">
<div class="input-field">
<input class="job-end-date" disabled id="job-end-date" type="text">
<label for="job-end-date">End date</label>
2020-10-26 12:04:12 +00:00
</div>
</div>
2020-05-13 14:36:06 +00:00
2020-10-26 12:04:12 +00:00
<div class="col s12 m4">
<div class="input-field">
<input class="job-service" disabled id="job-service" type="text">
<label for="job-service">Service</label>
2020-10-26 12:04:12 +00:00
</div>
</div>
2020-02-12 13:48:29 +00:00
2020-10-26 12:04:12 +00:00
<div class="col s12 m4">
<div class="input-field">
<input class="job-service-args" disabled id="job-service-args" type="text">
<label for="job-service-args">Service arguments</label>
2020-10-26 12:04:12 +00:00
</div>
</div>
2020-05-13 14:36:06 +00:00
2020-10-26 12:04:12 +00:00
<div class="col s12 m4">
<div class="input-field">
<input class="job-service-version" disabled id="job-service-version" type="text">
<label for="job-service-version">Service version</label>
2020-10-26 12:04:12 +00:00
</div>
</div>
2020-02-12 13:48:29 +00:00
</div>
2020-05-13 14:36:06 +00:00
</div>
2020-10-26 12:04:12 +00:00
<div class="card-action right-align">
{% if current_user.is_administrator() %}
<a class="btn hide modal-trigger restart-job-trigger waves-effect waves-light" data-target="restart-job-modal"><i class="material-icons left">repeat</i>Restart</a>
2020-10-26 12:04:12 +00:00
{% endif %}
<!-- <a href="#" class="btn disabled waves-effect waves-light"><i class="material-icons left">settings</i>Export Parameters</a> -->
<a class="btn modal-trigger red waves-effect waves-light" data-target="delete-job-modal"><i class="material-icons left">delete</i>Delete</a>
</div>
</div>
2020-05-13 14:36:06 +00:00
</div>
<div class="col s12 nopaque-ressource-list" data-job-id="{{ job.hashid }}" data-ressource-type="JobInput" data-user-id="{{ job.user.hashid }}">
2020-10-26 12:04:12 +00:00
<div class="card">
<div class="card-content">
2020-10-26 12:04:12 +00:00
<div class="row">
<div class="col s12 m2">
<span class="card-title"><i class="left material-icons" style="font-size: inherit;">input</i>Inputs</span>
<p>Original input files.</p>
</div>
<div class="col s12 m10">
2021-12-08 10:25:52 +00:00
<table>
2020-10-26 12:04:12 +00:00
<thead>
<tr>
<th>Filename</th>
<th></th>
2020-10-26 12:04:12 +00:00
</tr>
</thead>
<tbody class="list"></tbody>
2020-10-26 12:04:12 +00:00
</table>
2020-11-22 15:03:41 +00:00
<ul class="pagination"></ul>
2020-10-26 12:04:12 +00:00
</div>
</div>
2020-05-13 14:36:06 +00:00
</div>
</div>
</div>
<div class="col s12 nopaque-ressource-list" data-job-id="{{ job.hashid }}" data-ressource-type="JobResult" data-user-id="{{ job.user.hashid }}">
2020-10-26 12:04:12 +00:00
<div class="card">
<div class="card-content">
<div class="row">
<div class="col s12 m2">
<span class="card-title"><i class="left material-icons" style="font-size: inherit;">done</i>Results</span>
<p>Processed result files.</p>
</div>
<div class="col s12 m10">
2021-12-08 10:25:52 +00:00
<table>
2020-10-26 12:04:12 +00:00
<thead>
<tr>
<th>Description</th>
<th>Filename</th>
<th></th>
2020-10-26 12:04:12 +00:00
</tr>
</thead>
<tbody class="list"></tbody>
2020-10-26 12:04:12 +00:00
</table>
<ul class="pagination"></ul>
2020-10-26 12:04:12 +00:00
</div>
</div>
2020-02-12 13:48:29 +00:00
</div>
</div>
2020-05-13 14:36:06 +00:00
</div>
</div>
2019-08-09 09:49:09 +00:00
</div>
2020-10-26 12:04:12 +00:00
{% endblock page_content %}
2019-11-15 10:45:04 +00:00
2021-12-01 13:15:20 +00:00
{% block modals %}
{{ super() }}
<div id="delete-job-modal" class="modal">
<div class="modal-content">
<h4>Confirm deletion</h4>
<p>Do you really want to delete the job <span class="job-title"></span>? All associated files will be permanently deleted.</p>
</div>
<div class="modal-footer">
<a href="#!" class="btn modal-close waves-effect waves-light">Cancel</a>
<a class="btn modal-close red waves-effect waves-light" href="{{ url_for('jobs.delete_job', job_id=job.id) }}"><i class="material-icons left">delete</i>Delete</a>
</div>
</div>
{% if current_user.is_administrator() %}
<div id="restart-job-modal" class="modal">
<div class="modal-content">
<h4>Confirm restart</h4>
<p>Do you really want to restart the job <span class="job-title"></span>? All log and result files will be permanently deleted.</p>
</div>
<div class="modal-footer">
<a href="#!" class="btn modal-close waves-effect waves-light">Cancel</a>
<a class="btn modal-close red waves-effect waves-light" href="{{ url_for('jobs.restart', job_id=job.id) }}"><i class="material-icons left">restart</i>Restart</a>
</div>
</div>
{% endif %}
{% endblock modals %}
2020-10-26 12:04:12 +00:00
{% block scripts %}
{{ super() }}
<script>
let jobDisplay = new JobDisplay(document.querySelector('#job-display'));
2019-11-15 10:45:04 +00:00
</script>
2020-10-26 12:04:12 +00:00
{% endblock scripts %}