Skip to content

Commit

Permalink
Sorting option lists
Browse files Browse the repository at this point in the history
  • Loading branch information
york-stsci committed Aug 29, 2024
1 parent 0310788 commit 24ae3f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jwql/website/apps/jwql/templates/log_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h4>Select JWQL Monitoring Log</h4>
Filter logs by folder:
<select id="log_folders" onchange="getLogsByFolder()">
<option value="all_logs">All Logs</option>
{% for log_folder in all_logs['log_folders'].keys() %}
{% for log_folder in sorted(all_logs['log_folders'].keys()) %}
<option value="{{ log_folder }}">{{ log_folder }}</option>
{% endfor %}
</select>
Expand Down Expand Up @@ -60,7 +60,7 @@ <h4>Select JWQL Monitoring Log</h4>
<div class="col-6 mx-auto text-left mt-5">
<input id="log_select" type="text" list="logs" placeholder="Log Name" class="form-control">
<datalist id="logs">
{% for log_name in all_logs['all'] %}
{% for log_name in sorted(all_logs['all']) %}
<option id="{{ log_name }}" value="{{ log_name }}"></option>
{% endfor %}
</datalist>
Expand Down

0 comments on commit 24ae3f5

Please sign in to comment.