-
Notifications
You must be signed in to change notification settings - Fork 105
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
refresh admin-panel #603
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c33496d
refresh admin-panel
usernaimandrey b08f3da
fix
usernaimandrey 481b607
add linck edit step to form
usernaimandrey 19468b1
fix button && confirm messages
usernaimandrey 21e73d8
fix
usernaimandrey f0c3558
add menu edit
usernaimandrey 04d4ce9
update button archive
usernaimandrey e3a8342
fix
usernaimandrey 7031843
add headers && hide show archived resume
usernaimandrey File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
.nested-fields.mb-3 | ||
.row | ||
.col-md-1 | ||
= link_to_remove_association f, class: 'btn btn-xs btn-warning' do | ||
= t('.remove_field') | ||
.col-md-7 | ||
= f.association :career_step, collection: @steps, hint: t('.step') | ||
.col-md-2 | ||
= f.input :order, hint: t('.order') | ||
.col-md-3 | ||
- 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 | ||
span.bi.bi-trash3-fill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
ul.nav.nav-tabs.mb-4 | ||
= menu_item t('.list'), admin_careers_path | ||
= menu_item t('.new'), new_admin_career_path | ||
- if career | ||
= menu_item career.name, edit_admin_career_path(career) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
- content_for :header do | ||
= t('career') | ||
|
||
= render 'menu' | ||
= render 'menu', career: nil | ||
|
||
table.table | ||
thead | ||
tr | ||
th = sort_link(@q, 'name') | ||
th = sort_link(@q, 'slug') | ||
th = sort_link(@q, 'created_at') | ||
th = t('.action') | ||
th = t('actions') | ||
tbody | ||
- @careers.each do |career| | ||
tr | ||
td = link_to career.name, admin_career_path(career), class: 'no decorete' | ||
td = career.slug | ||
td = l career.created_at, format: :long | ||
td = link_to t('.edit'), edit_admin_career_path(career), class: 'btn btn-primary btn-sm' | ||
td | ||
.btn-group[role='group' aria-label="#{t('action_buttons')}"] | ||
= link_to admin_career_path(career), class: 'btn btn-outline-primary btn-sm' do | ||
span.bi.bi-eye-fill | ||
= link_to edit_admin_career_path(career), class: 'btn btn-outline-primary btn-sm', title: t('.edit') do | ||
span.bi.bi-gear-fill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
- content_for :header do | ||
= t('.career_path') | ||
|
||
.row.mb-3 | ||
.col-sm-3 | ||
b = han('career', 'name') | ||
.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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. да хз, удалить наверное забыл |
||
= link_to edit_admin_career_path(@career), class: 'btn btn-primary mb-2' do | ||
span.bi.bi-gear.me-2 | ||
= t('.edit') | ||
|
||
.row.mb-3 | ||
.col-sm-3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
- content_for :header do | ||
= t('.admins') | ||
|
||
table.table | ||
thead | ||
tr | ||
th = sort_link(@q, 'name') | ||
th = sort_link(@q, 'state') | ||
th = sort_link(@q, 'email') | ||
th = sort_link(@q, 'created_at') | ||
th = t('actions') | ||
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 btn-sm' do | ||
span.bi.bi-eye-fill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
наверное вроде как по ярче смотрится