Added Mobile Web as a separate page
This commit is contained in:
parent
e62f91d3fd
commit
03957f565b
|
@ -62,6 +62,10 @@ class Admin::SitesController < OrbitBackendController
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def responsive_setting
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
def ui_theme
|
def ui_theme
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,10 @@ class FrontController < ApplicationController
|
||||||
|
|
||||||
def show_footer
|
def show_footer
|
||||||
@page = Page.find(:all, :conditions => {:name => /terms/i})
|
@page = Page.find(:all, :conditions => {:name => /terms/i})
|
||||||
@name = @page.first.name
|
@name = @page.first.name if @page.first.name.present?
|
||||||
@url = "/#{@name}"
|
@url = "/#{@name}" if @name.present?
|
||||||
|
|
||||||
if !@site.enable_terms_of_use
|
if (!@site.enable_terms_of_use && @url.present?)
|
||||||
render :text => (@site.footer + "<a href='#{@url}'>Terms of Use</a>")
|
render :text => (@site.footer + "<a href='#{@url}'>Terms of Use</a>")
|
||||||
else
|
else
|
||||||
render :text => @site.footer
|
render :text => @site.footer
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
||||||
|
|
||||||
|
<li title="Site Mobile"><%= link_to admin_site_responsive_setting_path(@site), :class => active_for_action('sites', 'responsive') do %><span><i class="icons-mobile"></i></span><%end%></li>
|
||||||
|
|
||||||
<li title="Search Engine"><%= link_to admin_site_search_engine_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-search"></i></span><%end%></li>
|
<li title="Search Engine"><%= link_to admin_site_search_engine_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-search"></i></span><%end%></li>
|
||||||
|
|
||||||
<li title="Preference"><%= link_to admin_site_preference_path(@site), :class => active_for_action('sites', 'preference') do %><span><i class="icons-cog"></i></span><%end%></li>
|
<li title="Preference"><%= link_to admin_site_preference_path(@site), :class => active_for_action('sites', 'preference') do %><span><i class="icons-cog"></i></span><%end%></li>
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
||||||
|
|
||||||
|
<li title="Site Mobile"><%= link_to admin_site_responsive_setting_path(@site), :class => active_for_action('sites', 'responsive_setting') do %><span><i class="icons-mobile"></i></span><%end%></li>
|
||||||
|
|
||||||
<li title="Search Engine"><%= link_to admin_site_search_engine_path(@site), :class => active_for_action('sites', 'search_engine') do %><span><i class="icons-search"></i></span><%end%></li>
|
<li title="Search Engine"><%= link_to admin_site_search_engine_path(@site), :class => active_for_action('sites', 'search_engine') do %><span><i class="icons-search"></i></span><%end%></li>
|
||||||
|
|
||||||
<li title="Preference"><%= link_to admin_site_preference_path(@site), :class => active_for_action('sites', 'preference') do %><span><i class="icons-cog"></i></span><%end%></li>
|
<li title="Preference"><%= link_to admin_site_preference_path(@site), :class => active_for_action('sites', 'preference') do %><span><i class="icons-cog"></i></span><%end%></li>
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
<% content_for :side_bar do %>
|
||||||
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_responsive_setting_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
||||||
|
<%= stylesheet_link_tag "lib/main-forms"%>
|
||||||
|
<%= stylesheet_link_tag "lib/fileupload"%>
|
||||||
|
<%= stylesheet_link_tag "lib/togglebox"%>
|
||||||
|
|
||||||
|
<%= javascript_include_tag 'lib/bootstrap-fileupload' %>
|
||||||
|
<%= javascript_include_tag 'lib/site_set' %>
|
||||||
|
</head>
|
||||||
|
<!-- Forms -->
|
||||||
|
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "form-horizontal main-forms"} do |f| %>
|
||||||
|
<fieldset>
|
||||||
|
<!-- Input Area -->
|
||||||
|
<div class="input-area">
|
||||||
|
|
||||||
|
<!-- Enable Mobile Web -->
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label muted"><%= I18n.t('site.mobile_version')%></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.check_box :mobile_on , :class=>"toggle-check", :data=> { disabled: true } %>
|
||||||
|
<span class="help-block">Enable Mobile Website</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label muted"><%= I18n.t('site.mobile_api_openness_on') %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.check_box :mobile_api_openness_on , :class=>"toggle-check", :data=> { disabled: true } %>
|
||||||
|
<span class="help-block">Make API available for Mobile Apps</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- Form Actions -->
|
||||||
|
<div class="form-actions">
|
||||||
|
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
||||||
|
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
<%end%>
|
|
@ -3,8 +3,11 @@
|
||||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
||||||
<%= devise_error_messages! %>
|
<%= devise_error_messages! %>
|
||||||
|
|
||||||
<div><%= f.label :email %><br />
|
<!-- <div><%= f.label :email %><br />
|
||||||
<%= f.email_field :email %></div>
|
<%= f.email_field :email %></div>
|
||||||
|
-->
|
||||||
|
<div><%= f.label "Username" %><br />
|
||||||
|
<%= f.email_field :user_id %></div>
|
||||||
|
|
||||||
<div><%= f.label :password %><br />
|
<div><%= f.label :password %><br />
|
||||||
<%= f.password_field :password %></div>
|
<%= f.password_field :password %></div>
|
||||||
|
|
|
@ -197,6 +197,7 @@ Orbit::Application.routes.draw do
|
||||||
resources :sites do
|
resources :sites do
|
||||||
get 'mail_setting'
|
get 'mail_setting'
|
||||||
get 'site_info'
|
get 'site_info'
|
||||||
|
get 'responsive_setting'
|
||||||
get 'search_engine'
|
get 'search_engine'
|
||||||
get 'sitemap'
|
get 'sitemap'
|
||||||
get 'sitemap_frontend'
|
get 'sitemap_frontend'
|
||||||
|
|
Loading…
Reference in New Issue