Sha256: ac4e288bded01be11947fbebc9c26ca6aa4c6cc1e204f43364e98451999de080
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
<% @options = params[:options] || {} %> <%= semantic_form_for 'options', { :html => { :style => 'width:600px' } } do |f| %> <div class="mercury-modal-pane-container"> <div class="mercury-modal-pane"> <%= f.inputs do %> <%= f.input :first_name, :required => false, :label => 'First Name', :input_html => {:value => @options[:first_name] || 'First Name'} %> <% end %> <%= f.inputs 'Options' do %> <%= f.input :favorite_beer, :required => false, :label => 'Favorite Beer', :input_html => {:value => @options[:favorite_beer] || 'PBR'} %> <% end %> </div> </div> <div class="mercury-modal-controls"> <%= f.buttons do %> <%= f.commit_button 'Insert Snippet' %> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mercury-rails-0.2.3 | app/views/mercury/snippets/example/options.html.erb |
mercury-rails-0.2.0 | app/views/mercury/snippets/example_options.html.erb |