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,36 +1,34 @@
<h1>HALLINTA</h1>
<section class="main">
<h1>HALLINTA - Esiintyjät</h1>
<table>
<thead>
<tr>
<th>Etunimi</th>
<th>Sukunimi</th>
<th>Sähköposti</th>
<th>Puhelin numero</th>
<th>Vahvistettu</th>
<th>Seloste</th>
<table>
<thead>
<tr>
<th>Etunimi</th>
<th>Sukunimi</th>
<th>Sähköposti</th>
<th>Puhelin numero</th>
<th>Vahvistettu</th>
</tr>
</thead>
<tbody>
<%= 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>
<th></th>
</tr>
</thead>
<tbody>
<%= 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>
<span><%= link "Muokkaa", to: Routes.admin_performer_path(@conn, :edit, performer) %></span>
<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 %>
</tbody>
</table>
<td>
<span><%= link "Lisätietoja", to: Routes.admin_performer_path(@conn, :show, performer) %></span>
<span><%= link "Muokkaa", to: Routes.admin_performer_path(@conn, :edit, performer) %></span>
<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 %>
</tbody>
</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,63 +1,65 @@
<h1>Esiintyjän tiedot</h1>
<section class="main">
<h1>Esiintyjän tiedot</h1>
<ul>
<ul>
<li>
<strong>Etunimi:</strong>
<%= @performer.fname %>
</li>
<li>
<strong>Etunimi:</strong>
<%= @performer.fname %>
</li>
<li>
<strong>Sukunimi:</strong>
<%= @performer.lname %>
</li>
<li>
<strong>Sukunimi:</strong>
<%= @performer.lname %>
</li>
<li>
<strong>Sähköposti:</strong>
<%= @performer.email %>
</li>
<li>
<strong>Sähköposti:</strong>
<%= @performer.email %>
</li>
<li>
<strong>Puhelin numero:</strong>
<%= @performer.tel %>
</li>
<li>
<strong>Puhelin numero:</strong>
<%= @performer.tel %>
</li>
<li>
<strong>Vahvistettu:</strong>
<%= @performer.confirmed %>
</li>
<li>
<strong>Vahvistettu:</strong>
<%= @performer.confirmed %>
</li>
<li>
<strong>Seloste:</strong>
<%= @performer.desc %>
</li>
<li>
<strong>Seloste:</strong>
<%= @performer.desc %>
</li>
<li>
<strong>Torstai:</strong>
<%= @performer.date1 %>
</li>
<li>
<strong>Torstai:</strong>
<%= @performer.date1 %>
</li>
<li>
<strong>Perjantai:</strong>
<%= @performer.date2 %>
</li>
<li>
<strong>Perjantai:</strong>
<%= @performer.date2 %>
</li>
<li>
<strong>Lauantai:</strong>
<%= @performer.date3 %>
</li>
<li>
<strong>Lauantai:</strong>
<%= @performer.date3 %>
</li>
<li>
<strong>Bussikuljetus:</strong>
<%= @performer.bus %>
</li>
<li>
<strong>Bussikuljetus:</strong>
<%= @performer.bus %>
</li>
<li>
<strong>Majoilus:</strong>
<%= @performer.accom %>
</li>
<li>
<strong>Majoilus:</strong>
<%= @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>