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 #1 from rb512/master
Web-To-Lead form
- Loading branch information
Showing
16 changed files
with
151 additions
and
12 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,9 @@ | ||
=form_tag "http://localhost:3000/generate" do | ||
=hidden_field_tag :lead_owner, @lead_owner | ||
=hidden_field_tag :params, @in_lead | ||
=hidden_field_tag :redirect_url, @redirect_url | ||
-for a in 0..@in_lead.size-1 do | ||
=label_tag @in_lead[a] | ||
=text_field_tag @in_lead[a] | ||
|
||
=submit_tag "Generate Form", class: 'btn btn-primary' |
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,32 @@ | ||
.form.well | ||
.label | ||
%h2 | ||
New Web Form | ||
%br | ||
.span12.offset9 | ||
%br | ||
.form-horizontal | ||
=form_tag create_lead_path,:class => 'simple_form' do | ||
%fieldset | ||
%legend Lead Info | ||
.row | ||
.span4 | ||
%p | ||
Redirect URL | ||
=text_field_tag :redirect_url | ||
%br | ||
-for a in 0..@lead.size/2-1 do | ||
=check_box_tag @lead[a] | ||
=@lead[a] | ||
%br | ||
.span4 | ||
%br | ||
%br | ||
=hidden_field_tag :lead,@lead | ||
-for b in @lead.size/2..@lead.size-1 do | ||
=check_box_tag @lead[b] | ||
=@lead[b] | ||
%br | ||
%br | ||
= submit_tag "Generate Form", class: 'btn btn-primary' | ||
= link_to 'Cancel', leads_path, class: "btn btn-danger" |
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 @@ | ||
%h3 Web Form | ||
Copy the form below and use it anywhere in your website. | ||
=text_area_tag "web_form",(render file: 'leads/convert_form.html.haml'), readonly: true, style: "width:850px; height:400px" | ||
%br | ||
=link_to "Back", leads_path, class: 'btn btn-primary' |
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,5 +1,7 @@ | ||
# Load the rails application | ||
require File.expand_path('../application', __FILE__) | ||
require 'gibberish' | ||
|
||
# Initialize the rails application | ||
RebelFoundation::Application.initialize! | ||
::KEY = Gibberish::AES.new("awerwrREWdfER1645") |
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 @@ | ||
rails.servertype=[/Applications/NetBeans/glassfish-3.0.1/glassfish]deployer:gfv3ee6:localhost:4848 |
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,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> | ||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/> | ||
</project-private> |
Empty file.
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,3 @@ | ||
platform.active=default | ||
rails.port=8080 | ||
source.encoding=UTF-8 |
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://www.netbeans.org/ns/project/1"> | ||
<type>org.netbeans.modules.ruby.railsprojects</type> | ||
<configuration> | ||
<data xmlns="http://www.netbeans.org/ns/rails-project/1"> | ||
<name>railscrm</name> | ||
</data> | ||
</configuration> | ||
</project> |