Skip to content
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

Merged
merged 9 commits into from Jul 4, 2023
Merged

refresh admin-panel #603

merged 9 commits into from Jul 4, 2023

Conversation

usernaimandrey
Copy link
Contributor

@usernaimandrey usernaimandrey commented Jun 14, 2023

Немного обновил админку
Снимок экрана от 2023-06-15 10-29-47
Снимок экрана от 2023-06-15 10-29-38
image

@usernaimandrey usernaimandrey marked this pull request as draft June 14, 2023 16:48
@usernaimandrey usernaimandrey changed the title refresh admin-panel [CV-1-2314]refresh admin-panel Jun 15, 2023
@usernaimandrey usernaimandrey changed the title [CV-1-2314]refresh admin-panel [TL-2314]refresh admin-panel Jun 15, 2023
@usernaimandrey usernaimandrey marked this pull request as ready for review June 15, 2023 08:01
@usernaimandrey usernaimandrey changed the title [TL-2314]refresh admin-panel [TL-2314][TL-2808]refresh admin-panel Jun 15, 2023
@@ -1,4 +1,4 @@
footer.bg-light.border-top.mt-5.py-5
footer.bg-body-tertiary.border-top.py-4.mt-auto
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

прижал футтер

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

херня жеж когда все в одном ПРе
разделяй давай :batya:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

разделил

@amshkv amshkv changed the title [TL-2314][TL-2808]refresh admin-panel [TL-2314][TL-2808][TL-105]refresh admin-panel Jun 15, 2023
@amshkv amshkv changed the title [TL-2314][TL-2808][TL-105]refresh admin-panel [TL-2314][TL-2808]refresh admin-panel Jun 15, 2023
@Hexlet Hexlet deleted a comment from notion-workspace bot Jun 15, 2023
@Hexlet Hexlet deleted a comment from notion-workspace bot Jun 15, 2023
@usernaimandrey usernaimandrey changed the title [TL-2314][TL-2808]refresh admin-panel refresh admin-panel Jun 15, 2023
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
Copy link
Contributor

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
но это вкусовщина

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
image
попробовал через групу кнопок

= 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

какая-то несогласованность, нигде этого нет, а тут есть

Comment on lines 35 to 40
- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

опасные кнопки, а цвета у них одинаковые
дестрой - сделай красной
опубликование - зеленой

и я бы confirm cделал попонятнее, типа согласны архивировать\заархивировать

Comment on lines 35 to 40
- 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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай тоже маленькими

Copy link
Contributor

@amshkv amshkv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

требуется немного попраивить иконки и их цвет и можно будет принимать

Comment on lines 3 to 13
.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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше наверное красным? но хз

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

наверное вроде как по ярче смотрится
image

.col-sm-9
= @career.name
= t('.career_track', name: @career.name)
.coll
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это что за класс такой?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да хз, удалить наверное забыл

Comment on lines 1 to 3
- content_for :header do
= t('.admins')

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в итоге без заголовков сделали и без меню?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А меню зачем, там единственное что можно сделать это профиль посмотреть

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чтобы одинаково было)

@amshkv
Copy link
Contributor

amshkv commented Jul 3, 2023

Андрей, верни заголовки блокам!)

@amshkv
Copy link
Contributor

amshkv commented Jul 3, 2023

image

@amshkv
Copy link
Contributor

amshkv commented Jul 3, 2023

image падает в ошибку show архивного резюме и черновика

@usernaimandrey
Copy link
Contributor Author

usernaimandrey commented Jul 3, 2023

image падает в ошибку show архивного резюме и черновика

я как временное решение поставмл условие, но думаю админу надо сделать возможным просматривать архивные и драфтовые резюме, но это в др ПР-е

@usernaimandrey usernaimandrey merged commit b35d9cc into main Jul 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants