From d769f21dcbb5337d56b6d980a00d70a3e8e007c8 Mon Sep 17 00:00:00 2001 From: Dries Steenhouwer Date: Fri, 29 Nov 2013 12:10:00 +0100 Subject: add language support to banners --- app/views/refinery/banners/admin/banners/_form.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/views/refinery/banners/admin') 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 @@ + <% if Refinery::I18n.frontend_locales %> +
+ <%= f.label :locale -%> + <%= f.select :locale, Refinery::I18n.frontend_locales, include_blank: true -%> +
+ <% end %> +
<%= f.label :is_active -%> <%= f.check_box :is_active, :checked => @banner[:is_active] -%> -- cgit v1.2.3