Fixed the order of the fields in responsive settings page

This commit is contained in:
saurabhbhatia 2013-12-10 10:17:10 +08:00
parent 51f170589f
commit fd560935cd
1 changed files with 13 additions and 12 deletions

View File

@ -27,6 +27,16 @@
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label muted">Select Announcement Categories</label>
<div class="controls">
<% @module.categories.each do |category| %>
<%= check_box_tag "site[announcement_category][]", category.id.to_s, (@site.announcement_category.include?(category) rescue false), :class=>"toggle-check", :data => { :title => "#{category.title}", disabled: true }, "data-deploy"=>"inline", :checked => (@site.announcement_category.include?(category.id.to_s)) %>
<% end %>
</div>
</div>
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Mobile Site Icon</label> <label class="control-label muted">Mobile Site Icon</label>
<div class="controls"> <div class="controls">
@ -56,22 +66,13 @@
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label muted">Select Announcement Categories</label>
<div class="controls">
<% @module.categories.each do |category| %>
<%= check_box_tag "site[announcement_category][]", category.id.to_s, (@site.announcement_category.include?(category) rescue false), :class=>"toggle-check", :data => { :title => "#{category.title}", disabled: true }, "data-deploy"=>"inline", :checked => (@site.announcement_category.include?(category.id.to_s)) %>
<% end %>
</div>
</div>
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Select Orbit Bar Color</label> <label class="control-label muted">Select Orbit Bar Color</label>
<div class="controls"> <div class="controls">
<input type="text" value="<%= (@site.mobile_bar_color.empty? ? '#FFFFF' : @site.mobile_bar_color[0]) %>" class="color-picker" name="site[mobile_bar_color][]" <%= (@site.mobile_bar_color.empty? ? "disabled='disabled'" : "") %> /> <input type="text" value="<%= (@site.mobile_bar_color.nil? ? '#FFFFF' : @site.mobile_bar_color[0]) %>" class="color-picker" name="site[mobile_bar_color][]" <%= (@site.mobile_bar_color.nil? ? "disabled='disabled'" : "") %> />
<input type="text" value="<%= (@site.mobile_bar_color.empty? ? '#FFFFF' : @site.mobile_bar_color[1]) %>" class="color-picker" name="site[mobile_bar_color][]" <%= (@site.mobile_bar_color.empty? ? "disabled='disabled'" : "") %> /> <input type="text" value="<%= (@site.mobile_bar_color.nil? ? '#FFFFF' : @site.mobile_bar_color[1]) %>" class="color-picker" name="site[mobile_bar_color][]" <%= (@site.mobile_bar_color.nil? ? "disabled='disabled'" : "") %> />
OR OR
<input type="checkbox" <%= (@site.mobile_bar_color.empty? ? "checked='checked'" : "") %> name="site[default_bar_color]" id="default_bar_color" style="margin:0 0 3px 10px;" /> Default Color <input type="checkbox" <%= (@site.mobile_bar_color.nil? ? "checked='checked'" : "") %> name="site[default_bar_color]" id="default_bar_color" style="margin:0 0 3px 10px;" /> Default Color
</div> </div>
</div> </div>