Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml @ 13733

Last change on this file since 13733 was 13733, checked in by jlodewyc, 8 years ago

#2582 Last fixes Job Manager

File size: 7.2 KB
Line 
1@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
2
3
4<body class="row"
5      data-spy="scroll"
6      data-target="#scrolly"
7      data-offset-top="500"
8      onscroll="showScrolly()"
9      style="margin-bottom:500px;margin-left:1px;margin-right:1px;">
10
11    @Html.Partial("Navbar", new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel("Job"))
12
13    <ul class="nav nav-pills nav-justified">
14        <li role="presentation"
15            class="">
16            <a asp-controller="Job"
17               asp-action="Index">
18                Jobs
19            </a>
20        </li>
21        <li role="presentation"
22            class="active">
23            <a asp-controller="Job"
24               asp-action="Uploads">
25                Uploads
26            </a>
27        </li>
28    </ul>
29    <div class="row"
30         style="margin-left:20px">
31        <a class="btn btn-default"
32           asp-controller="Job"
33           asp-action="Uploads">
34            <i class="fa fa-angle-double-left"></i> Back to uploads
35        </a>
36    </div>
37
38    <div class="col-md-9">
39        @if (Model.SelectedAlgorithm != null)
40        {
41            @Html.Partial("OpenFilePartials/_Algorithm", Model);
42
43        }
44        else if (Model.SelectedBatchRun != null)
45        {
46            @Html.Partial("OpenFilePartials/_BatchRun", Model);
47
48        }
49        else if (Model.SelectedExperiment != null)
50        {
51            @Html.Partial("OpenFilePartials/_Experiment", Model);
52
53        }
54
55        <hr style="border-color:gray; margin-top:50px" />
56        <div id="finish"
57             style="text-align:center">
58            <h2>
59                Hive job information
60            </h2>
61            <div class="row"
62                 style="margin-bottom:20px">
63
64                <div class="col-sm-6"
65                     style="text-align:right">
66                    <h5>Job name</h5>
67                </div>
68                <div class="col-sm-6"
69                     style="text-align:left">
70                    <div class="form-group">
71                        <div class="input-group">
72                            <input type="text"
73                                   class="form-control"
74                                   name="jname"
75                                   id="jname"
76                                   placeholder="Job name">
77                        </div>
78                    </div>
79                </div>
80            </div>
81            <div class="row"
82                 style="margin-bottom:20px">
83                <div class="col-sm-6"
84                     style="text-align:right">
85                    <h5>
86                        Resource
87                    </h5>
88                </div>
89                <div class="col-sm-6"
90                     style="text-align:left">
91                    <div class="form-group">
92                        <div class="input-group">
93                            <div class="input-group-addon">
94                                HEAL/
95                            </div>
96                            <input type="text"
97                                   class="form-control"
98                                   name="resource"
99                                   id="resource"
100                                   placeholder="Resource (default: HEAL)">
101                        </div>
102                    </div>
103                </div>
104            </div>
105
106            <div class="row">
107                <h5 class="col-sm-6"
108                    style="text-align:right;margin-top:20px">
109                    Set global job priority
110                </h5>
111                <div class="col-sm-6">
112                    <div class="btn-group pull-left"
113                         style="margin:10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
114                            text-shadow:2px 2px black;">
115                        <button type="button"
116                                id="prior"
117                                class="btn btn-info dropdown-toggle"
118                                data-toggle="dropdown"
119                                aria-haspopup="true" aria-expanded="false">
120                            Normal <span class="caret"></span>
121                        </button>
122                        <ul class="dropdown-menu"
123                            style="text-shadow:none">
124                            <li><a onclick="changePriority([],0,'')">Low</a></li>
125                            <li><a onclick="changePriority([],1,'')">Normal</a></li>
126                            <li><a onclick="changePriority([],2,'')">Urgent</a></li>
127                            <li><a onclick="changePriority([],3,'')">Critical</a></li>
128                        </ul>
129                    </div>
130                </div>
131            </div>
132
133
134            <a class="btn btn-lg btn-success"
135               id="fakehiveadd"
136               onclick="addtoHive()"
137               style="margin:10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
138                            text-shadow:2px 2px black;">
139                Add this job to Hive
140            </a>
141
142
143
144            <a class="btn btn-success " id="realhiveadd" asp-controller="Job" asp-action="AddToHive" style="display:none"></a>
145            <h4 id="result" style="display:none">Start uploading experiment...</h4>
146            <div class="progress" id="progdiv" style="display:none">
147
148                <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar"
149                     id="progress"
150                     aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:10%">
151
152                </div>
153            </div>
154        </div>
155
156
157
158
159    </div>
160    <nav style="margin-top:50px; "
161         class="col-md-2" id="scrolly">
162        <ul class="nav nav-pills nav-stacked"
163            data-spy="affix"
164            data-offset-top="0">
165
166            <li><a href="#top">Top</a></li>
167            @if (Model.SelectedAlgorithm != null)
168            {
169                <li><a href="#algorithm">Algorithm parameters</a></li>
170                <li><a href="#problem">Problem parameters</a></li>
171            }
172            else
173            {
174                <li><a href="#tasks">Child tasks</a></li>
175
176            }
177            <li><a href="#finish">Job info and upload</a></li>
178        </ul>
179    </nav>
180    <script src="~/js/scripts/hubber.js"></script>
181    <script>
182        showScrolly = function () {
183            document.getElementById("scrolly").style.display = "";
184
185        }
186        $(function () {
187            $('nav > ul > li > a').click(function () {
188                if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
189                    var target = $(this.hash);
190                    target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
191                    if (target.length) {
192                        $('html, body').animate({
193                            scrollTop: target.offset().top
194                        }, 1000);
195                        return false;
196                    }
197                }
198            });
199        });
200    </script>
201</body>
202
Note: See TracBrowser for help on using the repository browser.