Skip to content

Commit

Permalink
Changed form on data range modal to be inline to leave less whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jul 12, 2016
1 parent 69785e4 commit 87711e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/partials/modal_daterange.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
%h3.modal-title
[[ title ]]
.modal-body
%p
%p{ style:"margin-bottom: 1em" }
%span{ ng-bind-html:"prompt" }
%form{ name:"form", novalidate:"" }
%form.form-inline{ name:"form", novalidate:"" }
.date-range{ ng-controller:"DateRangeController", ng-init:'init("fields.after", "fields.before")' }
.form-group{ ng-class:'{"has-error": form.after.$invalid}' }
%label.control-label
%label.control-label{ style:"margin-right: 1em" }
- trans "From"
.input-group.date-picker
%input.form-control{ type:"text", uib-datepicker-popup:"[[ format ]]", ng-model:"fields.after", is-open:"afterOpen", datepicker-options:"afterOptions", name:"after", required:"" }
Expand All @@ -19,7 +19,7 @@
.help-block{ ng-show:"form.after.$error.required" }
- trans "Required"
.form-group{ ng-class:'{"has-error": form.before.$invalid}' }
%label.control-label
%label.control-label{ style:"margin: 0 1em" }
- trans "Until"
.input-group.date-picker
%input.form-control{ type:"text", uib-datepicker-popup:"[[ format ]]", ng-model:"fields.before", is-open:"beforeOpen", datepicker-options:"beforeOptions", name:"before", required:"" }
Expand Down

0 comments on commit 87711e8

Please sign in to comment.