Skip to content

Commit 69c4891

Browse files
authored
Merge pull request #4991 from Oce-ane/issue_4979_donation_site
issue #4979: Donation site screen improvement
2 parents 53def81 + 67d53ba commit 69c4891

14 files changed

+11
-94
lines changed

app/controllers/donation_sites_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def create
2626
render action: :new
2727
end
2828
end
29-
format.js { render partial: "shared/table_row_prepend", object: @donation_site }
3029
end
3130
end
3231

app/views/donation_sites/index.html.erb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,6 @@
3333
<h3 class="card-title">Donation Sites</h3>
3434
</div>
3535
<!-- /.card-header -->
36-
<!-- form start -->
37-
<div class="card-body">
38-
<table class="table">
39-
<thead>
40-
<tr>
41-
<th>Donation Site</th>
42-
<th>Address</th>
43-
<th>Contact Name</th>
44-
<th>E-mail</th>
45-
<th>Phone</th>
46-
<th>&nbsp;</th>
47-
</tr>
48-
<%= render partial: 'shared/table_row_form',
49-
object: @donation_site,
50-
locals: {columns: [{name: :text_field}, {address: :text_field}, {contact_name: :text_field}, {email: :text_field}, {phone: :text_field}]} %>
51-
</thead>
52-
</table>
53-
</div>
5436
<div class="card-footer">
5537
<div class="pull-right">
5638
<%= modal_button_to("#csvImportModal", {icon: "upload", text: "Import Donation Sites", size: "md"}) if @donation_sites.empty? %>

app/views/shared/_table_row_form.html.erb

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/views/shared/_table_row_prepend.js.erb

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/user_guide/bank/community_donation_sites.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
READY FOR REVIEW
22
# Donation Sites
33

4-
Donation Sites are places where people drop off Donations.
4+
Donation Sites are places where people drop off Donations.
55

66
## The Donation Site list
7-
You can manage the sites' information on the "Donation Sites" page under the "Community" section.
7+
You can manage the sites' information on the "Donation Sites" page under the "Community" section.
88

9-
![Donation Sites](images/community/donation_sites/donation_sites.jpg)
9+
![Donation Sites](images/community/donation_sites/donation_sites.png)
1010

1111
Previously recorded information about Donation Sites appears on this page including the name of the Donation Site name, address, contact name, e-mail and phone number.
1212

1313
### Adding a Donation Site
1414

15-
Create a new site by populating the Donation Site, address, contact name, e-mail and phone fields and clicking the "Create" button.
15+
Create a new site by clicking the "+ New Donation Site" button.
1616

17-
![Create Donation_Site](images/community/donation_sites/create_donation_site.jpg)
17+
![Create Donation Site](images/community/donation_sites/create_donation_site.png)
1818

19-
Note that the Donation Site and address fields are mandatory while the contact name, email and phone are optional.
20-
21-
You can also use the "+ New Donation Site" button which renders a form for you to fill in details of a new Donation Site.
19+
This renders a form for you to fill the site's name, address, contact name, e-mail, and phone number. After entering the required details, click the "Save" button to create the new Donation Site.
2220

21+
![Add Donation Site](images/community/donation_sites/add_new_donation_site.jpg)
2322

24-
![Add Donation_Site](images/community/donation_sites/add_new_donation_site.jpg)
23+
Note that the Donation Site and address fields are mandatory while the contact name, email and phone are optional.
2524

2625
After saving the site's details there will be a new row on the Donation Sites page.
2726

@@ -43,12 +42,12 @@ Use the "Deactivate" button to hide a Donation Site that is no longer active.
4342

4443
##### (NB) at time of writing there is no way for you to undo this.
4544

46-
![Deactivate Donation Sites](images/community/donation_sites/deactivate_donation_site.jpg)
45+
![Deactivate Donation Sites](images/community/donation_sites/deactivate_donation_site.png)
4746

4847
## Exporting Donation Sites
4948

5049
You can export the active Donation Sites by clicking on the "Export Donation Sites" button. This will provide a .csv file containing the name, address, and contact information for each active Donation Site.
5150

52-
![Export Donation Sites](images/community/donation_sites/export_donation_sites.jpg)
51+
![Export Donation Sites](images/community/donation_sites/export_donation_sites.png)
5352

54-
[Prior: Product Drive Participants](community_product_drive_participants.md)[Next: Vendors](community_vendors.md)
53+
[Prior: Product Drive Participants](community_product_drive_participants.md)[Next: Vendors](community_vendors.md)
Binary file not shown.
286 KB
Loading
Binary file not shown.
291 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)