<%= form_tag admin_translations_path do %> <% @translations.each_with_index do |translation, index| %> <% end %>
<%= t('translations.key') %> <%= t("translations.locales.#{params[:language]}")%>
<%= display_translation_if_exist(translation) %> <%= translation.key %> <%= hidden_field_tag "translations[#{index}][id]", translation[:id] %> <%= hidden_field_tag "translations[#{index}][locale]", translation[:locale] %> <%= hidden_field_tag "translations[#{index}][key]", translation[:key] %> <%= hidden_field_tag "translations[#{index}][destroy]", false, :class => 'translation-destroy' %> <%= text_area_tag "translations[#{index}][value]", translation[:value] %> <%= link_to t('translations.delete'), admin_translation_path(translation[:id], :type => params[:type], :language => params[:language]), :method => :delete, :class => :delete, :remote => true %>
<%= submit_tag t('translations.submit') %> <%= link_to t("cancel"), admin_translations_path %>
<% end %>