70 lines
2.3 KiB
Plaintext
70 lines
2.3 KiB
Plaintext
<% content_for :secondary do %>
|
|
<ul class="list">
|
|
<li><%= link_to t(:edit), edit_admin_translation_path('all'), :class => 'button positive' %></li>
|
|
<li>
|
|
<%= t('admin.add_language') %>:
|
|
<%= form_tag admin_translation_path('add'), :method => :put do %>
|
|
<%= text_field_tag 'language', '', :style => "width:100px" %>
|
|
<%= submit_tag t(:add) %>
|
|
<% end %>
|
|
</li>
|
|
<li>
|
|
<%= t('admin.enable_language') %>:
|
|
<%= form_tag admin_translation_path('enable'), :method => :put do %>
|
|
<%= select_tag 'enable_language', options_for_select(@site_valid_locales - @site_in_use_locales), :style => "width:100px" %>
|
|
<%= submit_tag t(:enable) %>
|
|
<% end %>
|
|
</li>
|
|
<li>
|
|
<%= t('admin.disable_language') %>:
|
|
<%= form_tag admin_translation_path('disable'), :method => :put do %>
|
|
<%= select_tag 'disable_language', options_for_select(@site_in_use_locales), :style => "width:100px" %>
|
|
<%= submit_tag t(:disable) %>
|
|
<% end %>
|
|
</li>
|
|
<li>
|
|
<%= t('admin.delete_language') %>:
|
|
<%= form_tag admin_translation_path('delete'), :method => :put do %>
|
|
<%= select_tag 'delete_language', options_for_select(@site_valid_locales), :style => "width:100px" %>
|
|
<%= submit_tag t(:delete), :confirm => t('sure?') %>
|
|
<% end %>
|
|
</li>
|
|
</ul>
|
|
<% end -%>
|
|
|
|
<% if @language_i18n_variables.size > 0 %>
|
|
<fieldset>
|
|
<legend>
|
|
<%= t('admin.language') %>
|
|
<%#= render :partial => 'action_bar' %>
|
|
</legend>
|
|
<div><%= render :partial => 'language' %></div>
|
|
</fieldset>
|
|
<% end %>
|
|
|
|
<% if @user_attribute_model_i18n_variables.size > 0 %>
|
|
<fieldset>
|
|
<legend>
|
|
<%= t('admin.user_attribute') %>
|
|
<%#= render :partial => 'action_bar' %>
|
|
</legend>
|
|
<div><%= render :partial => 'user_attribute_model', :collection => @user_attribute_model_i18n_variables %></div>
|
|
</fieldset>
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% content_for :page_specific_javascript do %>
|
|
<script type="text/javascript" charset="utf-8">
|
|
$('div a.hide').live( "click", function(){
|
|
$(this).parent().next().hide();
|
|
$(this).replaceWith("<a href='#' class='show'><%= t(:show) %></a>");
|
|
});
|
|
$('div a.show').live( "click", function(){
|
|
$(this).parent().next().show();
|
|
$(this).replaceWith("<a href='#' class='hide'><%= t(:hide) %></a>");
|
|
});
|
|
</script>
|
|
<% end -%>
|