-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP add buttons for sending vacancy to moderation and to archive
- Loading branch information
1 parent
7d0c001
commit 8db28f9
Showing
11 changed files
with
57 additions
and
17 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.fs-5 = t('.help') | ||
.row.mt-3 | ||
.col-auto.d-flex.mb-3 | ||
.me-3 = link_to t('.archive'), archive_account_vacancy_path(vacancy), method: :patch, class: 'btn btn-success', disabled: vacancy.may_archive?, data: { confirm: 'Are you sure?' } | ||
.col-auto.mb-3 | ||
.me-3 = link_to t('.send_to_moderate'), send_to_moderate_account_vacancy_path(vacancy), method: :patch, class: 'btn btn-danger', data: { confirm: 'Are you sure?' }, disabled: vacancy.may_send_to_moderate? |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
.alert.alert-secondary | ||
= t('.vacancy_archived') | ||
|
||
= render 'form', vacancy: @vacancy, url: account_vacancy_path(@vacancy), show_archive_button: [email protected]? | ||
= render 'form', vacancy: @vacancy, url: account_vacancy_path(@vacancy) | ||
= render 'actions', vacancy: @vacancy, url: account_vacancy_path(@vacancy) |
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,4 +1,5 @@ | ||
- content_for :header do | ||
= t('.header') | ||
|
||
= render 'form', vacancy: @vacancy, url: account_vacancies_path, show_archive_button: false | ||
= render 'form', vacancy: @vacancy, url: account_vacancies_path | ||
= render 'actions', vacancy: @vacancy |
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