Set all pages inside section.main. Adding translations.

This commit is contained in:
codevictory
2021-05-09 21:29:47 +03:00
parent 1380331f20
commit 2ae2f601dd
8 changed files with 208 additions and 202 deletions

View File

@@ -1,6 +1,7 @@
<h1>HALLINTA</h1>
<section class="main">
<h1>HALLINTA - Näytökset</h1>
<table>
<table>
<thead>
<tr>
<th>Nimi</th>
@@ -23,6 +24,7 @@
</tr>
<% end %>
</tbody>
</table>
</table>
<span><%= link "Uusi näytös", to: Routes.admin_performance_path(@conn, :new) %></span>
<span><%= link "Uusi näytös", to: Routes.admin_performance_path(@conn, :new) %></span>
</section>

View File

@@ -1,6 +1,7 @@
<h1>Näytös</h1>
<section class="main">
<h1>Näytöksen tiedot</h1>
<ul>
<ul>
<li>
<strong>Nimi:</strong>
@@ -12,7 +13,8 @@
<%= @performance.desc %>
</li>
</ul>
</ul>
<span><%= link "Muokkaa", to: Routes.admin_performance_path(@conn, :edit, @performance) %></span>
<span><%= link "Takaisin", 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>
</section>

View File

@@ -1,6 +1,7 @@
<h1>HALLINTA</h1>
<section class="main">
<h1>HALLINTA - Esiintyjät</h1>
<table>
<table>
<thead>
<tr>
<th>Etunimi</th>
@@ -8,20 +9,16 @@
<th>Sähköposti</th>
<th>Puhelin numero</th>
<th>Vahvistettu</th>
<th>Seloste</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for performer <- @performers do %>
<%= for performer <- @performers do %>
<tr>
<td><%= performer.fname %></td>
<td><%= performer.lname %></td>
<td><%= performer.email %></td>
<td><%= performer.tel %></td>
<td><%= performer.confirmed %></td>
<td><%= performer.desc %></td>
<td>
<span><%= link "Lisätietoja", to: Routes.admin_performer_path(@conn, :show, performer) %></span>
@@ -29,8 +26,9 @@
<span><%= link "Poista", to: Routes.admin_performer_path(@conn, :delete, performer), method: :delete, data: [confirm: "Haluatko poistaa esiintyjän #{performer.fname} #{performer.lname}?"] %></span>
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
</table>
<span><%= link "Uusi esiintyjä", to: Routes.admin_performer_path(@conn, :new) %></span>
<span><%= link "Uusi esiintyjä", to: Routes.admin_performer_path(@conn, :new) %></span>
</section>

View File

@@ -1,6 +1,7 @@
<h1>Esiintyjän tiedot</h1>
<section class="main">
<h1>Esiintyjän tiedot</h1>
<ul>
<ul>
<li>
<strong>Etunimi:</strong>
@@ -57,7 +58,8 @@
<%= @performer.accom %>
</li>
</ul>
</ul>
<span><%= link "Muokkaa", to: Routes.admin_performer_path(@conn, :edit, @performer) %></span>
<span><%= link "Takaisin", to: Routes.performer_path(@conn, :index) %></span>
<span><%= link "Muokkaa", to: Routes.admin_performer_path(@conn, :edit, @performer) %></span>
<span><%= link "Takaisin", to: Routes.performer_path(@conn, :index) %></span>
</section>

View File

@@ -1,5 +1,5 @@
<h1>Edit Visitor</h1>
<h1>Muokkaa osallistujan tietoja</h1>
<%= render "form.html", Map.put(assigns, :action, Routes.admin_visitor_path(@conn, :update, @visitor)) %>
<span><%= link "Back", to: Routes.admin_visitor_path(@conn, :index) %></span>
<span><%= link "Takaisin", to: Routes.admin_visitor_path(@conn, :index) %></span>

View File

@@ -1,23 +1,24 @@
<h1>Listing Visitors</h1>
<section class="main">
<h1>Osallistujat</h1>
<table>
<table>
<thead>
<tr>
<th>Fname</th>
<th>Lname</th>
<th>Email</th>
<th>Tel</th>
<th>Date1</th>
<th>Date2</th>
<th>Date3</th>
<th>Bus</th>
<th>Accom</th>
<th>Etunimi</th>
<th>Sukunimi</th>
<th>Sähköposti</th>
<th>Puhelinnumero</th>
<th>Torstai</th>
<th>Perjantai</th>
<th>Lauantai</th>
<th>Bussi</th>
<th>Majoitus</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for visitor <- @visitors do %>
<%= for visitor <- @visitors do %>
<tr>
<td><%= visitor.fname %></td>
<td><%= visitor.lname %></td>
@@ -30,13 +31,12 @@
<td><%= visitor.accom %></td>
<td>
<span><%= link "Show", to: Routes.admin_visitor_path(@conn, :show, visitor) %></span>
<span><%= link "Edit", to: Routes.admin_visitor_path(@conn, :edit, visitor) %></span>
<span><%= link "Delete", to: Routes.admin_visitor_path(@conn, :delete, visitor), method: :delete, data: [confirm: "Are you sure?"] %></span>
<span><%= link "Lisätietoja", to: Routes.admin_visitor_path(@conn, :show, visitor) %></span>
<span><%= link "Muokkaa", to: Routes.admin_visitor_path(@conn, :edit, visitor) %></span>
<span><%= link "Poista", to: Routes.admin_visitor_path(@conn, :delete, visitor), method: :delete, data: [confirm: "Oletko varma?"] %></span>
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
<span><%= link "New Visitor", to: Routes.visitor_path(@conn, :new) %></span>
</table>
</section>

View File

@@ -1,5 +1,5 @@
<section class="main">
<h1 id="registration-start">Ilmoittaudu vierailijaksi</h1>
<h1 id="registration-start">Ilmoittaudu</h1>
<%= render "form.html", Map.put(assigns, :action, Routes.visitor_path(@conn, :create)) %>
</section>

View File

@@ -1,39 +1,40 @@
<h1>Show Visitor</h1>
<section class="main">
<h1>Osallistujan tiedot</h1>
<ul>
<ul>
<li>
<strong>Fname:</strong>
<strong>Etunimi:</strong>
<%= @visitor.fname %>
</li>
<li>
<strong>Lname:</strong>
<strong>Sukunimi:</strong>
<%= @visitor.lname %>
</li>
<li>
<strong>Email:</strong>
<strong>Sähköposti:</strong>
<%= @visitor.email %>
</li>
<li>
<strong>Tel:</strong>
<strong>Puhelinnumero:</strong>
<%= @visitor.tel %>
</li>
<li>
<strong>Date1:</strong>
<strong>Torstai 22.7.:</strong>
<%= @visitor.date1 %>
</li>
<li>
<strong>Date2:</strong>
<strong>Perjantai 23.7.:</strong>
<%= @visitor.date2 %>
</li>
<li>
<strong>Date3:</strong>
<strong>Lauantai 24.7.:</strong>
<%= @visitor.date3 %>
</li>
@@ -47,7 +48,8 @@
<%= @visitor.accom %>
</li>
</ul>
</ul>
<span><%= link "Edit", to: Routes.admin_visitor_path(@conn, :edit, @visitor) %></span>
<span><%= link "Back", to: Routes.admin_visitor_path(@conn, :index) %></span>
<span><%= link "Muokkaa", to: Routes.admin_visitor_path(@conn, :edit, @visitor) %></span>
<span><%= link "Takaisin", to: Routes.admin_visitor_path(@conn, :index) %></span>
</section>