2011-04-13 10:19:51 +00:00
|
|
|
<% @vars = @i18n_variables.inject([]) do |result, var|
|
2011-02-01 07:12:23 +00:00
|
|
|
result << var if var.parent_id.to_s.eql?(edit_user_attribute_model.id.to_s)
|
2011-04-13 10:19:51 +00:00
|
|
|
result
|
|
|
|
end %>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
2011-02-01 07:12:23 +00:00
|
|
|
<%= edit_user_attribute_model.key %>
|
2011-04-13 10:19:51 +00:00
|
|
|
<%#= render :partial => 'action_bar' %>
|
|
|
|
</legend>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('admin.key') %></th>
|
|
|
|
<% @site_valid_locales.each do |locale| %>
|
|
|
|
<th style="color:<%= colorize_in_use_locale(locale) %>"><%= locale %></th>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2011-02-01 07:12:23 +00:00
|
|
|
<td><%= edit_user_attribute_model.key %></td>
|
2011-04-13 10:19:51 +00:00
|
|
|
<% @site_valid_locales.each do |locale| %>
|
2011-02-01 07:12:23 +00:00
|
|
|
<td><%= text_field_tag "i18n_variables[#{edit_user_attribute_model.id}][#{locale}]", edit_user_attribute_model[locale] %></td>
|
2011-04-13 10:19:51 +00:00
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @vars.each do |var| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= var.key %></td>
|
|
|
|
<% @site_valid_locales.each do |locale| %>
|
|
|
|
<td><%= text_field_tag "i18n_variables[#{var.id}][#{locale}]", var[locale] %></td>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|