New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refresh admin-panel #603
refresh admin-panel #603
Conversation
4f6e4a7
to
bdbf0ef
Compare
@@ -1,4 +1,4 @@ | |||
footer.bg-light.border-top.mt-5.py-5 | |||
footer.bg-body-tertiary.border-top.py-4.mt-auto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
прижал футтер
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
херня жеж когда все в одном ПРе
разделяй давай :batya:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
разделил
ba23bed
to
481b607
Compare
td | ||
= link_to admin_career_step_path(career, step), class: 'btn btn-outline-primary btn-sm me-1' do | ||
span.bi.bi-eye-fill | ||
= link_to edit_admin_career_step_path(career, step), class: 'btn btn-outline-primary btn-sm me-1', title: t('.edit') do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут me-1 зачем?
по красоте можно попробовать сделать через https://getbootstrap.com/docs/5.3/components/button-group
но это вкусовщина
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
= link_to t('.restore'), restore_admin_resume_path(resume), method: :patch, class: 'btn btn-success btn-sm' | ||
- elsif resume.may_archive? | ||
= link_to t('.archive'), archive_admin_resume_path(resume), method: :patch, class: 'btn btn-danger btn-sm' | ||
.text-center |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
какая-то несогласованность, нигде этого нет, а тут есть
- if resume.may_restore? | ||
= link_to restore_admin_resume_path(resume), method: :patch, class: 'btn btn-outline-primary btn-sm', data: { confirm: t('confirm') }, title: t('.restore') do | ||
span.bi.bi-activity | ||
- elsif resume.may_archive? | ||
= link_to archive_admin_resume_path(resume), method: :patch, class: 'btn btn-outline-primary btn-sm', data: { confirm: t('confirm') }, title: t('.archive') do | ||
span.bi.bi-file-earmark-zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
опасные кнопки, а цвета у них одинаковые
дестрой - сделай красной
опубликование - зеленой
и я бы confirm cделал попонятнее, типа согласны архивировать\заархивировать
- if resume.may_restore? | ||
= link_to restore_admin_resume_path(resume), method: :patch, class: 'btn btn-outline-primary btn-sm', data: { confirm: t('confirm') }, title: t('.restore') do | ||
span.bi.bi-activity | ||
- elsif resume.may_archive? | ||
= link_to archive_admin_resume_path(resume), method: :patch, class: 'btn btn-outline-primary btn-sm', data: { confirm: t('confirm') }, title: t('.archive') do | ||
span.bi.bi-file-earmark-zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
иконка непонятная, давай поищем получше, для удаления можно корзину взять
для восстановления что-то типа значка разоврота
ну и спросил бы девченок, понято ли им
tbody | ||
- @admins.each do |admin| | ||
tr | ||
td = link_to admin, user_path(admin) | ||
td = admin.aasm(:state).human_state | ||
td = admin.email | ||
td = l admin.created_at, format: :short | ||
td | ||
= link_to user_path(admin), class: 'btn btn-outline-primary' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай тоже маленькими
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
требуется немного попраивить иконки и их цвет и можно будет принимать
.col-md-7 | ||
= f.association :career_step, collection: @steps, hint: t('.step') | ||
.col-md-2 | ||
= f.input :order, hint: t('.order') | ||
.col-sm-1 | ||
= link_to_remove_association f, class: 'btn btn-xs btn-warning', title: t('.remove_field') do | ||
span.bi.bi-trash3-fill | ||
- if f.object.career_step | ||
.col-sm-1 | ||
= link_to edit_admin_career_step_path(@career, f.object.career_step), class: 'btn btn-outline-primary me-1', title: t('.edit') do | ||
span.bi.bi-gear-fill |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
если посчитать - стало 11 колонок, а не 12
предлагаю сделать
col-md-7 (или 8)
col-md-2
col-md-3 и в этот md 3 (или 2) положить обе кнопки
- if f.object.career_step | ||
= link_to edit_admin_career_step_path(@career, f.object.career_step), class: 'btn btn-outline-primary me-1', title: t('.edit') do | ||
span.bi.bi-gear-fill | ||
= link_to_remove_association f, class: 'btn btn-xs btn-warning', title: t('.remove_field') do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лучше наверное красным? но хз
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.col-sm-9 | ||
= @career.name | ||
= t('.career_track', name: @career.name) | ||
.coll |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это что за класс такой?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да хз, удалить наверное забыл
- content_for :header do | ||
= t('.admins') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в итоге без заголовков сделали и без меню?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А меню зачем, там единственное что можно сделать это профиль посмотреть
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
чтобы одинаково было)
Андрей, верни заголовки блокам!) |
Немного обновил админку