Update pages controller and views

Added new attribute `locale` to pages index list and form.
This commit is contained in:
María Checa
2017-07-02 14:49:56 +02:00
parent d5560ddabd
commit 720a2af046
3 changed files with 8 additions and 1 deletions

View File

@@ -30,6 +30,10 @@
<br>
<% end %>
</div>
<div class="small-12 medium-4 column">
<%= f.label :locale %>
<%= f.select :locale, I18n.available_locales, { default: nil, label: false, include_blank: true } %>
</div>
<div class="small-12 medium-4 column">
<%= f.label :slug %>
<%= f.text_field :slug, label: false, size: 80, maxlength: 80 %>