forked from saurabh/orbit4-5
76 lines
2.5 KiB
Plaintext
76 lines
2.5 KiB
Plaintext
<head>
|
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
|
<%= stylesheet_link_tag "lib/main-list"%>
|
|
<%= stylesheet_link_tag "lib/mt-list"%>
|
|
<%= stylesheet_link_tag "lib/filter"%>
|
|
<%= stylesheet_link_tag "lib/togglebox"%>
|
|
<%= stylesheet_link_tag "admin/store"%>
|
|
|
|
<%= javascript_include_tag 'lib/footable-0.1' %>
|
|
<%= javascript_include_tag 'lib/all-list' %>
|
|
<%= javascript_include_tag 'lib/retina' %>
|
|
</head>
|
|
|
|
|
|
<%#= render 'filter' %>
|
|
<%#= flash[:notice] rescue nil%>
|
|
<div id="alert_wrap">
|
|
<div class="alert alert-success">
|
|
<h4><span id="module_msg_title">Please wait...</span></h4><br/>
|
|
<span id="module_msg_content">Theme changes taking effect</span><br/>
|
|
<%= image_tag("preloader.gif", size: "50") %>
|
|
</div>
|
|
</div>
|
|
<div class="templates-store panel">
|
|
<div class="panel-heading">
|
|
<ul>
|
|
<li class="active">
|
|
<a href="#installed_templates" data-toggle="tab">
|
|
<i class="icons-download"></i><%= t(:installed_templates) %>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_store" data-toggle="tab">
|
|
<i class="icon-shopping-cart"></i><%= t(:template_store) %>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="pannel-body tab-content">
|
|
<div class="tab-pane fade active in" id="installed_templates">
|
|
<div class="installed-templates-search">
|
|
<input class="search" type="text" />
|
|
</div>
|
|
<div class="pannel-body-inner">
|
|
<table class="table table-striped">
|
|
<%= render 'designs' %>
|
|
</table>
|
|
</div>
|
|
<button id="apply_change_btn" onclick="apply_change();" class="btn btn-primary btn-small pull-right">Apply Change</button>
|
|
</div>
|
|
<div class="tab-pane fade" id="template_store">
|
|
<div class="templates-store-search">
|
|
<input class="search" type="text" />
|
|
</div>
|
|
<%= render :partial => "admin/store/store", :locals => {:section => "templates"} %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-backdrop"></div>
|
|
|
|
<!-- <div class="form-actions form-fixed pagination-right"> -->
|
|
<%#= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:upload), upload_package_admin_designs_path, :class => 'btn btn-primary pull-right' %>
|
|
<!-- </div> -->
|
|
<script type="text/javascript">
|
|
$(document).on('change', '.design_default', function(){
|
|
$("#alert_wrap").show();
|
|
$(".modal-backdrop").show();
|
|
$(this).attr('value');
|
|
// console.log($(this).attr('rel') + '/' + $(this).val());
|
|
$.getScript($(this).attr('rel'),function(){
|
|
$("#alert_wrap").hide();
|
|
$(".modal-backdrop").hide();
|
|
});
|
|
});
|
|
</script> |