Orbit/app/views/admin/designs/edit.html.erb

133 lines
6.4 KiB
Plaintext
Raw Normal View History

2012-05-21 10:20:39 +00:00
<% content_for :side_bar do %>
Merge branch 'various_bugs' into nccu_master Conflicts: Gemfile.lock app/assets/javascripts/ajax_form.js.erb app/assets/stylesheets/style.css.erb app/controllers/application_controller.rb app/controllers/sessions_controller.rb app/helpers/admin/web_link_helper.rb app/views/admin/attributes/_attribute_field.html.erb app/views/admin/designs/_form.html.erb app/views/admin/pages/_form.html.erb app/views/admin/sites/_side_bar.html.erb app/views/layouts/_orbit_bar.html.erb app/views/layouts/_side_bar.html.erb config/locales/en.yml config/locales/zh_tw.yml config/mongoid.yml vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_bulletin.html.erb vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_filter.html.erb vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/index.html.erb vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/_index.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/_filter.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/_filter_status.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/_news_bulletin.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/index.html.erb vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_links/index.html.erb
2012-10-29 08:10:07 +00:00
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :side_bar_content => 'admin/sites/side_bar'} %>
2012-05-21 10:20:39 +00:00
<% end %>
2013-10-03 04:47:07 +00:00
<head>
<%= stylesheet_link_tag "lib/wrap-nav"%>
<%= stylesheet_link_tag "lib/filter"%>
2013-10-18 11:09:04 +00:00
<%= stylesheet_link_tag "lib/code_editor"%>
<%= stylesheet_link_tag "lib/codemirror/codemirror"%>
2013-10-03 04:47:07 +00:00
<%= stylesheet_link_tag "lib/codemirror/theme/theme"%>
2013-10-18 11:09:04 +00:00
<%= javascript_include_tag "codemirror/codemirror" %>
<%= javascript_include_tag "codemirror/jquery.codemirror" %>
<%= javascript_include_tag "codemirror/mode/css" %>
<%= javascript_include_tag "codemirror/mode/xml" %>
<%= javascript_include_tag "codemirror/mode/vbscript" %>
<%= javascript_include_tag "codemirror/mode/javascript" %>
<%= javascript_include_tag "codemirror/mode/htmlmixed" %>
<%= javascript_include_tag "codemirror/addon/edit/closetag" %>
<%= javascript_include_tag "codemirror/addon/edit/closebrackets" %>
<%= javascript_include_tag "codemirror/util/formatting" %>
<%= javascript_include_tag "lib/templates_code" %>
2013-10-03 04:47:07 +00:00
</head>
2013-10-18 11:09:04 +00:00
<!-- Main -->
<h3><%= @design.title %></h3>
<div class="pull-right btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Theme
<span class="caret"></span>
</a>
<ul id="code-theme" class="dropdown-menu">
<li><a href="default">Default</a></li>
<li><a href="ambiance-mobile">Ambiance Mobile</a></li>
<li><a href="ambiance">Ambiance</a></li>
<li><a href="blackboard">Blackboard</a></li>
<li><a href="cobalt">Cobalt</a></li>
<li><a href="eclipse">Eclipse</a></li>
<li><a href="elegant">Elegant</a></li>
<li><a href="erlang-dark">Erlang Dark</a></li>
<li><a href="midnight">Midnight</a></li>
<li><a href="monokai">Monokai</a></li>
<li><a href="neat">Neat</a></li>
<li><a href="night">Night</a></li>
<li><a href="rubyblue">Rubyblue</a></li>
<li><a href="solarized">Solarized</a></li>
<li><a href="theme">Theme</a></li>
<li><a href="twilight">Twilight</a></li>
<li><a href="vibrant-ink">Vibrant Ink</a></li>
<li><a href="xq-dark">Xq Dark</a></li>
<li><a href="xq-light">Xq Light</a></li>
</ul>
</div>
<ul id="code-tab" class="nav nav-pills">
<li class="dropdown active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">HTML <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="active"><a href="#html_0" data-toggle="tab"><%= @design.layout.name %></a></li>
<% @design.themes.each do |theme| %>
<li><a href="#<%= dom_id theme %>" data-toggle="tab"><%= theme.name %></a></li>
<%end%>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">CSS <b class="caret"></b></a>
<ul class="dropdown-menu">
2013-11-04 08:30:37 +00:00
<li class="active"><a href="#html_0" data-toggle="tab"><%= @design.layout.name %></a></li>
<% @design.themes.each do |theme| %>
<li><a href="#<%= dom_id theme %>" data-toggle="tab"><%= theme.name %></a></li>
<%end%>
2013-10-18 11:09:04 +00:00
<li><a href="#css_0" data-toggle="tab"><%= @design.css_default.name %></a></li>
<li><a href="#css_1" data-toggle="tab"><%= @design.css_reset.name %></a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Javascript <b class="caret"></b></a>
<ul class="dropdown-menu">
<% @design.javascripts.each do |js| %>
<li><a href="#<%= dom_id js %>" data-toggle="tab"><%= js.name %></a></li>
<% end %>
</ul>
</li>
2013-11-04 08:30:37 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Theme <b class="caret"></b></a>
<ul class="dropdown-menu">
<% @design.themes.each do |theme| %>
<li><a href="#<%= dom_id theme %>" data-toggle="tab"><%= theme.name %></a></li>
<% end %>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Images <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#images" data-toggle="tab">Images</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Template Info<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#info" data-toggle="tab">Template Info</a></li>
</ul>
</li>
2013-10-18 11:09:04 +00:00
</ul>
<div id="code-groups" class="tab-content">
<div class="clearfix tab-pane fade active in" id="html_0">
<%= render :partial => 'tab_form', :locals => {:type => :layout, :object => @design.layout} %>
</div>
<% @design.themes.each do |theme| %>
<div class="clearfix tab-pane fade active in" id="<%= dom_id theme %>">
<%= render :partial => 'tab_form', :locals => {:type => :themes, :object => theme} %>
</div>
<% end %>
<div class="clearfix tab-pane fade active in" id="css_0">
<%= render :partial => 'tab_form', :locals => {:type => :css_default, :object => @design.css_default} %>
</div>
<div class="clearfix tab-pane fade active in" id="css_1">
<%= render :partial => 'tab_form', :locals => {:type => :css_reset, :object => @design.css_reset} %>
</div>
<div class="clearfix tab-pane fade active in" id="images">
<%= render :partial => 'images' %>
</div>
<div class="clearfix tab-pane fade active in" id="info">
<%= render :partial => 'form' %>
</div>
2013-10-18 11:09:04 +00:00
<% @design.javascripts.each do |js| %>
<div class="clearfix tab-pane fade active in" id="<%= dom_id js %>">
2013-10-18 11:09:04 +00:00
<%= render :partial => 'tab_form', :locals => {:type => :javascripts, :object => js} %>
</div>
<% end %>
</div>