Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Admin/Index.cshtml @ 8958

Last change on this file since 8958 was 8958, checked in by fschoepp, 11 years ago

#1888:

  • Added a administrator web interface for job management
  • Fixed Hive Client (PluginValidator) to find the assemblies within the right directories
  • Reorganized controller classes (Folders HL, Interfaces, Azure)
  • You may now successfully schedule and run jobs with the web ui.
File size: 1.1 KB
Line 
1@model IEnumerable<string>
2
3@{
4    ViewBag.Title = "Index.cshtml";
5}
6
7<h2>Add scenarios</h2>
8
9@using (Html.BeginForm("AddScenario", "Admin", FormMethod.Post, new {enctype = "multipart/form-data"})) {
10  <fieldset>   
11    <label for="scenarioMapper">Scenario Mapper</label>
12    <input type="file" name="scenarioMapper" id="scenarioMapper" />
13    <label for="scenarioMapper">Scenario XML</label>
14    <input type="file" name="scenarioXml" id="scenarioXml" />
15    <input type="submit" value="Upload scenario" />
16  </fieldset>
17}
18
19<h2>Manage scenarios:</h2>
20@using (Html.BeginForm("DeleteScenario", "Admin", FormMethod.Post)) {   
21<table>
22      <thead>
23        <tr>
24          <td>Name</td>
25          <td>Delete</td>         
26        </tr>
27      </thead>
28      <tbody>
29      @foreach (var scen in Model) {
30        <tr>
31          <td>@scen</td>
32          <td>
33             <input type="hidden" value="@scen" name="id" />
34             <input type="submit" value="Delete" />       
35          </td>         
36       </tr>
37      }
38      </tbody>
39    </table>
40}
41
42
Note: See TracBrowser for help on using the repository browser.