|
@@ -19,49 +19,58 @@ limitations under the License.
|
|
|
{% block title %}Job Design List{% endblock %}
|
|
{% block title %}Job Design List{% endblock %}
|
|
|
{% block content %}
|
|
{% block content %}
|
|
|
<div id="jobsub_joblist" class="view">
|
|
<div id="jobsub_joblist" class="view">
|
|
|
- <h1>Job Designer: Job Designs</h1>
|
|
|
|
|
- <div class="jobsub_col_wrapper" data-filters="SplitView">
|
|
|
|
|
- <div class="jobsub_left_col left_col">
|
|
|
|
|
- {% include "types.html" %}
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="jobsub_right_col right_col">
|
|
|
|
|
- <div class="jobsub_topsection clearfix">
|
|
|
|
|
- <form class="jobsub_filter" data-filters="SubmitOnChange" action="{% url jobsub.list %}" method="get">
|
|
|
|
|
- <span class="filter_text">Filter by owner:</span>
|
|
|
|
|
- <input data-filters="OverText" name="owner" alt="filter by owner" value="{{ owner }}"/>
|
|
|
|
|
- <input data-filters="OverText" name="name" alt="filter by name" value="{{ name }}"/>
|
|
|
|
|
- <input class="submit" type="submit"/>
|
|
|
|
|
- </form>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <table data-filters="HtmlTable" class="sortable" cellpadding="0" cellspacing="0">
|
|
|
|
|
- <thead>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th>Owner</th>
|
|
|
|
|
- <th>Name</th>
|
|
|
|
|
- <th colspan="2">Last Modified</th>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </thead>
|
|
|
|
|
- <tbody>
|
|
|
|
|
- {% for jobdesign in jobdesigns %}
|
|
|
|
|
- <tr {% ifequal saved jobdesign.id %} class="jobsub_saved"{% endifequal %}>
|
|
|
|
|
- <td>{{ jobdesign.owner.username }}</td>
|
|
|
|
|
- <td>{{ jobdesign.name }}</td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span class="jobsub_actual_date" style="display: none">{{ jobdesign.last_modified|date:"U" }}</span>
|
|
|
|
|
- {{ jobdesign.last_modified|timesince }} ago
|
|
|
|
|
- </td>
|
|
|
|
|
- <td class="jobsub_listing_actions">
|
|
|
|
|
- <a title="Copy design" class="copy frame_tip" href="{{ jobdesign.clone_url }}">copy</a>
|
|
|
|
|
- <a title="Edit this design" class="edit frame_tip" href="{{ jobdesign.edit_url }}">edit</a>
|
|
|
|
|
- <a title="Delete this design" alt="Are you sure you want to delete this design?" class="delete frame_tip" href="{{ jobdesign.delete_url }}">delete</a>
|
|
|
|
|
- <a title="Launch job with this design" class="run frame_tip" href="{{ jobdesign.submit_url }}">submit to cluster</a>
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- {% endfor %}
|
|
|
|
|
- </tbody>
|
|
|
|
|
- </table>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <h1>Job Designer: Job Designs</h1>
|
|
|
|
|
+ <div class="jobsub_col_wrapper" data-filters="SplitView">
|
|
|
|
|
+ <div class="jobsub_left_col left_col">
|
|
|
|
|
+ {% include "types.html" %}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="jobsub_right_col right_col">
|
|
|
|
|
+ <div class="jobsub_topsection clearfix">
|
|
|
|
|
+ <form class="jobsub_filter" data-filters="SubmitOnChange" action="{% url jobsub.list %}" method="get">
|
|
|
|
|
+ <span class="filter_text">Filter by owner:</span>
|
|
|
|
|
+ <input data-filters="ArtInput, OverText" data-art-input-type="search" name="owner" alt="filter by owner" value="{{ owner }}"/>
|
|
|
|
|
+ <input data-filters="ArtInput, OverText" data-art-input-type="search" name="name" alt="filter by name" value="{{ name }}"/>
|
|
|
|
|
+ <input class="submit" type="submit"/>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <table data-filters="HtmlTable" class="selectable sortable" cellpadding="0" cellspacing="0">
|
|
|
|
|
+ <thead>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th>Owner</th>
|
|
|
|
|
+ <th>Name</th>
|
|
|
|
|
+ <th colspan="2">Last Modified</th>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </thead>
|
|
|
|
|
+ <tbody>
|
|
|
|
|
+ {% for jobdesign in jobdesigns %}
|
|
|
|
|
+ <tr
|
|
|
|
|
+ {% ifequal saved jobdesign.id %} class="jobsub_saved"{% endifequal %}
|
|
|
|
|
+ data-filters="ContextMenu"
|
|
|
|
|
+ data-context-menu-actions="[{'events':['contextmenu','click:relay(.item-options)'],'menu':'ul.context-menu'}]"
|
|
|
|
|
+ data-dblclick-delegate= "{'dblclick_loads':'a.run'}">
|
|
|
|
|
+ <td>
|
|
|
|
|
+ {{ jobdesign.owner.username }}
|
|
|
|
|
+ <ul class="context-menu">
|
|
|
|
|
+ <li><a title="Launch job with this design" class="run frame_tip" href="{{ jobdesign.submit_url }}">submit to cluster</a></li>
|
|
|
|
|
+ <li><a title="Copy design" class="copy frame_tip" href="{{ jobdesign.clone_url }}">copy</a></li>
|
|
|
|
|
+ <li><a title="Edit this design" class="edit frame_tip" href="{{ jobdesign.edit_url }}">edit</a></li>
|
|
|
|
|
+ <li><a title="Delete this design" alt="Are you sure you want to delete this design?" class="delete frame_tip" href="{{ jobdesign.delete_url }}">delete</a></li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>{{ jobdesign.name }}</td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span class="jobsub_actual_date" style="display: none">{{ jobdesign.last_modified|date:"U" }}</span>
|
|
|
|
|
+ {{ jobdesign.last_modified|timesince }} ago
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <a class="item-options">options</a>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ {% endfor %}
|
|
|
|
|
+ </tbody>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
{% endblock %}
|
|
{% endblock %}
|