Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ed01de
commit 5defcda
Showing
26 changed files
with
150 additions
and
177 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
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 @@ | ||
= render :partial => "taxon_table", :locals => {:taxons => @taxons} | ||
= render :partial => "taxon_table", :locals => {:taxons => @taxons} |
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 @@ | ||
= render :partial => "taxon_table", :locals => {:taxons => @taxons} | ||
= render :partial => "taxon_table", :locals => {:taxons => @taxons} |
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,36 +1,32 @@ | ||
= render :partial => 'admin/shared/product_sub_menu' | ||
= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Taxons"} | ||
#selected-taxons | ||
= render :partial => "taxon_table", :locals => {:taxons => @taxons} | ||
#selected-taxons= render :partial => "taxon_table", :locals => {:taxons => @taxons} | ||
- form_tag('#') do | ||
%label | ||
= t('search') | ||
\: | ||
%label #{t('search')}: | ||
%input#searchtext{:size => "25"}/ | ||
- javascript_tag do | ||
:javascript | ||
function search_for_taxons(){ | ||
jQuery.ajax({ | ||
data: {q: jQuery("#searchtext").val() }, | ||
success: function(request){ | ||
jQuery('#search_hits').html(request); | ||
}, | ||
type: 'post', | ||
url: '#{available_admin_product_taxons_url(@product)}' | ||
}); | ||
jQuery.ajax({ | ||
data: {q: jQuery("#searchtext").val() }, | ||
success: function(request){ | ||
jQuery('#search_hits').html(request); | ||
}, | ||
type: 'post', | ||
url: '#{available_admin_product_taxons_url(@product)}' | ||
}); | ||
} | ||
|
||
jQuery("#searchtext").keypress(function (e) { | ||
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { | ||
search_for_taxons(); | ||
|
||
return false; | ||
} else { | ||
return true; | ||
} | ||
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { | ||
search_for_taxons(); | ||
return false; | ||
} else { | ||
return true; | ||
} | ||
}); | ||
|
||
jQuery("#searchtext").delayedObserver(0.75, function(element, value) { | ||
search_for_taxons(); | ||
}) | ||
search_for_taxons(); | ||
}); | ||
%br/ | ||
#search_hits | ||
#search_hits |
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,7 +1,6 @@ | ||
= render :partial => 'admin/shared/configuration_menu' | ||
%h1= t("editing_tracker") | ||
= error_messages_for :tracker | ||
- form_for(@tracker, :url => object_url, :html => { :method => :put }) do |f| | ||
= render :partial => "form", :locals => { :f => f } | ||
%p | ||
= submit_tag t("update") | ||
- form_for(@tracker, :url => object_url, :html => {:method => :put}) do |f| | ||
= render :partial => "form", :locals => {:f => f} | ||
%p= submit_tag t("update") |
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
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,7 +1,7 @@ | ||
= error_messages_for :user | ||
%h1= t("editing_user") | ||
- form_for(:user, :url => object_url, :html => { :method => :put }) do |f| | ||
= render :partial => "form", :locals => { :f => f } | ||
- form_for(:user, :url => object_url, :html => {:method => :put}) do |f| | ||
= render :partial => "form", :locals => {:f => f} | ||
%p.form-buttons | ||
= button t("update") | ||
= link_to t('cancel'), collection_url | ||
= link_to t('cancel'), collection_url |
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,7 +1,7 @@ | ||
= error_messages_for :user | ||
%h1= t("new_user") | ||
- form_for(:user, :url => collection_url) do |f| | ||
= render :partial => "form", :locals => { :f => f } | ||
= render :partial => "form", :locals => {:f => f} | ||
%p.form-buttons | ||
= button t("create") | ||
= link_to t('cancel'), collection_url | ||
= link_to t('cancel'), collection_url |
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,7 +1,7 @@ | ||
= render :partial => 'admin/shared/product_sub_menu' | ||
= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Variants"} | ||
= error_messages_for :variant | ||
- form_for(@variant, :url => object_url, :html => { :method => :put }) do |f| | ||
- form_for(@variant, :url => object_url, :html => {:method => :put}) do |f| | ||
- hook :admin_variant_edit_form, {:f => f} do | ||
= render :partial => "form", :locals => { :f => f } | ||
= render :partial => 'admin/shared/edit_resource_links' | ||
= render :partial => "form", :locals => {:f => f} | ||
= render :partial => 'admin/shared/edit_resource_links' |
Oops, something went wrong.