[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">
|
---|
[9350] | 61 | <div class="accordion">
|
---|
| 62 | <h3>Results</h3>
|
---|
| 63 | <div>
|
---|
[9324] | 64 | <table>
|
---|
[9350] | 65 | <thead>
|
---|
[9324] | 66 | <tr>
|
---|
[9350] | 67 | <td>Key</td>
|
---|
| 68 | <td>Value</td>
|
---|
[9324] | 69 | </tr>
|
---|
[9350] | 70 | </thead>
|
---|
| 71 | <tbody class="results">
|
---|
| 72 | </tbody>
|
---|
[9324] | 73 | </table>
|
---|
[9350] | 74 | </div>
|
---|
| 75 | <h3>Inputs</h3>
|
---|
| 76 | <div>
|
---|
| 77 | <table>
|
---|
| 78 | <thead>
|
---|
| 79 | <tr>
|
---|
| 80 | <td>Key</td>
|
---|
| 81 | <td>Value</td>
|
---|
| 82 | </tr>
|
---|
| 83 | </thead>
|
---|
| 84 | <tbody class="inputs">
|
---|
| 85 | </tbody>
|
---|
| 86 | </table>
|
---|
| 87 | </div>
|
---|
| 88 | </div>
|
---|
[9324] | 89 | </script>
|
---|
| 90 |
|
---|
[9335] | 91 | <script type="text/template" id="runcollection_template">
|
---|
| 92 | <div>
|
---|
| 93 | <span>Plot:
|
---|
| 94 | <select class="plotType">
|
---|
| 95 | <option>Boxplot</option>
|
---|
| 96 | <option>Bubblechart</option>
|
---|
| 97 | <option>Datatable</option>
|
---|
| 98 | </select>
|
---|
| 99 | </span>
|
---|
| 100 | <span class="choice">
|
---|
| 101 | <span>X: <select class="x"></select></span>
|
---|
| 102 | <span>Y: <select class="y"></select></span>
|
---|
| 103 | </span>
|
---|
| 104 |
|
---|
| 105 | <span class="bubble">
|
---|
| 106 | Bubble Size: <select class="bubbleSize"><option>Constant</option></select> <div class="bubbleSlider"></div>
|
---|
| 107 | </span>
|
---|
[9324] | 108 |
|
---|
[9335] | 109 | <span class="datatable">
|
---|
| 110 | DataTable: <select class="datatableOptions"></select>
|
---|
| 111 | DataRow: <select class="datatableRow"></select>
|
---|
| 112 | </span>
|
---|
| 113 | <div class="resizer" style="width: 600px">
|
---|
| 114 | <div class="plot" id="tmp">
|
---|
| 115 | </div>
|
---|
| 116 | </div>
|
---|
| 117 | </div>
|
---|
| 118 | </script>
|
---|
| 119 |
|
---|
| 120 |
|
---|
[9324] | 121 | <script type='text/javascript'>
|
---|
| 122 | $(document).ready(function () {
|
---|
| 123 | var ctrl = new OAAS_CONTROLLER.JobPageController();
|
---|
| 124 | ctrl.create();
|
---|
| 125 | });
|
---|
| 126 |
|
---|
| 127 | </script>
|
---|
| 128 | <noscript>
|
---|
| 129 | <p>
|
---|
| 130 | Please activate JavaScript to view this page correctly!
|
---|
| 131 | </p>
|
---|
| 132 | </noscript>
|
---|
| 133 |
|
---|
| 134 | <h1>Job overview</h1>
|
---|
| 135 | <div id='jobOverview' style='overflow: auto; height: 450px' class='bigImage'>
|
---|
| 136 | <p>Loading jobs... Please be patient...</p>
|
---|
| 137 | <img src="@Url.Content("~/Content/ajax-loader.gif")" alt="Loading animation" class="hugeLoading" />
|
---|
| 138 | </div>
|
---|
| 139 |
|
---|
| 140 |
|
---|
| 141 | <h1>Job results</h1>
|
---|
| 142 | <div id='jobDetails'></div>
|
---|
| 143 | <div id='tmp'>
|
---|
| 144 | </div>
|
---|