-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1099a08
commit d40d13c
Showing
3 changed files
with
20 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
= form_with model: [:admin, @artist], local: true do |form| | ||
- if @artist.errors.any? | ||
.alert.alert-danger | ||
h2 = "#{pluralize(@artist.errors.count, "error")} prohibited this artist from being saved:" | ||
ul | ||
- @artist.errors.each do |error| | ||
li = error.full_message | ||
|
||
.mb-3 | ||
= form.label :name, class: 'form-label' | ||
= form.text_field :name, class: 'form-control' | ||
|
||
.mb-3 | ||
= form.label :biography, class: 'form-label' | ||
= form.text_area :biography, class: 'form-control', rows: 20 | ||
|
||
div | ||
= form.submit class: 'btn btn-primary' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters