-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Prozak8/cleanup
Delete button for hospitals, staffco's and styling
- Loading branch information
Showing
14 changed files
with
100 additions
and
18 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
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
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,10 +1,10 @@ | ||
.list-card | ||
.form-header Staffing Companies | ||
.list-item.flex | ||
- @staffcos.each do |staffcos| | ||
- @staffcos.each do |staffco| | ||
.list-grid | ||
.list-name= staffcos.name | ||
.list-name= staffco.name | ||
.list-button-area | ||
%button.button Remove | ||
= link_to "Remove", staffco_path(staffco, locale: I18n.locale), method: :delete, data: {confirm: 'Are you sure?'}, remote: true, class: "button" | ||
.list-button-area | ||
= link_to "Add new company", new_staffco_path, class: "add-button", remote: true |
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,24 @@ | ||
@javascript | ||
Feature: Rsc can delete a hospital | ||
As an RSC, | ||
In order to manage the hospitals list, | ||
I would like to be able to delete hospitals. | ||
|
||
Background: On the landing page and can see list of hospitals | ||
Given the following hospitals exists | ||
| name | region | | ||
| karolinska | stockholm | | ||
|
||
And the following registered RSC exist | ||
| email | password | region | | ||
| zak@email.com | password0 | stockholm | | ||
|
||
And I am logged in as "zak@email.com" | ||
And I am on the landing page | ||
And I click on "Hospitals" | ||
|
||
Scenario: Rsc deletes a job | ||
Then I click on "Remove" | ||
And I confirm popup | ||
Then I should see "Hospital was successfully removed." | ||
And I should not see "karolinska" |
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,24 @@ | ||
@javascript | ||
Feature: Rsc can delete a staffing company | ||
As an RSC, | ||
In order to manage the staffing company list, | ||
I would like to be able to delete staffing companies. | ||
|
||
Background: On the landing page and can see list of staffing companies | ||
Given the following staffing companies exists | ||
| name | email | region | | ||
| Trib AB | company1@me.com | stockholm | | ||
|
||
And the following registered RSC exist | ||
| email | password | region | | ||
| zak@email.com | password0 | stockholm | | ||
|
||
And I am logged in as "zak@email.com" | ||
And I am on the landing page | ||
And I click on "Staffing Companies" within the "#sidebar" section | ||
|
||
Scenario: Rsc deletes a staffing company | ||
Then I click on "Remove" | ||
And I confirm popup | ||
Then I should see "Staffing Company was successfully removed." | ||
And I should not see "Trib AB" |