-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the feedback form. add the images on footer.
- Loading branch information
Showing
11 changed files
with
203 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class Feedback | ||
include Mongoid::Document | ||
|
||
field :name, type: String | ||
field :email, type: String | ||
field :content_feedback, type: String | ||
field :accessible_feedback, type: String | ||
field :other_feedback, type: String | ||
|
||
#validation | ||
validates :name, :email, :presence => true | ||
end |
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 +1,21 @@ | ||
.row .span5.pull-right %ul.nav %li %img{:src =>'/images/Rackspace_Cloud_Company_Logo_clr_300x109.jpg', :alt => 'rackspace logo', :width => "100px"} %li %p Hosting partner rackspace | ||
|
||
.span6.pull-left | ||
%ul.nav | ||
%li | ||
%img{:src =>'/images/Josh.svg', :alt => 'Josh software logo', :width => "100px"} | ||
%li | ||
%p Knowledge Partner | ||
.span6.pull-middle | ||
%ul.nav | ||
%li | ||
%img{:src =>'/images/techvision4.jpg', :alt => 'TechVision logo', :width => "125px"} | ||
%li | ||
%p Develop by | ||
.span3.pull-right | ||
%ul.nav | ||
%li | ||
%img{:src =>'/images/Rackspace_Cloud_Company_Logo_clr_300x109.jpg', :alt => 'Rackspace logo', :width => "100px"} | ||
%li | ||
%p Hosting Partner | ||
|
||
|
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,14 @@ | ||
%h1 Feedback form | ||
.content | ||
= simple_form_for @feedback, url: feedback_path, method: :post, html: {:class => 'form-horizontal'} do |f| | ||
= f.error_notification | ||
.form-inputs | ||
= f.input :name | ||
= f.input :email | ||
= f.input :content_feedback, as: :text, :input_html => {:cols => 20, :rows => 5} | ||
= f.input :accessible_feedback, as: :text, :input_html => {:cols => 20, :rows => 5} | ||
= f.input :other_feedback, as: :text, :input_html => {:cols => 20, :rows => 5} | ||
|
||
.form-actions | ||
= f.submit "Submit", class: 'btn btn-large btn-success' | ||
= link_to "Cancel", root_path, class: 'btn btn-large btn-success' |
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,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> | ||
</head> | ||
<body> | ||
<p> | ||
<i> Hello sir,</i> | ||
</p> | ||
<p> | ||
<b>Content Feedback</b></br> | ||
<%= @feedback.content_feedback %> | ||
</p></br> | ||
<p> | ||
<b> Accessible Feedback</b></br> | ||
<%= @feedback.accessible_feedback %> | ||
</p></br> | ||
<p> | ||
<b> Other Feedback</b></br> | ||
<%= @feedback.other_feedback %> | ||
</p> | ||
|
||
</br> | ||
</br> | ||
Regards</br> | ||
<%= @feedback.name %> | ||
</body> | ||
</html> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
require 'spec_helper' | ||
|
||
describe Feedback do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
end |