Commit ca0107ce authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

patient/info.html: sort configs by name

parent f988a47f
......@@ -20,7 +20,7 @@
<span>
<select id="choose_config" name="config" onchange="db.call('patient/info', {'id' :'{{=request.vars['id']}}', 'config_id' : this.value})">
<option value="-1" {{if not config :}}selected{{pass}}> --- </option>
{{for row in db(db.config).select() :}}
{{for row in db(db.config).select(orderby=~db.config.name) :}}
<option value="{{=row.id }}" {{if row.id==config_id:}}selected{{pass}} >
{{=row.name}}
</option>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment