Changeset 13847 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/UploaderPartial
- Timestamp:
- 05/12/16 17:09:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/UploaderPartial/_UploaderPartial.cshtml
r13827 r13847 1 1 @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.UploadedJobViewModel 2 3 2 4 <div class="panel panel-default" 3 5 style="border-width:2px!important;padding:17px; … … 5 7 6 8 7 8 9 10 11 12 13 14 15 9 <form method="post" 10 asp-action="Uploader" 11 asp-controller="Job" enctype="multipart/form-data"> 12 <input onchange="printFiles()" 13 type="file" 14 id="files" 15 name="files" 16 multiple accept=".hl" 17 style="display:none" /> 16 18 17 18 19 19 <div onclick="firefilebutton()" 20 class="btn btn-info btn-lg btn-block" 21 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 20 22 text-shadow:1px 1px black;"> 21 22 23 <i class="fa fa-folder-open-o"></i> Choose file(s) to upload to the server 24 </div> 23 25 24 26 <div class="row" style="margin:10px"> 25 27 26 27 28 29 28 <div id="selectedfiles"> 29 <h3>Files</h3> 30 <p>No files selected: press the above button to choose files</p> 31 </div> 30 32 31 33 <button style="margin-bottom:10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 32 34 text-shadow:2px 2px black;" 33 34 35 36 37 38 39 40 35 type="button" 36 disabled 37 id="del" 38 class='btn btn-danger' 39 onclick='deletefiles()'> 40 <span class='glyphicon glyphicon-trash' aria-hidden='true'></span> 41 Remove files 42 </button> 41 43 42 <div 43 style="margin-top:20px;margin-bottom:20px"> 44 <div style="margin-top:20px;margin-bottom:20px"> 44 45 45 <label for="basic-url">Directory name</label> 46 <div class="input-group"> 47 <span class="input-group-addon" 48 id="basic-addon3"> 49 .../uploads/@ViewBag.Name 50 </span> 51 <input 52 type="text" 53 disabled 54 class="form-control" 55 id="directory" 56 name="directory" 57 aria-describedby="basic-addon3" 58 value="@(DateTime.Now.ToString("yyyy.MM.dd"))" /> 59 </div> 60 </div> 61 <button style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 46 <label for="basic-url">Directory name</label> 47 <div class="input-group"> 48 <span class="input-group-addon" 49 id="basic-addon3"> 50 .../uploads/@(Model.currentUser.currentUser.UserName != null ? Model.currentUser.currentUser.UserName : Model.currentUser.currentUser.FullName)/ 51 </span> 52 <input type="text" 53 disabled 54 class="form-control" 55 id="directory" 56 name="directory" 57 aria-describedby="basic-addon3" 58 59 list="dirnames"/> 60 <datalist id="dirnames"> 61 @if (!Model.DisplayDatePaths.Contains(DateTime.Now.ToString("yyyy.MM.dd"))) 62 { 63 <option value="@(DateTime.Now.ToString("yyyy.MM.dd"))">Creates new map for today</option> 64 } 65 @foreach(var d in Model.DisplayDatePaths) 66 { 67 <option value="@d"></option> 68 } 69 </datalist> 70 </div> 71 </div> 72 <button style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 62 73 text-shadow:2px 2px black;" 63 disabled 64 id="upl" 65 class="btn btn-lg btn-block btn-success" 66 type="submit" 67 > 68 <i class="fa fa-plus-square"></i> Add to uploads 69 </button> 70 </div> 74 disabled 75 id="upl" 76 class="btn btn-lg btn-block btn-success" 77 type="submit"> 78 <i class="fa fa-plus-square"></i> Add to uploads 79 </button> 80 </div> 71 81 72 82 </form> … … 83 93 document.getElementById("directory").disabled = false; 84 94 85 95 86 96 for (var i = 0; i < files.length; i++) { 87 97 div.innerHTML += "<p>File " + (i + 1) + ":" + files[i].name +
Note: See TracChangeset
for help on using the changeset viewer.