localization for weeks views
This commit is contained in:
parent
6dab6cb5b5
commit
0dd15727f0
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- Basic Card Example -->
|
<!-- Basic Card Example -->
|
||||||
<div class="card shadow mb-4 border-primary">
|
<div class="card shadow mb-4 border-primary">
|
||||||
<div class="card-header text-white bg-primary">
|
<div class="card-header text-white bg-primary">
|
||||||
<h6>Edycja Tygodnia</h6>
|
<h6><%= t('week.edit') %></h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<%= render '/admin/weeks/partials/form', week: @week %>
|
<%= render '/admin/weeks/partials/form', week: @week %>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<%= form_with(model: [:admin, week]) do |form| %>
|
<%= form_with(model: [:admin, week]) do |form| %>
|
||||||
<% if week.errors.any? %>
|
<% if week.errors.any? %>
|
||||||
<%= error_messages(week) %>
|
<%= error_messages(week) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= form.hidden_field :course_id %>
|
<%= form.hidden_field :course_id %>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- Basic Card Example -->
|
<!-- Basic Card Example -->
|
||||||
<div class="card shadow mb-4">
|
<div class="card shadow mb-4">
|
||||||
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
|
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
|
||||||
<h6 class="m-0 font-weight-bold text-primary">Lista tygodni</h6>
|
<h6 class="m-0 font-weight-bold text-primary"><%= t('week.list') %></h6>
|
||||||
<%= link_to raw('<i class="fa fa-plus"></i> Dodaj Nowy Tydzien'), new_admin_week_path(course_id: @course.id), { remote: true, class: 'btn btn-sm btn-primary float-right' } %>
|
<%= link_to raw('<i class="fa fa-plus"></i> Dodaj Nowy Tydzien'), new_admin_week_path(course_id: @course.id), { remote: true, class: 'btn btn-sm btn-primary float-right' } %>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- Basic Card Example -->
|
<!-- Basic Card Example -->
|
||||||
<div class="card shadow mb-4 border-primary">
|
<div class="card shadow mb-4 border-primary">
|
||||||
<div class="card-header text-white bg-primary">
|
<div class="card-header text-white bg-primary">
|
||||||
<h6>Nowy Tydzien</h6>
|
<h6><%= t('week.new') %></h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<%= render '/admin/weeks/partials/form', week: @week %>
|
<%= render '/admin/weeks/partials/form', week: @week %>
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nazwa</th>
|
<th><%= t('week.table.name') %></th>
|
||||||
<th>Opis</th>
|
<th><%= t('week.table.description') %></th>
|
||||||
<th class="fit">Akcje</th>
|
<th class="fit"><%= t('actions') %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue