Permalink
Browse files

removed formtastic as a dependency

  • Loading branch information...
1 parent a603013 commit 5d209ef61dfa2d150d81f2a40290702c51bc1d65 @jejacks0n jejacks0n committed Nov 16, 2011
View
@@ -3,7 +3,6 @@ PATH
specs:
mercury-rails (0.2.3)
coffee-script
- formtastic
paperclip
rails (~> 3.1.0)
@@ -83,8 +82,6 @@ GEM
execjs (1.2.9)
multi_json (~> 1.0)
ffi (1.0.9)
- formtastic (2.0.2)
- rails (~> 3.0)
fuubar-cucumber (0.0.15)
cucumber (>= 1.0.2)
ruby-progressbar (~> 0.0.10)
@@ -12,6 +12,7 @@ def resource
end
def snippet_options
+ @options = params[:options] || {}
render :action => "/snippets/#{params[:name]}/options"
end
@@ -1,23 +1,34 @@
-<% @options = params[:options] || {} %>
-<%= semantic_form_for 'options', { :html => { :style => 'width:600px' } } do |f| %>
+<%= form_for 'options', { :html => { :style => 'width:600px' } } do |f| %>
<div class="mercury-display-pane-container">
<div class="mercury-display-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 %>
+ <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>
+
+ <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>
<div class="mercury-display-controls">
- <%= f.buttons do %>
- <%= f.commit_button 'Insert Snippet' %>
- <% end %>
+ <fieldset class="buttons">
+ <ol>
+ <li class="commit button"><input class="submit" name="commit" type="submit" value="Insert Snippet"/></li>
+ </ol>
+ </fieldset>
</div>
<% end %>
@@ -1,4 +1,3 @@
require 'paperclip'
-require 'formtastic'
require File.expand_path('../config/engine', File.dirname(__FILE__))
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
# Runtime Dependencies
s.add_runtime_dependency('rails', ["~> 3.1.0"])
s.add_runtime_dependency('paperclip')
- s.add_runtime_dependency('formtastic') # this should be removed fully
s.add_runtime_dependency('coffee-script')

0 comments on commit 5d209ef

Please sign in to comment.