Default Locale

This commit is contained in:
saurabhbhatia committed 2013-09-06 18:00:36 +08:00
1 parent a3f1b8d54a
commit fa857cfeea
5 files changed
+36 -15

No files matched your search

+12 -7
View File
@@ -130,7 +130,7 @@
<div class="control-group">
<label class="control-label muted">Disable personal desktop</label>
<div class="controls">
<input type="checkbox" class="toggle-check" data-disabled="true">
<%= f.check_box :desktop_open , :class=>"toggle-check" %>
</div>
</div>
@@ -138,24 +138,29 @@
<!-- Language -->
<div id="language-set" class="tab-pane fade">
<div class="control-group">
<!-- <div class="control-group">
<label class="control-label muted">Enable User Language Detection</label>
<div class="controls">
<input type="checkbox" class="toggle-check" data-disabled="true">
</div>
</div>
</div> -->
<div class="control-group">
<label class="control-label muted">Default Language</label>
<div class="controls">
<input type="radio" name="def-lang" class="toggle-check" data-disabled="true" data-title="English" checked="checked">
<input type="radio" name="def-lang" class="toggle-check" data-disabled="true" data-title="Chinese">
<% @site_in_use_locales.each do |locale| %>
<%= check_box_tag :default_locale, locale, :class=>"toggle-check" %>
<%= I18nVariable.from_locale(locale) %>
<% end %>
</div>
</div>
<div class="control-group">
<label class="control-label muted">Enable Language</label>
<div class="controls">
<input type="checkbox" class="toggle-check" data-disabled="true" data-title="English">
<input type="checkbox" class="toggle-check" data-disabled="true" data-title="Chinese">
<% @site_valid_locales.each do |valid_locale| %>
<%= check_box_tag 'site[enabled_for][]', valid_locale, (@site.enabled_for.nil?), :class=>"toggle-check" %>
<%= I18nVariable.from_locale(valid_locale) %>
<% end %>
<%= hidden_field_tag 'site[enabled_for][]', '' %>
</div>
</div>