Commit 09f2eaa2
Changed files (2)
app
views
creations
app/views/creations/_form.html.erb
@@ -3,31 +3,46 @@
<div id="error_explanation">
<h2><%= pluralize(@creation.errors.count, "error") %> prohibited this creation from being saved:</h2>
<ul>
- <% @creation.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
+ <% @creation.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
</ul>
</div>
<% end %>
<fieldset class="cute_form">
- <%= f.label :name %>
+ <p>
+ <%= f.label :name %><br />
<%= f.text_field :name, :class => "forms" %>
-
- <%= f.label :image, "Upload Image",'data-editable' => 'false' %>
- <%= f.file_field :image, :class => "forms", 'data-editable' => 'false' %>
-
- <%= f.label :remote_image_url, "Or Image URL", 'data-editable' => 'false' %>
- <%= f.text_field :remote_image_url, :class => "forms", 'data-editable' => 'false' %>
+ </p>
+
+ <div class="grid_4 alpha">
+ <p>
+ <%= f.label :image, "Upload Image",'data-editable' => 'false' %><br />
+ <%= f.file_field :image, :class => "forms", 'data-editable' => 'false' %>
+ </p>
+ </div>
+ <div class="grid_5 omega">
+ <p>
+ <%= f.label :remote_image_url, "Or Image URL", 'data-editable' => 'false' %><br />
+ <%= f.text_field :remote_image_url, :class => "forms", 'data-editable' => 'false' %>
+ </p>
+ </div>
- <% for category in Category.all %>
- <div>
- <%= check_box_tag "creation[category_ids][]", category.id, @creation.categories.include?(category) %>
- <%= category.name %>
+ <div class="grid_4 alpha">
+ <% for category in Category.all %>
+ <div>
+ <%= check_box_tag "creation[category_ids][]", category.id, @creation.categories.include?(category) %>
+ <%= category.name %>
+ </div>
+ <% end %>
+ </div>
+ <div class="grid_5 omega">
+ <p>
+ <%= f.label :story %><br />
+ <%= f.text_area :story, :class => "forms" %>
+ </p>
</div>
- <% end %>
- <%= f.label :story %>
- <%= f.text_area :story, :class => "forms" %>
- <input type="image" id="submit" name="submit" src="/images/template/button_submit.gif" title="Submit Message" />
+ <input type="submit" id="submit" name="submit" value="share" />
</fieldset>
<% end %>
app/views/creations/show.html.erb
@@ -17,15 +17,6 @@
<li><%= category.name %></li>
<% end %>
</ul>
- <h3> other creations by <%= @creation.user.name.to_s %> <em><%= link_to 'view all', profile_path(@creation.user) %> </em> </h3>
- <% other_creations = @creation.user.creations.last(4).reverse %>
- <% other_creations.each do |creation| %>
- <% if creation != @creation %>
- <h2><%= @creation.name %></h2>
- <a href="<%= url_for creation %>"><%= image_tag creation.image_url.to_s, :alt => creation.name %></a>
- <p><%= creation.short_story %> <%= link_to 'more', creation %></p>
- <% end %>
- <% end %>
</div>
<div class="grid_4 omega">
@@ -43,4 +34,18 @@
</div>
</div>
+<div class="clear" ></div>
+<!--
+<div class="grid_9 alpha omega">
+ <h3> other creations by <%= @creation.user.name.to_s %> <em><%= link_to 'view all', profile_path(@creation.user) %> </em> </h3>
+ <% other_creations = @creation.user.creations.last(4).reverse %>
+ <% other_creations.each do |creation| %>
+ <% if creation != @creation %>
+ <h2><%= @creation.name %></h2>
+ <a href="<%= url_for creation %>"><%= image_tag creation.image_url.to_s, :alt => creation.name %></a>
+ <p><%= creation.short_story %> <%= link_to 'more', creation %></p>
+ <% end %>
+ <% end %>
+</div>
<div class="clear" />
+ -->