Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/16 17:13:50 (8 years ago)
Author:
jlodewyc
Message:

#2582 Parameter changing busy, save file, download file and email on pass reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml

    r13754 r13827  
    33@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
    44
    5 
     5<!-- Displays the contents of a file -->
     6<!-- Another body used for the side scroller menu-->
    67<body id="top"
    78      class="row"
     
    1213      style="margin-bottom:500px;margin-left:1px;margin-right:1px;">
    1314    <div id="userId" style="display:none">@ViewBag.SessionId</div>
     15    <!-- Main nav menu -->
    1416    @Html.Partial("Navbar", new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel("Job"))
    1517
     18    <!-- Job menu-->
    1619    <ul class="nav nav-pills nav-justified">
    1720        <li role="presentation"
     
    3033        </li>
    3134    </ul>
     35    <!-- Back button -->
    3236    <div class="row"
    3337         style="margin-left:20px">
     
    3842        </a>
    3943    </div>
    40 
     44    <!-- Check model to select right partial, partial handles all subloading -->
    4145    <div class="col-md-9">
    4246        @if (Model.SelectedAlgorithm != null)
     
    5559
    5660        }
    57 
     61        <!-- Main menu for job creation -->
    5862        <hr style="border-color:gray; margin-top:50px" />
    59         <div id="finish"
    60              style="text-align:center">
    61             <h2>
    62                 Hive job information
    63             </h2>
    64             <div class="row"
    65                  style="margin-bottom:20px">
    66 
    67                 <div class="col-sm-6"
    68                      style="text-align:right">
    69                     <h5>Job name</h5>
    70                 </div>
    71                 <div class="col-sm-6"
    72                      style="text-align:left">
    73                     <div class="form-group">
    74                         <div class="input-group">
    75                             <input type="text"
    76                                    class="form-control"
    77                                    name="jname"
    78                                    id="jname"
    79                                    placeholder="Job name">
    80                         </div>
     63        <div class="row">
     64            <div id="finish" class="col-sm-8"
     65                 style="text-align:center; border-right:1px solid">
     66                <h2>
     67                    Hive job information
     68                </h2>
     69                <div class="row"
     70                     style="margin-bottom:20px">
     71
     72                    <div class="col-sm-6"
     73                         style="text-align:right">
     74                        <h5>Job name</h5>
     75                    </div>
     76                    <div class="col-sm-6"
     77                         style="text-align:left">
     78                        <div class="form-group">
     79                            <div class="input-group">
     80                                <input type="text"
     81                                       class="form-control"
     82                                       name="jname"
     83                                       id="jname"
     84                                       placeholder="Job name">
     85                            </div>
     86                        </div>
     87                    </div>
     88                </div>
     89                <div class="row"
     90                     style="margin-bottom:20px">
     91                    <div class="col-sm-6"
     92                         style="text-align:right">
     93                        <h5>
     94                            Resources (optional)
     95                        </h5>
     96                    </div>
     97                    <div class="col-sm-6"
     98                         style="text-align:left">
     99                        <div class="form-group">
     100                            <div class="input-group">
     101                                <input type="text"
     102                                       class="form-control"
     103                                       name="jresource"
     104                                       id="jresource"
     105                                       placeholder="(seperate with ;)">
     106                            </div>
     107                        </div>
     108                    </div>
     109                </div>
     110
     111                <div class="row">
     112                    <h5 class="col-sm-6"
     113                        style="text-align:right;margin-top:20px">
     114                        Set global job priority
     115                    </h5>
     116                    <div class="col-sm-6">
     117                        <div class="btn-group pull-left"
     118                             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);
     119                            text-shadow:2px 2px black;">
     120                            <button type="button"
     121                                    id="prior"
     122                                    class="btn btn-info dropdown-toggle"
     123                                    data-toggle="dropdown"
     124                                    aria-haspopup="true" aria-expanded="false">
     125                                Normal <span class="caret"></span>
     126                            </button>
     127                            <ul class="dropdown-menu"
     128                                style="text-shadow:none">
     129                                <li><a onclick="changePriority([],0,'')">Low</a></li>
     130                                <li><a onclick="changePriority([],1,'')">Normal</a></li>
     131                                <li><a onclick="changePriority([],2,'')">Urgent</a></li>
     132                                <li><a onclick="changePriority([],3,'')">Critical</a></li>
     133                            </ul>
     134                        </div>
     135                    </div>
     136                </div>
     137
     138                <!-- adding the job to hive and show progress bar -->
     139                <a class="btn btn-lg btn-success"
     140                   id="fakehiveadd"
     141                   onclick="addtoHive()"
     142                   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);
     143                            text-shadow:2px 2px black;">
     144                    Add this job to Hive
     145                </a>
     146                <!-- HIDDEN BUTTON FOR ASP ACTION -->
     147                <a class="btn btn-success "
     148                   id="realhiveadd"
     149                   asp-controller="Job"
     150                   asp-action="AddToHive"
     151                   style="display:none"></a>
     152
     153                <!-- Progress-->
     154               
     155                <h4 id="result" style="display:none">Start uploading experiment...</h4>
     156                <div class="progress" id="progdiv" style="display:none">
     157
     158                    <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar"
     159                         id="progress"
     160                         aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:10%">
     161
    81162                    </div>
    82163                </div>
    83164            </div>
    84             <div class="row"
    85                  style="margin-bottom:20px">
    86                 <div class="col-sm-6"
    87                      style="text-align:right">
    88                     <h5>
    89                         Resources (optional)
    90                     </h5>
    91                 </div>
    92                 <div class="col-sm-6"
    93                      style="text-align:left">
    94                     <div class="form-group">
    95                         <div class="input-group">
    96                             <input type="text"
    97                                    class="form-control"
    98                                    name="jresource"
    99                                    id="jresource"
    100                                    placeholder="(seperate with ;)">
    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);
     165            <div class="col-sm-4">
     166                <h4>Save to file</h4>
     167                <form asp-controller="Job"
     168                   asp-action="saveToFile"
     169                      method="post">
     170                    <div class="col-sm-6"
     171                         style="text-align:right">
     172                        <h5>File name</h5>
     173                    </div>
     174                    <div class="col-sm-6"
     175                         style="text-align:left">
     176                        <div class="form-group">
     177                            <div class="input-group">
     178                                <input type="text"
     179                                       class="form-control"
     180                                       name="fname"
     181                                       id="fname"
     182                                       required
     183                                       placeholder="File name">
     184                            </div>
     185                        </div>
     186                    </div>
     187                    <div class="row"
     188                         style="text-align:center">
     189                        <h5>Directory: /HiveChanged</h5>
     190                    </div>
     191                    <button class="btn btn-success btn-block" type="submit"
     192                            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);
    114193                            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>
     194                    Save to file</button>
     195                </form>
    153196            </div>
    154197        </div>
    155198
    156199
    157 
    158 
    159200    </div>
     201    <!-- Side scrolling menu-->
    160202    <nav style="margin-top:50px; "
    161203         class="col-md-2" id="scrolly">
     
    166208            <li><a href="#top"><i class="fa fa-angle-up"></i> Top</a></li>
    167209            @if (Model.SelectedAlgorithm != null)
    168             {
     210            {//Algortihm loaded
    169211                <li><a href="#algorithm">Algorithm parameters</a></li>
    170212                <li><a href="#problem">Problem parameters</a></li>
    171213            }
    172214            else
    173             {
     215            {//batch run or experiment
    174216                <li><a id="ctasks" href="#tasks">Child tasks </a></li>
    175217                <li><a onclick="shower()" href="#tasks"><i class="fa fa-eye"></i> Show all tasks</a></li>
     
    210252        collapser = function () {
    211253            $('.collapse').collapse('hide');
    212 
     254            //closes every collapse
    213255        }
    214256        shower = function () {
    215257            $('.collapse').collapse('show');
    216 
     258            //opens every collapse
    217259        }
    218260    </script>
Note: See TracChangeset for help on using the changeset viewer.