[9324] | 1 | @section customHeader {
|
---|
| 2 | <script type='text/javascript' src='@Url.Content("~/Content/job.model.js")'></script>
|
---|
| 3 | <script type='text/javascript' src='@Url.Content("~/Content/job.view.js")'></script>
|
---|
| 4 | <script type='text/javascript' src='@Url.Content("~/Content/job.controller.js")'></script>
|
---|
| 5 | <script type='text/javascript' src='@Url.Content("~/Content/moment.min.js")'></script>
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | @{
|
---|
| 9 | ViewBag.Title = "Jobs";
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | <script type="text/template" id="loadingTemplate">
|
---|
| 13 | <span><%= text %> <img src="@Url.Content("~/Content/ajax-loader.gif")" alt="Loading animation" class="hugeLoading" /> </span>
|
---|
| 14 | </script>
|
---|
| 15 |
|
---|
| 16 | <script type="text/template" id="jobRowTemplate">
|
---|
| 17 | <tr data-jobId="<%= Id%>">
|
---|
| 18 | <td><%= Id%></td>
|
---|
| 19 | <td>
|
---|
| 20 | <%= moment(DateCreated).format('YYYY-MM-DD HH:mm:ss') %>
|
---|
| 21 | </td>
|
---|
| 22 | <td><%= Name%></td>
|
---|
| 23 | <td><%= Resource%></td>
|
---|
| 24 | <td>
|
---|
| 25 | <% if (Loading) { %>
|
---|
| 26 | <img src="@Url.Content("~/Content/ajax-loader.gif")" alt="Loading animation" class="loader" />
|
---|
| 27 | <% }%>
|
---|
| 28 | <% if (State == 0) { %>
|
---|
| 29 | <span>Waiting...</span>
|
---|
| 30 | <% } else if (State == 1) { %>
|
---|
| 31 | <span>Calculating...</span>
|
---|
| 32 | <% } else if (State == 2) { %>
|
---|
| 33 | <img src="@Url.Content("~/Content/warning-2.png")" alt="Loading animation" class="loader" />
|
---|
| 34 | <span>Aborted</span>
|
---|
| 35 | <% } else if (State == 3) { %>
|
---|
| 36 | <img src="@Url.Content("~/Content/warning-2.png")" alt="Loading animation" class="loader" />
|
---|
| 37 | <span>Failed</span>
|
---|
| 38 | <% } else { %>
|
---|
| 39 | <img src="@Url.Content("~/Content/ok-2.png")" alt="Loading animation" class="loader" />
|
---|
| 40 | <span>Finished</span>
|
---|
| 41 | <% } %>
|
---|
| 42 | </td>
|
---|
| 43 | <td><button type="button" data-id="<%= Id %>" data-name="DeleteButton" >Delete</Button></td>
|
---|
| 44 | </tr>
|
---|
| 45 | </script>
|
---|
| 46 |
|
---|
| 47 | <script type="text/template" id="jobHeaderTemplate">
|
---|
| 48 | <thead>
|
---|
| 49 | <tr>
|
---|
| 50 | <th>Id</th>
|
---|
| 51 | <th>Created</th>
|
---|
| 52 | <th>Name</th>
|
---|
| 53 | <th>Resource</th>
|
---|
| 54 | <th>State</th>
|
---|
| 55 | <td>Delete</td>
|
---|
| 56 | </tr>
|
---|
| 57 | </thead>
|
---|
| 58 | </script>
|
---|
| 59 |
|
---|
| 60 | <script type="text/template" id="runTemplate">
|
---|
| 61 | <h3><%= name %></h3>
|
---|
| 62 | <div>
|
---|
| 63 | <table>
|
---|
| 64 | <thead>
|
---|
| 65 | <tr>
|
---|
| 66 | <td>Key</td>
|
---|
| 67 | <td>Value</td>
|
---|
| 68 | </tr>
|
---|
| 69 | </thead>
|
---|
| 70 | <tbody>
|
---|
| 71 | </tbody>
|
---|
| 72 | </table>
|
---|
| 73 | </div>
|
---|
| 74 | </script>
|
---|
| 75 |
|
---|
[9335] | 76 | <script type="text/template" id="runcollection_template">
|
---|
| 77 | <div>
|
---|
| 78 | <span>Plot:
|
---|
| 79 | <select class="plotType">
|
---|
| 80 | <option>Boxplot</option>
|
---|
| 81 | <option>Bubblechart</option>
|
---|
| 82 | <option>Datatable</option>
|
---|
| 83 | </select>
|
---|
| 84 | </span>
|
---|
| 85 | <span class="choice">
|
---|
| 86 | <span>X: <select class="x"></select></span>
|
---|
| 87 | <span>Y: <select class="y"></select></span>
|
---|
| 88 | </span>
|
---|
| 89 |
|
---|
| 90 | <span class="bubble">
|
---|
| 91 | Bubble Size: <select class="bubbleSize"><option>Constant</option></select> <div class="bubbleSlider"></div>
|
---|
| 92 | </span>
|
---|
[9324] | 93 |
|
---|
[9335] | 94 | <span class="datatable">
|
---|
| 95 | DataTable: <select class="datatableOptions"></select>
|
---|
| 96 | DataRow: <select class="datatableRow"></select>
|
---|
| 97 | </span>
|
---|
| 98 | <div class="resizer" style="width: 600px">
|
---|
| 99 | <div class="plot" id="tmp">
|
---|
| 100 | </div>
|
---|
| 101 | </div>
|
---|
| 102 | </div>
|
---|
| 103 | </script>
|
---|
| 104 |
|
---|
| 105 |
|
---|
[9324] | 106 | <script type='text/javascript'>
|
---|
| 107 | $(document).ready(function () {
|
---|
| 108 | var ctrl = new OAAS_CONTROLLER.JobPageController();
|
---|
| 109 | ctrl.create();
|
---|
| 110 | });
|
---|
| 111 |
|
---|
| 112 | </script>
|
---|
| 113 | <noscript>
|
---|
| 114 | <p>
|
---|
| 115 | Please activate JavaScript to view this page correctly!
|
---|
| 116 | </p>
|
---|
| 117 | </noscript>
|
---|
| 118 |
|
---|
| 119 | <h1>Job overview</h1>
|
---|
| 120 | <div id='jobOverview' style='overflow: auto; height: 450px' class='bigImage'>
|
---|
| 121 | <p>Loading jobs... Please be patient...</p>
|
---|
| 122 | <img src="@Url.Content("~/Content/ajax-loader.gif")" alt="Loading animation" class="hugeLoading" />
|
---|
| 123 | </div>
|
---|
| 124 |
|
---|
| 125 |
|
---|
| 126 | <h1>Job results</h1>
|
---|
| 127 | <div id='jobDetails'></div>
|
---|
| 128 | <div id='tmp'>
|
---|
| 129 | </div>
|
---|