Skip to content

Commit

Permalink
Merge branch 'pr/407' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Laské committed Sep 8, 2023
2 parents 56ba0a9 + 4550787 commit a33ecc1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Add an export button to assignment deliveries #366

### Fixed
- Next page button in users/assignment view don't take into account search criteria #364

## [1.5.0] - 2023-02-15
### Added
- Assignments feature: API and Dashboard
Expand Down
4 changes: 2 additions & 2 deletions dashboard/controller/classrooms/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ exports.index = function(req, res) {
};

//get query params
if (req.query.classroom != '') {
query['q'] = req.query.classroom;
if (req.query.q != '') {
query['q'] = req.query.q;
}
if (req.query.limit != '') {
query['limit'] = req.query.limit;
Expand Down
4 changes: 2 additions & 2 deletions dashboard/controller/users/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ exports.index = function(req, res) {
};

//get query params
if (req.query.username != '') {
query['q'] = req.query.username;
if (req.query.q != '') {
query['q'] = req.query.q;
}
if (req.query.role != '') {
query['role'] = req.query.role;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/views/classrooms.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<form method="get" id="user-form">
<div class="col-md-3">
<div class="form-group form-black label-floating is-empty">
<input data-l10n-id="doe" placeholder="Search Class..." class="form-control" name="classroom" value="<% if(query.q){ %><%= query.q %><% } %>" type="text">
<input data-l10n-id="doe" placeholder="Search Class..." class="form-control" name="q" value="<% if(query.q){ %><%= query.q %><% } %>" type="text">
<span class="material-input"></span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion dashboard/views/users.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<form method="get" id="user-form">
<div class="col-md-2">
<div class="form-group form-black label-floating is-empty">
<input data-l10n-id="john" placeholder="John..." class="form-control" id="username" name="username" value="<% if(query.q){ %><%= query.q %><% } %>" type="text">
<input data-l10n-id="john" placeholder="John..." class="form-control" id="username" name="q" value="<% if(query.q){ %><%= query.q %><% } %>" type="text">
<span class="material-input"></span>
</div>
</div>
Expand Down

0 comments on commit a33ecc1

Please sign in to comment.