diff --git a/app/models/metadata_sku.rb b/app/models/metadata_sku.rb new file mode 100644 index 00000000..129cfada --- /dev/null +++ b/app/models/metadata_sku.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class MetadataSku < MetadataUuid +end diff --git a/app/views/posts/attribute_ro/_sku.haml b/app/views/posts/attribute_ro/_sku.haml new file mode 100644 index 00000000..67642e2c --- /dev/null +++ b/app/views/posts/attribute_ro/_sku.haml @@ -0,0 +1,3 @@ +%tr{ id: attribute } + %th= post_label_t(attribute, post: post) + %td{ dir: dir, lang: locale }= metadata.value diff --git a/app/views/posts/attributes/_sku.haml b/app/views/posts/attributes/_sku.haml new file mode 100644 index 00000000..aa033643 --- /dev/null +++ b/app/views/posts/attributes/_sku.haml @@ -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