l4d.tools/app/views/server_templates/_form.html.slim
2026-01-18 17:54:57 +01:00

18 lines
562 B
Text

.server_template_form
h2 = @server_template.persisted? ? "Edit Template" : "New Template"
= form_with model: @server_template, local: true do |f|
- if @server_template.errors.any?
.alert.alert--error
h4 = pluralize(@server_template.errors.count, "error")
ul
- @server_template.errors.full_messages.each do |msg|
li = msg
.form-group
= f.label :name
= f.text_field :name
.form-actions
= f.submit class: "btn btn--primary"
= link_to "Back", server_templates_path, class: "btn"