|
|
@ -23,12 +23,12 @@
|
|
|
|
<label class="control-label muted"><%= I18n.t('site.mobile_version')%></label>
|
|
|
|
<label class="control-label muted"><%= I18n.t('site.mobile_version')%></label>
|
|
|
|
<div id="mobile-site" class="controls">
|
|
|
|
<div id="mobile-site" class="controls">
|
|
|
|
<%= f.check_box :mobile_on , :class=>"toggle-check", :data=> { disabled: true } %>
|
|
|
|
<%= f.check_box :mobile_on , :class=>"toggle-check", :data=> { disabled: true } %>
|
|
|
|
<span class="help-block">Enable Mobile Website</span>
|
|
|
|
<span class="help-block"><%= t("mobile_setting.enabled_reminder") %></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted">Select Announcement Categories</label>
|
|
|
|
<label class="control-label muted"><%= t("mobile_setting.select_announcement_categories") %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="controls">
|
|
|
|
<% @module.categories.each do |category| %>
|
|
|
|
<% @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)) %>
|
|
|
|
<%= 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)) %>
|
|
|
@ -38,7 +38,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted">Mobile Site Icon</label>
|
|
|
|
<label class="control-label muted"><%= t("mobile_setting.mobile_site_icon") %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="controls">
|
|
|
|
<!-- if this page editing please add class "fileupload-edit" -->
|
|
|
|
<!-- if this page editing please add class "fileupload-edit" -->
|
|
|
|
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
|
|
|
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
|
|
@ -52,32 +52,32 @@
|
|
|
|
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
|
|
|
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
|
|
|
<% if @site.mobile_icon.present?%>
|
|
|
|
<% if @site.mobile_icon.present?%>
|
|
|
|
<span class="btn btn-file">
|
|
|
|
<span class="btn btn-file">
|
|
|
|
<%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change
|
|
|
|
<%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t("mobile_setting.change") %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<%= f.check_box :remove_mobile_icon %>
|
|
|
|
<%= f.check_box :remove_mobile_icon %>
|
|
|
|
Remove Icon
|
|
|
|
<%= t("mobile_setting.remove_icon") %>
|
|
|
|
<%else%>
|
|
|
|
<%else%>
|
|
|
|
<span class="btn btn-file">
|
|
|
|
<span class="btn btn-file">
|
|
|
|
<%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image
|
|
|
|
<%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t("mobile_setting.select_image") %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<%end%>
|
|
|
|
<%end%>
|
|
|
|
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a>
|
|
|
|
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload"><%= t(:cancel) %></a>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</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"><%= t("mobile_setting.select_orbit_bar_color") %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="controls">
|
|
|
|
<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.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.nil? ? '#FFFFF' : @site.mobile_bar_color[1]) %>" class="color-picker" name="site[mobile_bar_color][]" <%= (@site.mobile_bar_color.nil? ? "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
|
|
|
|
<%= t("mobile_setting.or") %>
|
|
|
|
<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
|
|
|
|
<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;" /> <%= t("mobile_setting.default_color") %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted">Phone Number</label>
|
|
|
|
<label class="control-label muted"><%= t("mobile_setting.phone_number") %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="controls">
|
|
|
|
<div id="phone_number_wrap" style="line-height: 40px;">
|
|
|
|
<div id="phone_number_wrap" style="line-height: 40px;">
|
|
|
|
<% @site.phone_number.each_with_index do |phone,i| %>
|
|
|
|
<% @site.phone_number.each_with_index do |phone,i| %>
|
|
|
@ -96,7 +96,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted">Address</label>
|
|
|
|
<label class="control-label muted"><%= t("mobile_setting.address") %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="controls">
|
|
|
|
<div class="textarea">
|
|
|
|
<div class="textarea">
|
|
|
|
<%= f.text_area :address, :class => "ckeditor input-block-level", :value => (@site.address rescue nil) %>
|
|
|
|
<%= f.text_area :address, :class => "ckeditor input-block-level", :value => (@site.address rescue nil) %>
|
|
|
@ -108,7 +108,7 @@
|
|
|
|
<label class="control-label muted"><%= I18n.t('site.mobile_api_openness_on') %></label>
|
|
|
|
<label class="control-label muted"><%= I18n.t('site.mobile_api_openness_on') %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="controls">
|
|
|
|
<%= f.check_box :mobile_api_openness_on , :class=>"toggle-check", :data=> { disabled: true } %>
|
|
|
|
<%= f.check_box :mobile_api_openness_on , :class=>"toggle-check", :data=> { disabled: true } %>
|
|
|
|
<span class="help-block">Make API available for Mobile Apps</span>
|
|
|
|
<span class="help-block"><%= t("mobile_setting.api_reminder") %></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|