22 lines
701 B
Text
22 lines
701 B
Text
.overlay_form
|
|
h2 New Overlay
|
|
|
|
= form_with model: @overlay, url: overlays_path, local: true do |f|
|
|
- if @overlay.errors.any?
|
|
.alert.alert--error
|
|
h4 = pluralize(@overlay.errors.count, "error")
|
|
ul
|
|
- @overlay.errors.full_messages.each do |msg|
|
|
li = msg
|
|
|
|
.form-group
|
|
= f.label :name
|
|
= f.text_field :name, placeholder: "e.g., custom_addons"
|
|
|
|
.form-group
|
|
= f.label :slug, "Directory slug (optional, auto-derived from name)"
|
|
= f.text_field :slug, placeholder: "Leave blank to auto-generate"
|
|
|
|
.form-actions
|
|
= f.submit "Create Overlay", class: "btn btn--primary"
|
|
= link_to "Cancel", overlays_path, class: "btn"
|