Permalink
Browse files

update the backend form to use hemisquare class, adjust capitalizatio…

…n on frontend
  • Loading branch information...
1 parent 9a95b0c commit 69b8caa5ca1e1c5edc0472b284101c80d972dbcf @nickhammond nickhammond committed with unixcharles Jun 15, 2010
Showing with 48 additions and 44 deletions.
  1. +46 −42 app/views/admin/blogs/_form.html.erb
  2. +1 −1 app/views/blogs/_comments.html.erb
  3. +1 −1 app/views/blogs/_form.html.erb
@@ -23,56 +23,60 @@
</p>
<div id='more_options' style="display:none;">
- <div class='field'>
- <%= f.label :publishing_date, "Date published" -%>
- <%= f.datetime_select :publishing_date -%>
- </div>
+ <div class="hemisquare">
+ <div class='field'>
+ <%= f.label :publishing_date, "Date published" -%>
+ <%= f.datetime_select :publishing_date -%>
+ </div>
- <div class='field'>
- <label>Allow comments</label>
- <%= f.check_box :allow_comment -%>
- <%= f.label :allow_comment, "Allow readers to comment on this post", :class => "stripped" %>
- </div>
+ <div class='field'>
+ <label>Allow comments</label>
+ <%= f.check_box :allow_comment -%>
+ <%= f.label :allow_comment, "Allow readers to comment on this post", :class => "stripped" %>
+ </div>
- <div class='field'>
- <%= f.label :permalink -%>
- <b>http://<%=h request.domain %>/blog/<%= f.text_field :permalink -%>/</b><br/>
- <small>
- Allowed characters are: lowercase letters, numbers, underscores and dashes.
- </small>
- </div>
-
- <div class='field'>
- <%= f.label :category_list, "Categories" %>
- <%= f.text_field :category_list %><br/>
- <small>
- Separate with commas, e.g. "Programming, Web Design"
- </small>
+ <div class='field'>
+ <%= f.label :permalink -%>
+ <b>http://<%=h request.domain %>/blog/<%= f.text_field :permalink -%></b><br/>
+ <small>
+ Allowed characters are: lowercase letters, numbers, underscores and dashes.
+ </small>
+ </div>
+
+ <div class='field'>
+ <label>Draft</label>
+ <%= f.check_box :draft -%>
+ <%= f.label :draft, "Save as Draft", :class => "stripped" %>
+ </div>
</div>
+
+ <div class="hemisquare right_side">
+ <div class='field'>
+ <%= f.label :category_list, "Categories" %>
+ <%= f.text_field :category_list %><br/>
+ <small>
+ Separate with commas, e.g. "Programming, Web Design"
+ </small>
+ </div>
- <div class='field'>
- <%= f.label :tag_list, "Tags" %>
- <%= f.text_field :tag_list %><br/>
- <small>
- Separate with commas, e.g. "RefineryCMS, Rails, Models, Validation"
- </small>
- </div>
+ <div class='field'>
+ <%= f.label :tag_list, "Tags" %>
+ <%= f.text_field :tag_list %><br/>
+ <small>
+ Separate with commas, e.g. "RefineryCMS, Rails, Models, Validation"
+ </small>
+ </div>
- <div class='field'>
- <%= f.label :author_list, "Authors" %>
- <%= f.text_field :author_list %><br/>
- <small>
- Separate with commas, e.g. "Bob Dylan, Jimi Hendrix, John Lennon"
- </small>
+ <div class='field'>
+ <%= f.label :author_list, "Authors" %>
+ <%= f.text_field :author_list %><br/>
+ <small>
+ Separate with commas, e.g. "Bob Dylan, Jimi Hendrix, John Lennon"
+ </small>
+ </div>
</div>
</div>
- <div class='field'>
- <label>Draft</label>
- <%= f.check_box :draft -%>
- <%= f.label :draft, "Save as Draft", :class => "stripped" %>
- </div>
-
<%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => false} %>
<% end -%>
@@ -4,7 +4,7 @@
<% @blog.comments.approved.each do |comment| %>
<h4><%=h comment.title %></h4>
<p><%=h comment.body %></p>
- <p>comment from <%=h comment.name %>, <%= time_ago_in_words comment.created_at %> ago</p>
+ <p>Comment from <%=h comment.name %>, <%= time_ago_in_words comment.created_at %> ago</p>
<% end %>
</div>
<% end %>
@@ -29,7 +29,7 @@
<% end %>
<div class='actions'>
- <%= f.submit 'add comment' %>
+ <%= f.submit 'Add comment' %>
</div>
</div>
<% end -%>

0 comments on commit 69b8caa

Please sign in to comment.