Sha256: 15b5faa2227bed356f10f0af51c24c244535e8f7912043ade931b5c632a05362
Contents?: true
Size: 1.08 KB
Versions: 8
Compression:
Stored size: 1.08 KB
Contents
= effective_form_with(model: [:admin, cpd_cycle], engine: true) do |f| = f.text_field :title, hint: "The title of this #{cpd_cycle_label}. Something like #{Time.zone.now.year} #{cpd_name_label}" = f.date_field :start_at, hint: "The first date a #{cpd_statement_label} may be submited for this #{cpd_cycle_label}" = f.date_field :end_at, date_linked: false, hint: "The last date a #{cpd_statement_label} may be created for this #{cpd_cycle_label}. leave blank for no end date." = f.number_field :required_score, hint: "The minimum required #{cpd_credits_label} to submit a #{cpd_statement_label} for this #{cpd_cycle_label}. leave blank to submit any amount." - if f.object.new_record? - latest_cycle = Effective::CpdCycle.latest_cycle - if latest_cycle.present? = f.static_field :continue_from, value: latest_cycle, hint: "The next #{cpd_cycle_label} will be carried forward from last one. Please make sure this #{cpd_cycle_label} is the most recent one." = f.submit("Save and Create Next #{cpd_cycle_label}") - if f.object.persisted? = f.submit
Version data entries
8 entries across 8 versions & 1 rubygems