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