Sha256: ad2936d20a853161d07c79508dde5095865dfb23483f9496c381b91e287ea17d

Contents?: true

Size: 1.72 KB

Versions: 13

Compression:

Stored size: 1.72 KB

Contents

<% content_for :page_heading do %>
<h2>
  <%= t('.post_types') %>
</h2>
<% end %>

<div class='row'>
  <div class='col-md-4'>
    <%= form_for([:admin, @post_type]) do |f| %>

      <% if @post_type.errors.any? %>
        <ul>
          <% @post_type.errors.full_messages.each do |message| %>
            <li><%= message %></li>
          <% end %>
        </ul>
      <% end %>

      <div class="form-group">
        <%= f.text_field :name, class: 'form-control', placeholder: 'Name' %>
      </div>
      <div class="form-group">
        <%= f.text_area :description, rows: 5, class: 'form-control', placeholder: 'Description' %>
      </div>
      <div class="form-group">
        <hr />
        <%= link_to(t('.cancel'), action: 'index') %>
        <%= t('.or') %>
        <%= f.submit t('.save'), class: 'btn btn-success' %>
      </div>
    <% end %>
  </div>

  <div class="col-md-8">
    <table class='table table-hover'>
      <thead>
        <tr class='noborder'>
          <th><%= t('.name') %></th>
          <th><%= t('.description') %></th>
          <th><%= t('.template_name') %></th>
        </tr>
      </thead>
      <tr class='shade'>
        <td><%= t('.default') %></td>
        <td><%= t('.publify_default_post_type') %></td>
        <td>read</td>
      </tr>
      <% @post_types.each do |post_type| %>
        <tr>
          <td>
            <%= post_type.name %><br />
            <div class='action'>
              <%= button_to_edit post_type %>
              <%= button_to_delete post_type %>
            </div>
          </td>
          <td><%= post_type.description %></td>
          <td><%= post_type.permalink %></td>
        </tr>
      <% end %>
    </table>
    <p class="help-block"><%= t('.explain') %></p>
  </div>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
publify_core-10.0.1 app/views/admin/post_types/_index_and_form.html.erb
publify_core-10.0.0 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.10 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.9 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.8 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.7 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.6 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.5 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.4 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.3 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.2 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.1 app/views/admin/post_types/_index_and_form.html.erb
publify_core-9.2.0 app/views/admin/post_types/_index_and_form.html.erb