app/views/mercury/snippets/example/options.html.erb in kiteditor-1.0.11 vs app/views/mercury/snippets/example/options.html.erb in kiteditor-1.0.12

- old
+ new

@@ -1,34 +1,30 @@ -<%= form_for 'options', { :html => { :style => 'width:600px' } } do |f| %> +<%= form_for 'options', {url: '', html: {class: 'form-horizontal', style: 'width:615px'}} do |f| %> - <div class="mercury-display-pane-container"> - <div class="mercury-display-pane"> - <fieldset class="inputs"> - <ol> - <li class="string input optional stringish" id="options_first_name_input"> - <label class="label" for="options_first_name">First Name</label> - <input id="options_first_name" name="options[first_name]" type="text" value="<%= @options[:first_name] %>"/> - </li> - </ol> - </fieldset> + <div class="form-inputs mercury-display-pane-container"> - <fieldset class="inputs"> - <legend><span>Options</span></legend> - <ol> - <li class="string input optional stringish" id="options_favorite_beer_input"> - <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] %>"/> - </li> - </ol> - </fieldset> - </div> - </div> + <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> - <div class="mercury-display-controls"> - <fieldset class="buttons"> - <ol> - <li class="commit button"><input class="submit" name="commit" type="submit" value="Insert Snippet"/></li> - </ol> + <fieldset> + <legend>Options</legend> + <div class="control-group string optional"> + <label class="string optional control-label" for="options_favorite_beer">Favorite Beer</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 mercury-display-controls"> + <input class="btn btn-primary" name="commit" type="submit" value="Insert Snippet"/> </div> <% end %>