Translations.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<h1>Ohjelma - HALLINTA</h1>
|
||||
<h1>HALLINTA</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
@@ -10,19 +10,19 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for performance <- @performances do %>
|
||||
<%= for performance <- @performances do %>
|
||||
<tr>
|
||||
<td><%= performance.name %></td>
|
||||
<td><%= performance.desc %></td>
|
||||
|
||||
<td>
|
||||
<span><%= link "Show", to: Routes.performance_path(@conn, :show, performance) %></span>
|
||||
<span><%= link "Edit", to: Routes.admin_performance_path(@conn, :edit, performance) %></span>
|
||||
<span><%= link "Delete", to: Routes.admin_performance_path(@conn, :delete, performance), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
<span><%= link "Lisätietoja", to: Routes.performance_path(@conn, :show, performance) %></span>
|
||||
<span><%= link "Muokkaa", to: Routes.admin_performance_path(@conn, :edit, performance) %></span>
|
||||
<span><%= link "Poista", to: Routes.admin_performance_path(@conn, :delete, performance), method: :delete, data: [confirm: "Haluatko poistaa näytöksen #{performance.name}?"] %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Performance", to: Routes.admin_performance_path(@conn, :new) %></span>
|
||||
<span><%= link "Uusi näytös", to: Routes.admin_performance_path(@conn, :new) %></span>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h1>Edit Performance</h1>
|
||||
<h1>Muokkaa näytöksen tietoja</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :update, @performance)) %>
|
||||
|
||||
<span><%= link "Back", to: Routes.performance_path(@conn, :index) %></span>
|
||||
<span><%= link "Takaisin", to: Routes.performance_path(@conn, :index) %></span>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<%= 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>
|
||||
<p>Jokin kentistä on tyhjä.</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= label f, :name %>
|
||||
<%= label f, :name, "Nimi" %>
|
||||
<%= text_input f, :name %>
|
||||
<%= error_tag f, :name %>
|
||||
|
||||
<%= label f, :desc %>
|
||||
<%= text_input f, :desc %>
|
||||
<%= label f, :desc, "Seloste" %>
|
||||
<%= textarea f, :desc %>
|
||||
<%= error_tag f, :desc %>
|
||||
|
||||
<div>
|
||||
<%= submit "Save" %>
|
||||
<%= submit "Tallenna" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
<h1>Listing Performances</h1>
|
||||
<h1>Ohjelma</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Time</th>
|
||||
<th>Description</th>
|
||||
|
||||
<th></th>
|
||||
<th>Nimi</th>
|
||||
<th>Seloste</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h1>New Performance</h1>
|
||||
<h1>Luo näytös</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: Routes.performance_path(@conn, :index) %></span>
|
||||
<span><%= link "Takaisin", to: Routes.performance_path(@conn, :index) %></span>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<h1>Show Performance</h1>
|
||||
<h1>Näytös</h1>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Time:</strong>
|
||||
<strong>Nimi:</strong>
|
||||
<%= @performance.name %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Description:</strong>
|
||||
<strong>Seloste:</strong>
|
||||
<%= @performance.desc %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: Routes.admin_performance_path(@conn, :edit, @performance) %></span>
|
||||
<span><%= link "Back", to: Routes.performance_path(@conn, :index) %></span>
|
||||
<span><%= link "Muokkaa", to: Routes.admin_performance_path(@conn, :edit, @performance) %></span>
|
||||
<span><%= link "Takaisin", to: Routes.performance_path(@conn, :index) %></span>
|
||||
|
||||
Reference in New Issue
Block a user