Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
usernaimandrey committed Jul 3, 2023
1 parent 594e721 commit 1aa1fc3
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 11 deletions.
3 changes: 2 additions & 1 deletion app/views/web/admin/career_steps/_careers.html.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
h4 = t('.attached')
.h4
= t('.attached')

- if careers.any?
table.table id='attached'
Expand Down
4 changes: 2 additions & 2 deletions app/views/web/admin/career_steps/_menu.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ul.nav.nav-tabs.mb-4
= menu_item t('.list'), admin_career_steps_path
= menu_item t('.new'), new_admin_career_step_path
- if step
= menu_item step.name, edit_admin_career_step_path(step)
- if @step&.persisted?
= menu_item @step.name, edit_admin_career_step_path(@step)
4 changes: 2 additions & 2 deletions app/views/web/admin/career_steps/edit.html.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- content_for :header do
= @step.name
= t('.step', name: @step.name)

= render 'menu', step: @step
= render 'menu'

- if @careers.any?
.mb-2
Expand Down
2 changes: 1 addition & 1 deletion app/views/web/admin/career_steps/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- content_for :header do
= t('career_steps')

= render 'menu', step: nil
= render 'menu'

table.table
thead
Expand Down
2 changes: 1 addition & 1 deletion app/views/web/admin/career_steps/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- content_for :header do
= t('.new_step')

= render 'menu', step: nil
= render 'menu'

= render 'form', step: @step, url: admin_career_steps_path
6 changes: 4 additions & 2 deletions app/views/web/admin/career_steps/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
.row.my-1
.col-lg-12
.my-1
h3 = @step.name
.h3
= @step.name
.bg-light.rounded.py-2.px-3
== markdown2html(@step.description)
.my-1
h4 = t('.tasks')
.h4
= t('.tasks')
.bg-light.rounded.py-2.px-3
== markdown2html(@step.tasks_text)

Expand Down
2 changes: 0 additions & 2 deletions app/views/web/admin/careers/_steps.html.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
h3.my-4.me-3 = t('.steps_career')

/ = link_to t('.add_new_step'), new_admin_career_step_path(career), class: 'btn btn-primary'
table.table
thead
tr
Expand Down
2 changes: 2 additions & 0 deletions config/locales/admin/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ en:
index:
admins: Administrators
career_steps:
edit:
step: 'Step: %{name}'
index:
edit: Edit
show: Show
Expand Down
1 change: 1 addition & 0 deletions config/locales/admin/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ru:
admins: Администраторы
career_steps:
edit:
step: 'Шаг: %{name}'
attached_careers: 'Связанные карьерные треки:'
form:
cancel: Отменить
Expand Down

0 comments on commit 1aa1fc3

Please sign in to comment.