5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 14:36:21 +00:00

sugerir un sku

This commit is contained in:
f 2021-02-22 18:22:21 -03:00
parent 7d9acab840
commit 2a395dcc48
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# frozen_string_literal: true
class MetadataSku < MetadataUuid
end

View file

@ -0,0 +1,3 @@
%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td{ dir: dir, lang: locale }= metadata.value

View 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