Skip to content

Commit

Permalink
updated snippet options to be bootstrap-like.
Browse files Browse the repository at this point in the history
  • Loading branch information
jejacks0n committed Jun 12, 2012
1 parent e0c6ad9 commit 0f0c693
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions app/views/mercury/snippets/example/options.html.erb
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
<%= form_for 'options', {html: {class: 'form-horizontal', style: 'width:600px'}} do |f| %>
<div class="form-inputs">
<label for="options_first_name">First Name</label>
<input id="options_first_name" name="options[first_name]" type="text" value="<%= @options[:first_name] %>"/>
<%= form_for 'options', {html: {class: 'form-horizontal', style: 'width:615px'}} do |f| %>

<div class="form-inputs mercury-display-pane-container">

<fieldset>
<div class="control-group string optional">
<label class="string optional control-label" for="options_first_name">First Name</label>
<div class="controls">
<input class="span6 string optional" id="options_first_name" name="options[first_name]" size="50" type="text" value="<%= @options[:first_name] %>">
</div>
</div>
</fieldset>

<fieldset>
<legend>Options</legend>
<label class="label" for="options_favorite_beer">Favorite Beer</label>
<input id="options_favorite_beer" name="options[favorite_beer]" type="text" value="<%= @options[:favorite_beer] %>"/>
<div class="control-group string optional">
<label class="string optional control-label" for="options_favorite_beer">First Name</label>
<div class="controls">
<input class="span6 string optional" id="options_favorite_beer" name="options[favorite_beer]" size="50" type="text" value="<%= @options[:favorite_beer] %>">
</div>
</div>
</fieldset>

</div>

<div class="form-actions">
<input name="commit" type="submit" value="Insert Snippet"/>
<div class="form-actions mercury-display-controls">
<input class="btn btn-primary" name="commit" type="submit" value="Insert Snippet"/>
</div>

<% end %>

0 comments on commit 0f0c693

Please sign in to comment.