The postdate datetime field was left blank on the "new" active creation page because orbit_form_helper.rb intentionally clears :new_record fields regardless of the model's :default value. Add inline JS (mirroring the pattern used in announcement-test) to fill act[postdate] with the current date/time only when the URL path ends in "new", so existing records are not overwritten on edit. |
||
|---|---|---|
| .. | ||
| _form.html.erb | ||
| _form_file.html.erb | ||
| _form_link.html.erb | ||
| _index.html.erb | ||
| act_signup.html.erb | ||
| edit.html.erb | ||
| edit_act_signup.html.erb | ||
| export.xlsx.axlsx | ||
| index.html.erb | ||
| new.html.erb | ||