Files
cmtool/app/views/cmtool/quotes/_form.html.slim
T
bterkuile 4013070e4f feat: migrate from Foundation to Fomantic-UI
Swap foundation-rails for fomantic-ui-sass across the gem's own
layout/menu/alerts partials and all 11 generic scaffold resources
(pages, news, faqs, quotes, images, directories, keywords, yml_files,
contact_forms, newsletter_subscriptions, users). Foundation grid/button
classes replaced with Fomantic ui.form/ui.button/ui.table conventions;
legacy Foundation mixins in the custom component sass (panel, button,
grid-row/grid-column) rewritten as plain CSS since they no longer exist
once foundation_and_overrides.scss is gone.

Also fixes a real bug found along the way: boolean_text used
`.present?` on values, but SimplyCouch stores booleans as the strings
"0"/"1" — and "0".present? is true in Ruby, so it always rendered
"Yes" regardless of actual value. Now uses ActiveModel::Type::Boolean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-07 23:36:35 -05:00

23 lines
604 B
Plaintext

= form_for [cmtool, @quote], html: {multipart: true, class: 'ui form'} do |f|
= render 'error_messages', target: @quote
.field
= f.label :owner
= f.text_field :owner
.field
= f.label :function
= f.text_field :function
.field
= f.label :state
= f.select :state, Cmtool::Quote.states
.field
= f.label :image
= f.file_field :image
.field
= f.label :body
= f.text_area :body, rows: 8, class: 'editor_basic'
.field
= f.label :active
= f.check_box :active
.actions
= f.submit @submit || update_button_text(@quote), class: 'ui primary button'