forked from publify/publify
/
new.html.erb
48 lines (46 loc) · 1.79 KB
/
new.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<%- content_for :page_heading do %>
<h2 class="icon-large icon-categories"><%= _("Categories") %></h2>
<% end %>
<div>
<div class='span4'>
<%= form_tag :action=>"edit", :id => @category.id do %>
<%= error_messages_for 'category' %>
<label for='category_name'><%= _("Name") %></label>
<%= text_field :category, :name, :class => 'span12' %>
<label for='category_keywords' class='control-label'><%= _("Keywords") %></label>
<%= text_field :category, :keywords, :class => 'span12' %>
<label for="category_permalink"><%= _("Permalink") %></label>
<%= text_field :category, :permalink, :class => 'span12' %>
<p class='help-block'><%= _("Your category slug. Leave empty if you don't know what to put here") %></p>
<label for="category_description"><%= _("Description") %></label>
<%= text_area :category, :description, :rows => 5, :class => 'span12' %>
<div class='form-actions'>
<%= cancel_or_save %>
</div>
<% end %>
</div>
<div class="span8">
<table id='category_container' class="table table-striped">
<thead>
<tr class='noborder'>
<th style='width:40%'><%= _("Title") %></th>
<th><%= _("Description") %></th>
<th><%= _("Permalink") %></th>
<th><%= _("Keywords") %></th>
</tr>
</thead>
<%= render_void_table(@categories.size, 4) %>
<% for category in @categories -%>
<tr id="category_<%= category.id -%>">
<td>
<%= link_to_edit category.name, category %>
<%= show_category_actions category %>
</td>
<td><%= h category.description %></td>
<td><%= category.permalink %></td>
<td><%= h category.keywords %></td>
</tr>
<% end -%>
</table>
</div>
</div>