Sha256: b6f9a47d3cd42c8d98e8b180d65e3dc9510d9b89e2065a876ff56e4ae73c5ab9

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

<%= simple_form_for [:dashboard, @page] do |f| %>
  <%= f.error_notification %>
  <%= f.input :title, autofocus: true %>
  <%= f.input :draft_content, as: :text, input_html: { rows: 20, class: "wysiwyg" }, label: "Content" %>
  <% if Pundit.policy(current_user, @page).publish? %>
    <div class="checkbox">
      <label>
        <%= f.check_box :published %> <strong>Published</strong>
      </label>
    </div>
  <% end %>
  <div class="actions">
    <%= f.submit 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.1 app/views/storytime/dashboard/pages/_form.html.erb