SumOfUs/Champaign

View on GitHub
app/views/share/facebooks/_share_fields.html.slim

Summary

Maintainability
Test Coverage
.form-group
  = form.label :title, t('share.facebook.form.title')
  = form.text_field :title, class: 'form-control', maxlength: 100

.form-group
  = form.label :description, t('share.facebook.form.description')
  = form.text_area :description, class: 'form-control', rows: 3, maxlength: 260

.form-group
  = form.label :image_id, t('share.facebook.form.image')
  = form.select :image_id, page.images.map{|im| [im.content_file_name, im.id] }, { include_blank: "No image" }, class: 'form-control shares-editor__image-selector'