app/views/tr8n/admin/translation_key/lb_update.html.erb in tr8n-3.0.5 vs app/views/tr8n/admin/translation_key/lb_update.html.erb in tr8n-3.1.1

- old
+ new

@@ -1,44 +1,54 @@ -<%= form_for(@key, :as => :translation_key, :url => {:action => :update}, :html => {:id => 'tr8n_form', :method => :post, :class => "tr8n"}) do |form| %> - <%= form.hidden_field :id %> - <%= hidden_field_tag :source_url, request.env['HTTP_REFERER'] %> - - <h2><%=tra("Translation Key Details")%></h2> - <table class="admin_table"> - <tr> - <th> - <%=tra("Access Key:")%> - </th> - <td> - <%=@key.key%> - </td> - </tr> - <tr> - <th> - <%=tra("Translations:")%> - </th> - <td> - <%=@key.translations.size%> - </td> - </tr> - <tr> - <th> - <%=tra("Label:")%> - </th> - <td> - <%= form.text_field :label, :style=>"width:99%;" %> - </td> - </tr> - <tr> - <th> - <%=tra("Description:")%> - </th> - <td> - <%= form.text_field :description, :style=>"width:99%;" %> - </td> - </tr> - </table> - - <div><i>Note: changing translation key may invalidate the translations. Don't forget to change the code to reflect the new label and description. Otherwise the lookup will fail and a new key will be registered.</i></div> - - <%= render :partial => "/tr8n/admin/common/lightbox_buttons" %> -<% end %> +<div class="inner"> + <div class="hd"> + <div style="float:right;"> + <%=link_to_function(image_tag("tr8n/close.gif"), "tr8nLightbox.hide();") %> + </div> + Translation Key Details + </div> + <div class="bd"> + <%= form_for(@key, :as => :translation_key, :url => {:action => :update}, :html => {:id => 'tr8n_form', :method => :post, :class => "tr8n"}) do |form| %> + <%= form.hidden_field :id %> + <%= hidden_field_tag :source_url, request.env['HTTP_REFERER'] %> + <table class="admin_table"> + <tr> + <th> + <%=tra("Access Key:") %> + </th> + <td> + <%=@key.key %> + </td> + </tr> + <tr> + <th> + <%=tra("Translations:") %> + </th> + <td> + <%=@key.translations.size %> + </td> + </tr> + <tr> + <th> + <%=tra("Label:") %> + </th> + <td> + <%= form.text_field :label, :style=>"width:99%;" %> + </td> + </tr> + <tr> + <th> + <%=tra("Description:") %> + </th> + <td> + <%= form.text_field :description, :style=>"width:99%;" %> + </td> + </tr> + </table> + <div> + <em>Note: changing translation key may invalidate the translations. Don't forget to change the code to reflect the new label and description. Otherwise the lookup will fail and a new key will be registered.</em> + </div> + <% end %> + </div> + <div class="ft"> + <%= render :partial => "/tr8n/admin/common/lightbox_buttons" %> + </div> +</div>