Skip to content

Commit

Permalink
adding co-pis to the text search options (#1481)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilversunKSauri authored Nov 1, 2024
1 parent aaead94 commit ad767fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions designsafe/apps/nco/managers/ttc_grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def ttc_grants(self, params=None):
{'Title': {'$regex': params['text_search'], '$options': 'i'}},
{'Abstract': {'$regex': params['text_search'], '$options': 'i'}},
{'PiName': {'$regex': params['text_search'], '$options': 'i'}},
{'CoPiNames': {'$regex': params['text_search'], '$options': 'i'}},
]

#get the grants list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</form>
<!--text input-->
<form class="filter-group ttc-text-search">
<label for="ttc-text-search">Search Title/Abstract/PI Name:</label>
<label for="ttc-text-search">Search Title/Abstract/PI/Co-PI:</label>
<input type="text" name="ttc-text-search" ng-model="$ctrl.textSearch" />
</form>
<br />
Expand Down Expand Up @@ -82,4 +82,4 @@
<td class="ttc-abstract ttc-data btn btn-default" ng-click="$ctrl.showAbstract(grant)">View Details</td>
</tr>
</table>
</div>
</div>

0 comments on commit ad767fe

Please sign in to comment.