File input to performer form.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<%= form_for @changeset, @action, fn form -> %>
|
<%= form_for @changeset, @action, [multipart: true], fn form -> %>
|
||||||
<%= if @changeset.action do %>
|
<%= if @changeset.action do %>
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<p>Jokin kentistä on tyhjä.</p>
|
<p>Jokin kentistä on tyhjä.</p>
|
||||||
@@ -17,6 +17,10 @@
|
|||||||
<%= textarea form, :seqnum %>
|
<%= textarea form, :seqnum %>
|
||||||
<%= error_tag form, :seqnum %>
|
<%= error_tag form, :seqnum %>
|
||||||
|
|
||||||
|
<%= label form, :photo_path, "Esiintyjän kuva" %>
|
||||||
|
<%= file_input form, :photo_path %>
|
||||||
|
<%= error_tag form, :photo_path %>
|
||||||
|
|
||||||
<div class="checkbox-container">
|
<div class="checkbox-container">
|
||||||
<%= checkbox form, :confirmed %>
|
<%= checkbox form, :confirmed %>
|
||||||
<%= label form, :confirmed, "Vahvistettu" %>
|
<%= label form, :confirmed, "Vahvistettu" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user