-
Notifications
You must be signed in to change notification settings - Fork 3
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 #46 from njazari/wip_UI_final
Wip ui final
- Loading branch information
Showing
5 changed files
with
62 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
%h1 Edit Dedication and Consent for Digital Wall of Founders | ||
|
||
= form_tag dedication_path(@dedication), :method => :put do | ||
|
||
%h2 Dedication | ||
= label :dedication, :dedication, 'Write a dedication for your donation' | ||
= text_field :dedication, 'dedication' | ||
|
||
%h2 Digital Wall of Founders | ||
= label :dedication, :status, 'I want my dedication to appear on the Digital Wall of Founders' | ||
= check_box :dedication, 'status', {}, 'true', 'false' | ||
|
||
%p We want to keep the Digital Wall of Founders as close to the physical Walls of Founders | ||
in hospitals as possible, so once you "Publish" your dedication you must contact an admin to change it. | ||
Until you publish your dedication it will not appear on the Digital Wall of Founders. | ||
= submit_tag 'Save' | ||
= submit_tag 'Publish', name: 'publish' | ||
.container | ||
.devise | ||
%h1 Edit Dedication and Consent for Digital Wall of Founders | ||
|
||
= form_tag dedication_path(@dedication), :method => :put do | ||
|
||
%h2 Dedication | ||
= label :dedication, :dedication, 'Write a dedication for your donation' | ||
= text_field :dedication, 'dedication' | ||
|
||
%h2 Digital Wall of Founders | ||
= label :dedication, :status, 'I want my dedication to appear on the Digital Wall of Founders' | ||
= check_box :dedication, 'status', {}, 'true', 'false' | ||
|
||
%p We want to keep the Digital Wall of Founders as close to the physical Walls of Founders | ||
in hospitals as possible, so once you "Publish" your dedication you must contact an admin to change it. | ||
Until you publish your dedication it will not appear on the Digital Wall of Founders. | ||
= submit_tag 'Save' | ||
= submit_tag 'Publish', name: 'publish' |
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,29 +1,40 @@ | ||
%h1 #{@donor.first_name} #{@donor.last_name} | ||
|
||
%h2 Published Dedications | ||
- @tiers.each do |tier| | ||
- @donor_published_dedications_by_tier[tier].each do |dedication| | ||
%div{:class => "dedication", :id => dedication.id} | ||
.col-md-4.portfolio-item | ||
.panel.panel-default | ||
.panel-heading | ||
%h4= dedication.tier | ||
.panel-body | ||
%p= dedication.dedication | ||
%p= link_to "#{dedication.hospital.name}", hospital_path(Hospital.find(dedication.hospital_id)) | ||
%p= link_to "View Dedication", dedication_path(dedication), :id => "view_#{dedication.id}" | ||
|
||
- if @show_unpublished | ||
%h2 Unpublished Dedications | ||
- @tiers.each do |tier| | ||
- @donor_unpublished_dedications_by_tier[tier].each do |dedication| | ||
%div{:class => "dedication", :id => dedication.id} | ||
.col-md-4.portfolio-item | ||
.panel.panel-default | ||
.panel-heading | ||
%h4= dedication.tier | ||
.panel-body | ||
%p= dedication.dedication | ||
%p= link_to "#{dedication.hospital.name}", hospital_path(Hospital.find(dedication.hospital_id)) | ||
%p= link_to "View Dedication", dedication_path(dedication), :id => "view_#{dedication.id}" | ||
%p= link_to "Edit", edit_dedication_path(dedication.id) | ||
.container | ||
.devise | ||
%h1 #{@donor.first_name} #{@donor.last_name} | ||
%hr/ | ||
|
||
%h3 Published Dedications | ||
- @tiers.each do |tier| | ||
.row | ||
- @donor_published_dedications_by_tier[tier].each do |dedication| | ||
%div{:class => "dedication", :id => dedication.id} | ||
.col-md-4 | ||
.panel.panel-info | ||
.panel-heading | ||
%h4= dedication.tier | ||
.panel-body | ||
%p= dedication.dedication | ||
%p= link_to "#{dedication.hospital.name}", hospital_path(Hospital.find(dedication.hospital_id)) | ||
.btn.btn-default.btn-round.btn-sm | ||
%a{:href => dedication_path(dedication)} | ||
View Dedication | ||
|
||
- if @show_unpublished | ||
%h3 Unpublished Dedications | ||
- @tiers.each do |tier| | ||
.row | ||
- @donor_unpublished_dedications_by_tier[tier].each do |dedication| | ||
%div{:class => "dedication", :id => dedication.id} | ||
.col-md-4 | ||
.panel.panel-info | ||
.panel-heading | ||
%h4= dedication.tier | ||
.panel-body | ||
%p= dedication.dedication | ||
%p= link_to "#{dedication.hospital.name}", hospital_path(Hospital.find(dedication.hospital_id)) | ||
.btn.btn-default.btn-round.btn-sm | ||
%a{:href => dedication_path(dedication)} | ||
View Dedication | ||
.btn.btn-default.btn-round.btn-sm | ||
%a{:href => edit_dedication_path(dedication.id)} | ||
Edit |
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