forked from dylanz/i18n_backend_database
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Editing translations now works fine.
- Loading branch information
Showing
20 changed files
with
7,829 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
<% form_tag translations_url do -%> | ||
<%= select_tag :locale_id, options_from_collection_for_select(Locale.all, :code, :name, @locale.code) -%> | ||
<%= select_tag :translation_option, options_from_collection_for_select(TranslationOption.all, :code, :description, @translation_option.code) -%> | ||
<%= submit_tag 'Go' %> | ||
<% end -%> | ||
<%= form_tag translations_url do %> | ||
<%= select_tag :locale_id, options_from_collection_for_select(Locale.all, :code, :name, @locale.code) %> | ||
<%= select_tag :translation_option, | ||
options_from_collection_for_select(TranslationOption.all, :code, :description, @translation_option.code) %> | ||
<%= submit_tag 'Go' %> | ||
<% end %> | ||
|
||
<p> | ||
Textual Translation progress: <span class="progressBar" id="translate_progress"><%= @locale.percentage_translated %></span> | ||
</p> | ||
<p>Textual Translation progress: <span class="progressBar" id="translate_progress"><%= @locale.percentage_translated %></span></p> | ||
|
||
<h2><%= @translation_option.description %>: <%= @locale.name %></h2> | ||
|
||
<% if @translations.empty? -%> | ||
<% if @translations.empty? %> | ||
<h3>No records for this criteria.</h3> | ||
<% end -%> | ||
<% end %> | ||
<% for translation in @translations %> | ||
<div id="<%= "translation_#{translation.class}_#{translation.id}" %>"> | ||
<% remote_form_for([@locale, translation]) do |f| %> | ||
<p><%=h translation.default_locale_value || translation.raw_key %></p> | ||
<p> | ||
<%= f.text_field :value, :size => 128 %> | ||
<%= f.submit "Update" %> | ||
</p> | ||
<%= form_for(translation, :as => :translation, :url => locale_translation_path(@locale, translation), :remote => true) do |f| %> | ||
<p><%= h translation.default_locale_value || translation.raw_key %></p> | ||
<p><%= f.text_field :value, :size => 128 %> <%= f.submit "Update" %></p> | ||
<% end %> | ||
<hr/> | ||
</div> | ||
<hr/> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.