Skip to content

Commit

Permalink
added table headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertlepicki committed Oct 8, 2010
1 parent a585ac8 commit 3a5ff0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/views/go_translate_yourself/site_translations/edit.html.erb
@@ -1,10 +1,20 @@
<%= form_tag update_site_translations_path, :method => :post do %>
<table>
<tr>
<th>Key</th>
<th>Default</th>
<% @locales.each do |locale| %>
<th><%= locale %></th>
<% end %>
</tr>
<% @keys.each do |key| %>
<tr>
<td>
<%= key %>
</td>
<td>
<%= GoTranslateYourself.current_store.default_translation(key) %>
</td>
<% @locales.each do |locale| %>
<td>
<%= text_field_tag "translations[#{locale}.#{key}]", GoTranslateYourself.current_store["#{locale}.#{key}"] %>
Expand Down

0 comments on commit 3a5ff0e

Please sign in to comment.