Fix performer form for archive
This commit is contained in:
@@ -43,9 +43,9 @@
|
||||
<%= error_tag form, :confirmed %>
|
||||
</div>
|
||||
|
||||
<%= label form, :seqnum, "Arkistoitu (vuosi). Jätä tyhjäksi jos tulee näkyä Esiintyjät-sivulla." %>
|
||||
<%= number_input form, :seqnum %>
|
||||
<%= error_tag form, :seqnum %>
|
||||
<%= label form, :archived, "Arkistoitu (vuosi). Jätä tyhjäksi, jos tulee näkyä Esiintyjät-sivulla." %>
|
||||
<%= number_input form, :archived %>
|
||||
<%= error_tag form, :archived %>
|
||||
|
||||
<div class="submit-button">
|
||||
<%= submit "Tallenna" %>
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
<%= if @performer.link != nil do %>
|
||||
<a href="https://<%= @performer.link %>" class="performer-link"><%= @performer.link %></a>
|
||||
<% end %>
|
||||
<%= if @performer.archived != nil do %>
|
||||
<p class="performer-paragraph"><%= @performer.archived %></p>
|
||||
<% end %>
|
||||
<img src="<%= @performer.photo_path %>" alt="Esiintyjän kuva" class="performer-img" />
|
||||
<span class="link-back"><%= link "Takaisin esiintyjälistalle", to: Routes.performer_path(@conn, :index) %></span>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user