Skip to content

Commit

Permalink
Impor missing partials from spree to ofn and convert to haml
Browse files Browse the repository at this point in the history
  • Loading branch information
HugsDaniel committed Jul 25, 2019
1 parent 2d872c2 commit c83d249
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/views/spree/admin/product_properties/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@

:javascript
var properties = #{raw(@properties.to_json)};
console.log(properties)
$("#product_properties input.autocomplete").live("keydown", function(){
already_auto_completed = $(this).is('ac_input');
if (!already_auto_completed) {
Expand Down
4 changes: 4 additions & 0 deletions app/views/spree/admin/shared/_edit_resource_links.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.form-buttons.filter-actions.actions
= button Spree.t('actions.update'), 'icon-refresh'
%span.or= Spree.t(:or)
= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'icon-remove'
6 changes: 6 additions & 0 deletions app/views/spree/admin/shared/_product_sub_menu.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- content_for :sub_menu do
%ul#sub_nav.inline-menu
= tab :products, match_path: '/products'
= tab :option_types, match_path: '/option_types'
= tab :properties
= tab :prototypes
11 changes: 11 additions & 0 deletions app/views/spree/shared/_error_messages.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- if target && target.errors.any?
#errorExplanation.errorExplanation
%h2
= Spree.t(:errors_prohibited_this_record_from_being_saved, count: target.errors.count)
\:
%p
= Spree.t(:there_were_problems_with_the_following_fields)
\:
%ul
- target.errors.full_messages.each do |msg|
%li= msg

0 comments on commit c83d249

Please sign in to comment.