Skip to content

Instantly share code, notes, and snippets.

@kimardenmiller
Created March 8, 2013 21:11
Show Gist options
  • Save kimardenmiller/5119881 to your computer and use it in GitHub Desktop.
Save kimardenmiller/5119881 to your computer and use it in GitHub Desktop.
hubmodal
#hubModal.modal.hide{data: {width: '400px'}}
.modal-header
.pull-right= link_to raw('×'), '#', class: 'close', data: {dismiss: 'modal'}
%h3 Create a new Group
.modal-body
= form_for Hub.new, data: {remote: true} do |f|
%fieldset
.control-group
.controls
= f.text_field :group_name, :class => 'input-xlarge', data: {location_input: '#formatted_location', location_id: '#location_id'}, placeholder: 'Enter the Name'
.control-group
.controls
= f.text_field :formatted_location, :class => 'input-xlarge gpSearchBox', data: {value_field: '#hub_location_id'}, placeholder: 'Enter the Location'
= f.hidden_field :location_id
.modal-footer
= link_to raw('Save <i class="icon-ok"></i>'), '#', class: 'btn btn-primary', id: 'hubModalSave'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment