aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery
diff options
context:
space:
mode:
authorDries Steenhouwer <steenhouwer.dries@gmail.com>2013-11-29 12:10:00 +0100
committerDries Steenhouwer <steenhouwer.dries@gmail.com>2013-11-29 12:10:00 +0100
commitd769f21dcbb5337d56b6d980a00d70a3e8e007c8 (patch)
treee216db00e98e4ae5eeff780e0c032ec0fbf9bc3c /app/views/refinery
parent9944242e3486586f397ad4353c32c411b7ef670b (diff)
downloadrefinerycms-pc_banners-d769f21dcbb5337d56b6d980a00d70a3e8e007c8.tar.gz
refinerycms-pc_banners-d769f21dcbb5337d56b6d980a00d70a3e8e007c8.tar.bz2
refinerycms-pc_banners-d769f21dcbb5337d56b6d980a00d70a3e8e007c8.zip
add language support to banners
Diffstat (limited to 'app/views/refinery')
-rw-r--r--app/views/refinery/banners/admin/banners/_form.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/refinery/banners/admin/banners/_form.html.erb b/app/views/refinery/banners/admin/banners/_form.html.erb
index 5230cb1..356719e 100644
--- a/app/views/refinery/banners/admin/banners/_form.html.erb
+++ b/app/views/refinery/banners/admin/banners/_form.html.erb
@@ -41,6 +41,13 @@
</div>
+ <% if Refinery::I18n.frontend_locales %>
+ <div class='field'>
+ <%= f.label :locale -%>
+ <%= f.select :locale, Refinery::I18n.frontend_locales, include_blank: true -%>
+ </div>
+ <% end %>
+
<div class='field'>
<%= f.label :is_active -%>
<%= f.check_box :is_active, :checked => @banner[:is_active] -%>