30 lines
881 B
Plaintext
30 lines
881 B
Plaintext
<% # encoding: utf-8 %>
|
|
|
|
<%= form_for(@asset_category, :remote => true, :url => @url) do |f| %>
|
|
|
|
<h2><%= (@asset_category.new_record? ? 'Add' : 'Edit') %></h2>
|
|
|
|
<div id="widget-title">
|
|
<%= f.label :key %>
|
|
<%= f.text_field :key %>
|
|
</div>
|
|
|
|
<div id="widget-title">
|
|
<%= f.fields_for :i18n_variable, (@asset_category.new_record? ? @asset_category.build_i18n_variable : @asset_category.i18n_variable) do |f| %>
|
|
<% @site_valid_locales.each do |locale| %>
|
|
<div class="control-group">
|
|
<%= label_tag "name-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
|
|
<div class="controls">
|
|
<%= f.text_field locale, :class => 'input-xxlarge' %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="form-actions pagination-right">
|
|
<%= f.submit t('submit'), :class=>'btn btn-primary' %>
|
|
</div>
|
|
|
|
<% end %>
|
|
|