Sha256: 3c2496f8ee86070ac9d4231edd2dd9e9e23f2a7538fbd715f9cbeacaf57a3c8e
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
ruby: form ||= nil attribute ||= nil html_class ||= 'form-control' value ||= nil embedded_image_url ||= wcms_components_embedded_images_url # Set default value # We have to do it this way in case value is an empty string (as opposed to nil). value = value.presence || "---\n# YAML data goes here...\n" = wcms_component("shared/embedded_image_uploader", embedded_image_url: embedded_image_url) .ace_yaml_editor = wcms_component("forms/text_area", {form: form, attribute: attribute, html_class: html_class, value: value})
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
biola_wcms_components-0.1.0 | app/views/wcms_components/forms/_yaml_editor.html.slim |