Skip to content

Commit

Permalink
update fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tuehoang authored and ionparticle committed Jun 7, 2022
1 parent 0380a36 commit 83109a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion compair/static/compair-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ myApp.config(
title: 'Assignment EndDate',
templateUrl: 'modules/assignment/assignment-search-partial.html',
label: "Assignment Search",
controller: 'AssignmentViewController',
controller: 'AssignmentSearchEndDateController',
resolve: {
resolvedData: function() {
// no data to preload
Expand Down
5 changes: 5 additions & 0 deletions compair/static/modules/assignment/assignment-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,11 @@ module.filter("notScoredEnd", function () {
}
});

/***** Assignment Search EndDate Controllers *****/
module.controller("AssignmentSearchEndDateController",
["$scope", function(){}]);


/***** Controllers *****/
module.controller("AssignmentViewController",
["$scope", "$routeParams", "$location", "AnswerResource", "AssignmentResource", "$anchorScroll",
Expand Down
20 changes: 2 additions & 18 deletions compair/static/modules/assignment/assignment-search-partial.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="users-screen">
<div class="row">
<h1 class="col-sm-8">Assignment EndDate</h1>
<form class="col-sm-4 search-users text-right" role="search" ng-submit="zassignmentSubmit()" ng-show="canManageUsers && (users.length || userFilters.search)">
<form class="col-sm-4 search-users text-right" role="search" ng-submit="zassignmentSubmit()" >
<div class="form-group">
<input class="form-control" type="date" onchange="getObject(this)" name="compare_end" placeholder="Search Date (YYYY-MM-DD)">
</div>
Expand Down Expand Up @@ -64,29 +64,13 @@ <h1 class="col-sm-8">Assignment EndDate</h1>
<td>{{user.email}}</td>
<td>
{{ user.system_role }}
<!--
<select ng-if="user.system_role != SystemRole.sys_admin" ng-model="user.system_role"
ng-options="system_role as system_role for system_role in system_roles"
ng-change="updateUser(user)"></select>
<span ng-if="user.system_role == SystemRole.sys_admin">{{ user.system_role }}</span>
-->

</td>
</tr>
</tbody>
</table>
</div>

<div class="text-center" ng-if="users.length">
<ul uib-pagination total-items="totalNumUsers" ng-model="userFilters.page"
max-size="10" class="pagination-sm" boundary-links="true"
direction-links="false" items-per-page="userFilters.perPage"
num-pages="numPages" ng-hide="numPages == 1"></ul>
</div>

<div ng-if="!users.length">
<hr />
<p ng-if="!userFilters.search">No due date not found.</p>
<p ng-if="userFilters.search">No assignment due date found for this search. Please try another search term above.</p>
</div>

</div>

0 comments on commit 83109a9

Please sign in to comment.