app/views/spud/admin/posts/_form.html.erb in spud_blog-0.9.5 vs app/views/spud/admin/posts/_form.html.erb in spud_blog-0.9.7
- old
+ new
@@ -1,13 +1,21 @@
<%=error_messages_for(f.object)%>
<fieldset>
+ <div class="control-group">
<%= f.label :title, :required=>true,:style =>"display:none;" %>
<%= f.text_field :title, :class => "full-width",:placeholder=>"Enter title here" %>
+ </div>
</fieldset>
-
-<div>
- <%= f.text_area :content,:style => "width:100%;", :class => 'tinymce full-width' %>
+<%if Spud::Blog.config.markdown_enabled%>
+ <div class="control-group">
+ <div class="controls">
+ <%=f.select :content_format,[["HTML"],["Markdown"]], {:include_blank => false}, :class => "pull-right", "data-formatter" => "spud_post_content"%>
+ </div>
+ </div>
+<%end%>
+<div style="clear:both;">
+ <%= f.text_area :content,:style => "width:100%;", :class => 'tinymce full-width', "data-format" => f.object.content_format%>
</div>
<% if Spud::Blog.config.has_custom_fields %>
<fieldset>
<legend>Custom Fields</legend>