Sha256: c8a05ae8f766fb19ec1d21392c836f9b0a9cd3cdc29cfcfdd44d094f7f426de3
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
<%= simple_form_for [:dashboard, @post] do |f| %> <%= f.error_notification %> <%= f.input :title, autofocus: true %> <%= f.input :post_type_id, as: :hidden %> <%= f.input :excerpt %> <%= f.input :draft_content, as: :text, input_html: { rows: 20, class: "wysiwyg" }, label: "Content" %> <%= f.input :featured_media_id, as: :hidden, input_html: { id: "featured_media_id" } %> <%= link_to "Select Featured Image", "#", class: "btn btn-default", id: "featured_media_button" %> <div id="featured_media_container"> <%= image_tag @post.featured_media.file_url(:thumb), id: "featured_media_image" if @post.featured_media %> </div> <%= f.input :tag_list %> <% if Pundit.policy(current_user, @post).publish? %> <div class="checkbox"> <label> <%= f.check_box :published %> <strong>Published</strong> </label> </div> <% end %> <div class="actions"> <%= f.submit (@post.new_record? ? "Create #{current_post_type.name.humanize}" : "Update #{current_post_type.name.humanize}"), class: "btn btn-primary" %> </div> <% end %> <%= render "storytime/dashboard/media/modal" %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storytime-0.0.2 | app/views/storytime/dashboard/posts/_form.html.erb |