Translations.

This commit is contained in:
codevictory
2021-04-25 00:55:26 +03:00
parent f8858deefb
commit b987f2c49e
11 changed files with 44 additions and 43 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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 %>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>