Changes for i18n yml
This commit is contained in:
1 parent
a579e16109
commit
8b2bc207de
171 files changed
+1215
-3717
No files matched your search
@@ -1,4 +1,4 @@
|
||||
<h1><%= t('admin.editing_link') %></h1>
|
||||
<h1><%= t('editing.link') %></h1>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
<%= render :partial => "admin/links/form", :locals => { :f => f } %>
|
||||
|
||||
<p>
|
||||
<%= f.submit t(:update) %> <%= link_back %>
|
||||
<%= f.submit t(:update_) %> <%= link_back %>
|
||||
</p>
|
||||
<% end %>
|
||||
@@ -1,26 +1,59 @@
|
||||
<%= f.error_messages %>
|
||||
<%= f.hidden_field :parent, :value => @item.parent.id %>
|
||||
<%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
|
||||
|
||||
<p>
|
||||
<%= f.label :name, "Name" %>
|
||||
<%= f.text_field :name, :class => 'text' %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :name, t(:name), :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :name, :class => 'text input-xlarge' %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= f.fields_for :title_translations do |f| %>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<p>
|
||||
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %>
|
||||
<%= f.text_field locale, :value => (@item.title_translations[locale] rescue nil) %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field locale, :class => 'text input-xlarge', :value => (@item.title_translations[locale] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= f.label :is_published, t('admin.is_published') %>
|
||||
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :is_published, "#{t(:is_published)} ?", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<label class="radio">
|
||||
<%= f.radio_button :is_published, true %>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<%= f.radio_button :is_published, false %>
|
||||
No
|
||||
</label>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<%= f.label :url, "URL" %>
|
||||
<%= f.text_field :url %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :menu_enabled_for, "#{t(:menu_enabled_for)}:", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<% @site_valid_locales.each do |valid_locale| %>
|
||||
<label class="checkbox">
|
||||
<%= check_box_tag 'link[menu_enabled_for][]', valid_locale, (@item.menu_enabled_for.nil? ? true : @item.menu_enabled_for.include?(valid_locale)) %>
|
||||
<%= I18nVariable.from_locale(valid_locale) %>
|
||||
</label>
|
||||
<% end %>
|
||||
<%= hidden_field_tag 'link[menu_enabled_for][]', '' %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :url, "#{t(:url)}:", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :url, :class => 'text input-xlarge', :value => (@item.url rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<h1><%= t('admin.new_link') %></h1>
|
||||
<h1><%= t('new.link') %></h1>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<%= render :partial => "admin/links/form", :locals => { :f => f } %>
|
||||
|
||||
<p>
|
||||
<%= f.submit t(:create) %> <%= link_back %>
|
||||
<%= f.submit t(:create_) %> <%= link_back %>
|
||||
</p>
|
||||
|
||||
<% end %>
|
||||
@@ -1,24 +1,37 @@
|
||||
<%= flash_messages %>
|
||||
<p>
|
||||
<b><%= t('admin.name') %></b>
|
||||
<%= @item.name %>
|
||||
</p>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:url) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.name %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<p>
|
||||
<b><%= "#{t('admin.title')} #{locale}" %></b>
|
||||
<%= @item.title_translations[locale] if @item.title %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:title) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.title_translations[locale] if @item.title %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<b><%= t('admin.is_published') %></b>
|
||||
<%= @item.is_published.to_s %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:is_published) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.is_published.to_s %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<b><%= t('admin.url') %></b>
|
||||
<%= @item.url %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:url) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.url %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= link_to t(:edit), edit_admin_link_path(@item), :class => 'nav' %>
|
||||
Reference in new issue
Block a user