Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crmforms-onestartup
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angel Martin
crmforms-onestartup
Commits
0055561d
Commit
0055561d
authored
Oct 22, 2018
by
Francisco Salazar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://bunkrbit.com/bsabbath/crmforms-onestartup
parents
a3c87cf4
497ba402
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
14 deletions
+59
-14
README.md
README.md
+6
-1
cronometro.js
src/assets/cronometro.js
+0
-12
cronometro2.js
src/assets/cronometro2.js
+39
-0
CrmFormsController.php
src/controllers/CrmFormsController.php
+14
-1
No files found.
README.md
View file @
0055561d
...
@@ -35,7 +35,11 @@ composer require onestartup/crm-forms
...
@@ -35,7 +35,11 @@ composer require onestartup/crm-forms
Onestartup\CrmForms\CrmFormsServiceProvider
::
class
,
Onestartup\CrmForms\CrmFormsServiceProvider
::
class
,
```
```
-
run migrations
```
php artisan migrate
```
-
run command for publish views
-
run command for publish views
...
@@ -71,5 +75,5 @@ public function interested_detail(){
...
@@ -71,5 +75,5 @@ public function interested_detail(){
-include scripts in your landing page
-include scripts in your landing page
```
php
```
php
<script
src=
"{{asset('assets/cronometro.js')}}"
type=
"text/javascript"
/
>
<script
type=
"text/javascript"
src=
"{{asset('assets/cronometro2.js')}}"
></script
>
```
```
\ No newline at end of file
src/assets/cronometro.js
deleted
100644 → 0
View file @
a3c87cf4
var
start
;
var
finish
;
jQuery
(
document
).
ready
(
function
(
$
)
{
start
=
new
Date
();
});
jQuery
(
"#landing_form"
).
submit
(
function
(
$
){
finish
=
new
Date
();
var
tiempo
=
(
+
finish
-
+
start
)
/
1000
;
jQuery
(
"#landing_form"
).
append
(
'<input type="hidden" name="session_time" value="'
+
tiempo
+
'" />'
);
});
\ No newline at end of file
src/assets/cronometro2.js
0 → 100644
View file @
0055561d
var
start
;
var
finish
;
jQuery
(
function
(
$
)
{
start
=
new
Date
();
$
(
'form'
).
submit
(
function
(){
finish
=
new
Date
();
var
tiempo
=
(
+
finish
-
+
start
)
/
1000
;
jQuery
(
"#landing_form"
).
append
(
'<input type="hidden" name="session_time" value="'
+
tiempo
+
'" />'
);
$
(
'input[type=submit]'
,
this
).
attr
(
'disabled'
,
'disabled'
);
swal
({
text
:
"Espera por favor, estamos validando tus datos de registro..."
,
icon
:
"http://www.hullvanhire.co.uk/public/themes/vanhire/images/loading.gif"
,
button
:
false
,
closeOnEsc
:
false
,
closeOnClickOutside
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
false
});
$
(
'body'
).
keypress
(
function
(
event
){
if
(
event
.
keyCode
==
10
||
event
.
keyCode
==
13
)
swal
({
text
:
"Espera por favor, estamos validando tus datos de registro..."
,
icon
:
"http://www.hullvanhire.co.uk/public/themes/vanhire/images/loading.gif"
,
button
:
false
,
closeOnEsc
:
false
,
closeOnClickOutside
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
false
});
});
});
});
\ No newline at end of file
src/controllers/CrmFormsController.php
View file @
0055561d
...
@@ -97,7 +97,20 @@ class CrmFormsController extends Controller
...
@@ -97,7 +97,20 @@ class CrmFormsController extends Controller
$interested_details
->
save
();
$interested_details
->
save
();
}
}
return
redirect
()
$interested_details
->
browser
=
$browser
;
$interested_details
->
browser_version
=
$browser_version
;
$interested_details
->
devise
=
$devise
;
$interested_details
->
platform
=
$platform
;
$interested_details
->
platform_version
=
$platform_version
;
$interested_details
->
session_time
=
$session_time
;
$interested_details
->
devise_type
=
$devise_type
;
$interested_details
->
save
();
}
return
redirect
()
->
route
(
'crmforms.redirect'
,
$request
->
landing
)
->
route
(
'crmforms.redirect'
,
$request
->
landing
)
->
with
(
'registrado'
,
'registrado'
)
->
with
(
'registrado'
,
'registrado'
)
->
with
(
'message_success'
,
'Hemos recibido tu solicitud, en breve nos comunicaremos contigo'
);
->
with
(
'message_success'
,
'Hemos recibido tu solicitud, en breve nos comunicaremos contigo'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment