orbit4-5/app/views/admin/roles/_form.html.erb

10 lines
479 B
Plaintext
Raw Normal View History

2014-05-09 06:03:55 +00:00
<%= label_tag "key","key", :class=>"muted" %>
<%= f.text_field :key, :value => @role.key,:class=>"input-large", placeholder: t(:key) %>
<%= f.fields_for :title_translations do |f| %>
<% current_site.in_use_locales.each do |locale| %>
<%= label_tag "name-#{locale}", "#{t(:name)} (#{I18nVariable.from_locale(locale)})" %>
<%= f.text_field locale, :class => 'input-large', :value => (@role.title_translations[locale] rescue ''), placeholder: t(:name) %>
<% end %>
<% end %>