mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 15:16:21 +00:00
sugerir un sku
This commit is contained in:
parent
7d9acab840
commit
2a395dcc48
3 changed files with 14 additions and 0 deletions
4
app/models/metadata_sku.rb
Normal file
4
app/models/metadata_sku.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class MetadataSku < MetadataUuid
|
||||
end
|
3
app/views/posts/attribute_ro/_sku.haml
Normal file
3
app/views/posts/attribute_ro/_sku.haml
Normal file
|
@ -0,0 +1,3 @@
|
|||
%tr{ id: attribute }
|
||||
%th= post_label_t(attribute, post: post)
|
||||
%td{ dir: dir, lang: locale }= metadata.value
|
7
app/views/posts/attributes/_sku.haml
Normal file
7
app/views/posts/attributes/_sku.haml
Normal file
|
@ -0,0 +1,7 @@
|
|||
.form-group
|
||||
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
||||
= text_field base, attribute, value: metadata.value,
|
||||
dir: dir, lang: locale,
|
||||
**field_options(attribute, metadata)
|
||||
= render 'posts/attribute_feedback',
|
||||
post: post, attribute: attribute, metadata: metadata
|
Loading…
Reference in a new issue