/
_form.html.erb
41 lines (37 loc) · 1.65 KB
/
_form.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
<div data-hook="admin_static_page_form_fields">
<div class="clearfix">
<div class="left" style="width: 69%;" data-hook="admin_static_page_form_left">
<%= f.field_container :name do %>
<%= f.label :name, t(:name) %> <span class="required">*</span><br />
<%= f.text_field :name, :class => 'fullwidth title' %>
<%= f.error_message_on :name %>
<% end %>
<%= f.field_container :permalink do %>
<%= f.label :permalink, t(:permalink) %> <span class="required">*</span><br />
<%= f.text_field :permalink, :class => 'fullwidth title' %>
<%= f.error_message_on :permalink %>
<% end %>
<%= f.field_container :content do %>
<%= f.label :content, t(:content) %><br />
<%= f.cktext_area :content, {:cols => 180, :rows => 10, :class => 'fullwidth'} %>
<%= f.error_message_on :content %>
<% end %>
</div>
<div class="right" style="width: 30%;" data-hook="admin_static_page_form_right">
<h2><%= t(:metadata) %></h2>
<%= f.field_container :meta_keywords do %>
<%= f.label :meta_keywords, t(:meta_keywords) %><br />
<%= f.text_field :meta_keywords, :class => 'fullwidth' %>
<% end %>
<%= f.field_container :meta_description do %>
<%= f.label :meta_description, t(:meta_description) %><br />
<%= f.text_field :meta_description, :class => 'fullwidth' %>
<% end %>
<%= f.field_container :published_at do %>
<%= f.label :published_at, t(:published_at) %><br />
<%= f.error_message_on :published_at %>
<%= f.text_field :published_at, :class => 'datepicker' %>
<% end %>
</div>
</div>
</div>