diff options
author | Frederick Muriuki Muriithi | 2025-02-03 11:32:47 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-02-03 11:32:47 -0600 |
commit | 2cd8ffb24d1b7a0cad1f8681b6028998e01b0e44 (patch) | |
tree | 09a672a629c3e6600b7066cc77a302d9924d6d3e /uploader/templates/populations | |
parent | 8ab53c964bb7283efe81f87d48c353ac98b09602 (diff) | |
download | gn-uploader-2cd8ffb24d1b7a0cad1f8681b6028998e01b0e44.tar.gz |
Use horizontal-form for UI
Update the macro templates to use the horizontal-form paradigm to fit
in with what Rob likes.
Diffstat (limited to 'uploader/templates/populations')
-rw-r--r-- | uploader/templates/populations/macro-select-population.html | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/uploader/templates/populations/macro-select-population.html b/uploader/templates/populations/macro-select-population.html index af4fd3a..ef74ac3 100644 --- a/uploader/templates/populations/macro-select-population.html +++ b/uploader/templates/populations/macro-select-population.html @@ -1,29 +1,32 @@ {%macro select_population_form(form_action, populations)%} -<form method="GET" action="{{form_action}}"> +<form method="GET" action="{{form_action}}" class="form-horizontal"> <legend>Select Population</legend> <div class="form-group"> - <label for="select-population" class="form-label">Select Population</label> - <select id="select-population" - name="population_id" - class="form-control" - required="required"> - <option value="">Select Population</option> - {%for family in populations%} - <optgroup {%if family[0][1] is not none%} - label="{{family[0][1]}}" - {%else%} - label="Undefined" - {%endif%}> - {%for population in family[1]%} - <option value="{{population.Id}}">{{population.FullName}}</option> + <label for="select-population" class="control-label col-sm-2"> + Population</label> + <div class="col-sm-10"> + <select id="select-population" + name="population_id" + class="form-control" + required="required"> + <option value="">Select Population</option> + {%for family in populations%} + <optgroup {%if family[0][1] is not none%} + label="{{family[0][1]}}" + {%else%} + label="Undefined" + {%endif%}> + {%for population in family[1]%} + <option value="{{population.Id}}">{{population.FullName}}</option> + {%endfor%} + </optgroup> {%endfor%} - </optgroup> - {%endfor%} - </select> + </select> + </div> </div> - <div class="form-group"> + <div class="col-sm-offset-2 col-sm-10"> <input type="submit" value="Select" class="btn btn-primary" /> </div> </form> |