mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Impor missing partials from spree to ofn and convert to haml
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
app/views/spree/admin/shared/_product_sub_menu.html.haml
Normal file
6
app/views/spree/admin/shared/_product_sub_menu.html.haml
Normal file
@@ -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
app/views/spree/shared/_error_messages.html.haml
Normal file
11
app/views/spree/shared/_error_messages.html.haml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user