forked from citrus/spree_essential_cms
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed some spec and now fully support new spree 1.3 admin interface
- Loading branch information
Showing
17 changed files
with
239 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ pkg/* | |
test/dummy_hooks/after_migrate.rb | ||
test/dummy | ||
.rvmrc | ||
.sass-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
source "http://rubygems.org" | ||
source "https://rubygems.org" | ||
|
||
gem 'spree_essentials', :git => 'git://github.com/sbounmy/spree_essentials' | ||
gem 'spree_essentials', :git => 'git://github.com/sbounmy/spree_essentials.git' | ||
gem 'spree_multi_lingual', :git => "git://github.com/jipiboily/spree_multi_lingual.git", :branch => '1-3-stable' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,77 @@ | ||
<div class='toolbar'> | ||
<ul class='actions'> | ||
<% content_for :page_title do %> | ||
<%= t('.listing_contents') %> | ||
<% end %> | ||
<% content_for :page_actions do %> | ||
<div class="toolbar" data-hook="toolbar"> | ||
<ul class="actions header-action-links inline-menu"> | ||
<li> | ||
<p><%= button_link_to t('.new_content'), new_object_url, :icon => 'add' %></p> | ||
<%= button_link_to t('.new_content'), new_object_url, :icon => 'icon-plus' %> | ||
</li> | ||
</ul> | ||
<br class='clear' /> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<% content_for :table_filter_title do %> | ||
<%= t(:search) %> | ||
<% end %> | ||
|
||
<div id="table-filter" data-hook class="twelve columns"> | ||
<fieldset> | ||
<legend align="center"><%= yield :table_filter_title %></legend> | ||
<div data-hool='admin_contents_sidebar'> | ||
|
||
<%= search_form_for [:admin, @page, @search] do |f| %> | ||
<div data-hook="admin_contents_index_search"> | ||
<div class="alpha six columns"> | ||
<div class="field"> | ||
<%= f.label :title_cont, t('content.title') %> | ||
<%= f.text_field :title_cont, :size => 25 %> | ||
</div> | ||
</div> | ||
<div class="five columns"> | ||
<div class="field"> | ||
<%= f.label :context_cont, t('content.context') %> | ||
<%= f.text_field :context_cont, :size => 25 %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="clear"></div> | ||
|
||
<div class="form-buttons actions filter-actions" data-hook="admin_contents_index_search_buttons"> | ||
<%= button t(:search), 'icon-search' %> | ||
</div> | ||
|
||
<% end %> | ||
|
||
</div> | ||
</fieldset> | ||
</div> | ||
|
||
<%= render :partial => 'spree/admin/shared/page_tabs', :locals => {:current => 'Contents'} %> | ||
|
||
<h2><%= t('.listing_contents') %></h2> | ||
|
||
<table class="index sortable" data-sortable-link="<%= update_positions_admin_page_contents_url(@page) -%>"> | ||
<thead> | ||
<tr> | ||
<th><%= sort_link @search, :title, t("content.title") %></th> | ||
<th><%= sort_link @search, :context, t("content.context") %></th> | ||
<th><%= t("action") %></th> | ||
<th data-hook="admin_contents_index_header_actions" class="actions"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<%- @collection.each do |content|%> | ||
<tr id="<%= spree_dom_id content %>"> | ||
<td><span class="handle"> </span> <%= link_to content.title, object_url(content) %></td> | ||
<td><%= content.context %> | ||
<td> | ||
<%= link_to_edit content %> | ||
<%= link_to_delete content %> | ||
<td class='actions'> | ||
<%= link_to_edit content, :no_text => true, :class => 'edit' %> | ||
| ||
<%= link_to_delete content, :no_text => true %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
|
||
<%= paginate @collection %> | ||
<% content_for :sidebar do %> | ||
<div class="box"> | ||
<h3><%= t(:search) %></h3> | ||
<%= search_form_for [:admin, @page, @search] do |f| %> | ||
<p> | ||
<%= f.label :title_cont, t('content.title') %><br /> | ||
<%= f.text_field :title_cont, :size => 25 %> | ||
</p> | ||
<p> | ||
<%= f.label :context_cont, t('content.context') %><br /> | ||
<%= f.text_field :context_cont, :size => 25 %> | ||
</p> | ||
<p><%= button t("search") %></p> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<%= paginate @collection %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<p> | ||
<%= form.label :attachment %>:<br/> | ||
<%= form.field_container :attachment do %> | ||
<%= form.label :attachment %> | ||
<%= form.file_field :attachment %> | ||
</p> | ||
<p> | ||
<%= form.label :alt %>:<br/> | ||
<% end %> | ||
<%= form.field_container :alt do %> | ||
<%= form.label :alt %> | ||
<%= form.text_field :alt, :class => 'text' %> | ||
</p> | ||
<% end %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,15 @@ | ||
<%= render :partial => 'spree/admin/shared/page_tabs', :locals => {:current => "Images"} unless request.xhr? %> | ||
<h3><%= t("new_image") %></h3> | ||
|
||
<%= render 'spree/shared/error_messages', :target => @page_image %> | ||
<%= form_for(@page_image, :url => admin_page_images_path(@page), :html => { :multipart => true }) do |form| %> | ||
<table class="basic-table"> | ||
<fieldset data-hook="new_product"> | ||
|
||
<legend align="center"><%= t(:new_image) %></legend> | ||
|
||
<%= render "form", :form => form %> | ||
</table> | ||
<p class="form-buttons"> | ||
<%= button t("create") %> | ||
or <%= link_to t("cancel"), "#", :id => "cancel_link" %> | ||
</p> | ||
<%= render :partial => 'spree/admin/shared/new_resource_links' %> | ||
</fieldset> | ||
<% end %> | ||
|
||
<script type="text/javascript"> | ||
jQuery('#cancel_link').click(function (event) { | ||
jQuery('#new_image_link').show(); | ||
jQuery('#images').html(''); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
<h1><%= (t('.editing_page') + " “#{@page.title}”").html_safe %></h1> | ||
<% content_for :page_title do %> | ||
<%= (t('.editing_page') + " “#{@page.title}”").html_safe %> | ||
<% end %> | ||
<% content_for :sidebar do %> | ||
<% content_for :sidebar_title do %> | ||
<span class="title"><%= @page.title %></span> | ||
<% end %> | ||
<h3 class="name"><%= @page.title %></h3> | ||
<br clear="clear" /> | ||
<ul class="sidebar post-menu"> | ||
<li<%== ' class="active"' if current == t('.page_details') %>> | ||
<%= link_to t('.page_details'), edit_admin_page_url(@page) %> | ||
</li> | ||
<li<%== ' class="active"' if current == "Contents" %>> | ||
<%= link_to t('.contents'), admin_page_contents_url(@page) %> | ||
</li> | ||
<li<%== ' class="active"' if current == "Images" %>> | ||
<%= link_to t('.images'), admin_page_images_url(@page) %> | ||
</li> | ||
</ul> | ||
<br clear="clear" /> | ||
<% content_for :sidebar do %> | ||
|
||
<nav class="menu"> | ||
<ul data-hook="admin_page_tabs"> | ||
<li<%== ' class="active"' if current == t('.page_details') %>> | ||
<%= link_to_with_icon 'icon-edit', t('.page_details'), edit_admin_page_url(@page) %> | ||
</li> | ||
<li<%== ' class="active"' if current == 'Contents' %>> | ||
<%= link_to_with_icon 'icon-th-large', t('.contents'), admin_page_contents_url(@page) %> | ||
</li> | ||
<li<%== ' class="active"' if current == 'Images' %>> | ||
<%= link_to_with_icon 'icon-picture', t('.images'), admin_page_images_url(@page) %> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//= require application | ||
//= require admin/spree_core | ||
|
Oops, something went wrong.