- Timestamp:
- 04/24/13 13:40:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Admin/Index.cshtml
r9362 r9395 1 @model IEnumerable< string>1 @model IEnumerable<HeuristicLab.Services.Optimization.Web.Models.ScenarioModel> 2 2 3 3 @{ … … 11 11 <label for="scenarioMapper">Scenario Mapper</label> 12 12 <input type="file" name="scenarioMapper" id="scenarioMapper" /> 13 <label for="scenario Mapper">Scenario XML</label>13 <label for="scenarioXml">Scenario XML</label> 14 14 <input type="file" name="scenarioXml" id="scenarioXml" /> 15 <label for="scenarioMapper">Visual extension (JavaScript) for Scenario</label>16 <input type="file" name="scenarioJs" id="scenarioJs" />17 15 <input type="submit" value="Upload scenario" /> 18 16 </fieldset> … … 31 29 @foreach (var scen in Model) { 32 30 <tr> 33 <td>@scen </td>31 <td>@scen.Scenario</td> 34 32 <td> 35 <input type="hidden" value="@scen " name="id" />33 <input type="hidden" value="@scen.Scenario" name="id" /> 36 34 <input type="submit" value="Delete" /> 37 </td> 35 </td> 38 36 </tr> 39 37 } … … 42 40 } 43 41 42 <h2>Visual extensions:</h2> 43 @using (Html.BeginForm("DeleteVisualExtension", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) { 44 <fieldset> 45 <label for="scenarioId">Scenario</label> 46 <select name="scenarioId"> 47 @foreach (var scen in Model) { 48 if (scen.Exists) { 49 <option>@scen.Scenario</option> 50 } 51 } 52 </select> 53 <input type="submit" value="Delete visual extension" /> 54 </fieldset> 55 } 44 56 57 @using (Html.BeginForm("AddVisualExtension", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) { 58 <fieldset> 59 <label for="scenarioId">Scenario</label> 60 <select name="scenarioId"> 61 @foreach (var scen in Model) { 62 <option>@scen.Scenario</option> 63 } 64 </select> 65 <label for="scenarioJs">Visual extension (JavaScript) for Scenario</label> 66 <input type="file" name="scenarioJs" id="scenarioJs" /> 67 <input type="submit" value="Upload visual extension" /> 68 </fieldset> 69 }
Note: See TracChangeset
for help on using the changeset viewer.