Changeset 12778
- Timestamp:
- 07/20/15 13:49:39 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/clients/details/clientDetails.cshtml
r12768 r12778 195 195 <label for="fromDate">To: </label> 196 196 <div class="input-group"> 197 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="toDate" is-open="toIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close" 197 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="toDate" is-open="toIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close"/> 198 198 <span class="input-group-btn"> 199 199 <button type="button" class="btn btn-default" ng-click="openToDateSelection($event)"><i class="glyphicon glyphicon-calendar"></i></button> 200 200 </span> 201 </div> 202 </div> 203 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 204 <div class="btn-group" dropdown dropdown-append-to-body> 205 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 130px; text-align: left;"> 206 <span class="text-left" style="display: inline-block; width: 85px;">{{curQuickSelection.name}}</span> 207 <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span> 208 </button> 209 <ul class="dropdown-menu" role="menu"> 210 <li ng-repeat="quickSelection in quickSelectionList"> 211 <a class="cursor-pointer" ng-click="changeQuickSelection(quickSelection)">{{quickSelection.name}}</a> 212 </li> 213 </ul> 201 214 </div> 202 215 </div> -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/clients/details/clientDetailsCtrl.js
r12584 r12778 171 171 $scope.toIsOpen = false; 172 172 173 $scope.quickSelectionList = [ 174 { id: 0, name: 'Custom' }, 175 { id: 1, name: 'Today' }, 176 { id: 2, name: 'Yesterday' }, 177 { id: 3, name: 'Last 7 Days' }, 178 { id: 4, name: 'Last 30 Days' } 179 ]; 180 $scope.changeQuickSelection = function (quickSelection) { 181 var today = new Date(); 182 var oneDayInMs = 24 * 60 * 60 * 1000; 183 switch (quickSelection.id) { 184 case 1: 185 $scope.fromDate = new Date(today.valueOf()); 186 $scope.toDate = new Date(today.valueOf()); 187 break; 188 case 2: 189 $scope.fromDate = new Date(today.valueOf() - oneDayInMs); 190 $scope.toDate = new Date(today.valueOf() - oneDayInMs); 191 break; 192 case 3: 193 $scope.fromDate = new Date(today.valueOf() - (7 * oneDayInMs)); 194 $scope.toDate = new Date(today.valueOf()); 195 break; 196 case 4: 197 $scope.fromDate = new Date(today.valueOf() - (30 * oneDayInMs)); 198 $scope.toDate = new Date(today.valueOf()); 199 break; 200 } 201 $scope.curQuickSelection = quickSelection; 202 }; 203 // set default 'today' 204 $scope.changeQuickSelection($scope.quickSelectionList[1]); 205 173 206 $scope.openFromDateSelection = function ($event) { 174 207 $event.preventDefault(); … … 176 209 $scope.toIsOpen = false; 177 210 $scope.fromIsOpen = true; 211 $scope.curQuickSelection = $scope.quickSelectionList[0]; 178 212 }; 179 213 … … 183 217 $scope.fromIsOpen = false; 184 218 $scope.toIsOpen = true; 219 $scope.curQuickSelection = $scope.quickSelectionList[0]; 185 220 }; 186 221 -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/exceptions/exceptions.cshtml
r12773 r12778 36 36 <th>Job</th> 37 37 <th>Task</th> 38 <th>User </th>38 <th>Username</th> 39 39 <th>Client</th> 40 40 <th>Date</th> -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/details/groupDetails.cshtml
r12551 r12778 224 224 <label for="fromDate">To: </label> 225 225 <div class="input-group"> 226 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="toDate" is-open="toIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close" 226 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="toDate" is-open="toIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close"/> 227 227 <span class="input-group-btn"> 228 228 <button type="button" class="btn btn-default" ng-click="openToDateSelection($event)"><i class="glyphicon glyphicon-calendar"></i></button> 229 229 </span> 230 </div> 231 </div> 232 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 233 <div class="btn-group" dropdown dropdown-append-to-body> 234 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 130px; text-align: left;"> 235 <span class="text-left" style="display: inline-block; width: 85px;">{{curQuickSelection.name}}</span> 236 <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span> 237 </button> 238 <ul class="dropdown-menu" role="menu"> 239 <li ng-repeat="quickSelection in quickSelectionList"> 240 <a class="cursor-pointer" ng-click="changeQuickSelection(quickSelection)">{{quickSelection.name}}</a> 241 </li> 242 </ul> 230 243 </div> 231 244 </div> -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/details/groupDetailsCtrl.js
r12551 r12778 104 104 $scope.toIsOpen = false; 105 105 106 $scope.quickSelectionList = [ 107 { id: 0, name: 'Custom' }, 108 { id: 1, name: 'Today' }, 109 { id: 2, name: 'Yesterday' }, 110 { id: 3, name: 'Last 7 Days' }, 111 { id: 4, name: 'Last 30 Days' } 112 ]; 113 $scope.changeQuickSelection = function (quickSelection) { 114 var today = new Date(); 115 var oneDayInMs = 24 * 60 * 60 * 1000; 116 switch (quickSelection.id) { 117 case 1: 118 $scope.fromDate = new Date(today.valueOf()); 119 $scope.toDate = new Date(today.valueOf()); 120 break; 121 case 2: 122 $scope.fromDate = new Date(today.valueOf() - oneDayInMs); 123 $scope.toDate = new Date(today.valueOf() - oneDayInMs); 124 break; 125 case 3: 126 $scope.fromDate = new Date(today.valueOf() - (7 * oneDayInMs)); 127 $scope.toDate = new Date(today.valueOf()); 128 break; 129 case 4: 130 $scope.fromDate = new Date(today.valueOf() - (30 * oneDayInMs)); 131 $scope.toDate = new Date(today.valueOf()); 132 break; 133 } 134 $scope.curQuickSelection = quickSelection; 135 }; 136 // set default 'today' 137 $scope.changeQuickSelection($scope.quickSelectionList[1]); 138 106 139 $scope.openFromDateSelection = function ($event) { 107 140 $event.preventDefault(); … … 109 142 $scope.toIsOpen = false; 110 143 $scope.fromIsOpen = true; 144 $scope.curQuickSelection = $scope.quickSelectionList[0]; 111 145 }; 112 146 … … 116 150 $scope.fromIsOpen = false; 117 151 $scope.toIsOpen = true; 152 $scope.curQuickSelection = $scope.quickSelectionList[0]; 118 153 }; 119 154 -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/jobs/jobs.cshtml
r12551 r12778 39 39 <th>Job Name</th> 40 40 @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) { 41 <th>User Name</th>41 <th>Username</th> 42 42 } 43 43 <th>Date Created</th> -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp/3.3/WebApp/plugins/login/login.cshtml
r12428 r12778 14 14 <div class="input-group"> 15 15 <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> 16 <input type="text" class="form-control" name="Username" placeholder="User "16 <input type="text" class="form-control" name="Username" placeholder="Username" 17 17 ng-model="user.Username"> 18 18 </div>
Note: See TracChangeset
for help on using the changeset viewer.