AUTOGEN: Performances.
This commit is contained in:
5
lib/runosaari_web/templates/performance/edit.html.eex
Normal file
5
lib/runosaari_web/templates/performance/edit.html.eex
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Edit Performance</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.performance_path(@conn, :update, @performance)) %>
|
||||
|
||||
<span><%= link "Back", to: Routes.performance_path(@conn, :index) %></span>
|
||||
23
lib/runosaari_web/templates/performance/form.html.eex
Normal file
23
lib/runosaari_web/templates/performance/form.html.eex
Normal file
@@ -0,0 +1,23 @@
|
||||
<%= form_for @changeset, @action, fn f -> %>
|
||||
<%= if @changeset.action do %>
|
||||
<div class="alert alert-danger">
|
||||
<p>Oops, something went wrong! Please check the errors below.</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= label f, :time %>
|
||||
<%= datetime_select f, :time %>
|
||||
<%= error_tag f, :time %>
|
||||
|
||||
<%= label f, :description %>
|
||||
<%= text_input f, :description %>
|
||||
<%= error_tag f, :description %>
|
||||
|
||||
<%= label f, :notes %>
|
||||
<%= text_input f, :notes %>
|
||||
<%= error_tag f, :notes %>
|
||||
|
||||
<div>
|
||||
<%= submit "Save" %>
|
||||
</div>
|
||||
<% end %>
|
||||
30
lib/runosaari_web/templates/performance/index.html.eex
Normal file
30
lib/runosaari_web/templates/performance/index.html.eex
Normal file
@@ -0,0 +1,30 @@
|
||||
<h1>Listing Performances</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Time</th>
|
||||
<th>Description</th>
|
||||
<th>Notes</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for performance <- @performances do %>
|
||||
<tr>
|
||||
<td><%= performance.time %></td>
|
||||
<td><%= performance.description %></td>
|
||||
<td><%= performance.notes %></td>
|
||||
|
||||
<td>
|
||||
<span><%= link "Show", to: Routes.performance_path(@conn, :show, performance) %></span>
|
||||
<span><%= link "Edit", to: Routes.performance_path(@conn, :edit, performance) %></span>
|
||||
<span><%= link "Delete", to: Routes.performance_path(@conn, :delete, performance), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Performance", to: Routes.performance_path(@conn, :new) %></span>
|
||||
5
lib/runosaari_web/templates/performance/new.html.eex
Normal file
5
lib/runosaari_web/templates/performance/new.html.eex
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Performance</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.performance_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: Routes.performance_path(@conn, :index) %></span>
|
||||
23
lib/runosaari_web/templates/performance/show.html.eex
Normal file
23
lib/runosaari_web/templates/performance/show.html.eex
Normal file
@@ -0,0 +1,23 @@
|
||||
<h1>Show Performance</h1>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Time:</strong>
|
||||
<%= @performance.time %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Description:</strong>
|
||||
<%= @performance.description %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Notes:</strong>
|
||||
<%= @performance.notes %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: Routes.performance_path(@conn, :edit, @performance) %></span>
|
||||
<span><%= link "Back", to: Routes.performance_path(@conn, :index) %></span>
|
||||
Reference in New Issue
Block a user