2013-04-25 09:57:34 +00:00
|
|
|
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= flash_messages %>
|
|
|
|
<%= f.error_messages %>
|
2013-04-25 09:57:34 +00:00
|
|
|
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= label_tag "key","key", :class=>"muted" %>
|
|
|
|
<%= f.text_field :key, :class=>"input-large" %>
|
2013-04-25 09:57:34 +00:00
|
|
|
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= f.fields_for :title_translations do |f| %>
|
2013-11-27 09:50:33 +00:00
|
|
|
<% @site_in_use_locales.each do |locale| %>
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= label_tag "name-#{locale}", "#{t(:name)} (#{I18nVariable.from_locale(locale)})" %>
|
|
|
|
<%= f.text_field locale, :class => 'input-large', :value => (@role_filter.title_translations[locale] rescue ''), placeholder: t(:name) %>
|
|
|
|
<% end %>
|
2013-04-25 09:57:34 +00:00
|
|
|
<% end %>
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= f.hidden_field :role_id, :value => params[:role_id] if !params[:role_id].blank? %>
|