Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nutrapharm_producto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
nutrapharm_producto
Commits
81db466c
Commit
81db466c
authored
May 29, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actualizacion y limpieza logica
parent
8b609832
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
65 deletions
+75
-65
app/Resources/views/producto/landing_producto.html.twig
app/Resources/views/producto/landing_producto.html.twig
+18
-22
src/AppBundle/Model/UsuarioNutrapharm.php
src/AppBundle/Model/UsuarioNutrapharm.php
+1
-0
src/NutrapharmBundle/Controller/DefaultController.php
src/NutrapharmBundle/Controller/DefaultController.php
+56
-43
No files found.
app/Resources/views/producto/landing_producto.html.twig
View file @
81db466c
...
@@ -18,10 +18,20 @@
...
@@ -18,10 +18,20 @@
<meta
property=
"og:description"
content=
"
{{
comentarioFinal
}}
"
/>
<meta
property=
"og:description"
content=
"
{{
comentarioFinal
}}
"
/>
<meta
property=
"og:image:width"
content=
"1200"
/>
<meta
property=
"og:image:width"
content=
"1200"
/>
<meta
property=
"og:image:height"
content=
"630"
/>
<meta
property=
"og:image:height"
content=
"630"
/>
<meta
property=
"og:image"
content=
"https://test-inovage.gearlabs.cl/uploads/users/
{{
idp
}}
_comparacion.png"
/>
<meta
property=
"og:image"
content=
"https://test-inovage.gearlabs.cl/uploads/users/
{{
idp
}}
_comparacion.png"
/
{%
endif
%}
{%
endif
%}
<
link
href=
"
{{
asset
(
'frontend/css/camara.css'
)
}}
"
rel=
"stylesheet"
/>
<
link
href=
"
{{
asset
(
'frontend/css/camara.css'
)
}}
"
rel=
"stylesheet"
/>
<script>
(
function
(
d
,
s
,
id
)
{
var
js
,
fjs
=
d
.
getElementsByTagName
(
s
)[
0
];
if
(
d
.
getElementById
(
id
))
return
;
js
=
d
.
createElement
(
s
);
js
.
id
=
id
;
js
.
src
=
"
//connect.facebook.net/es_ES/sdk.js
"
;
fjs
.
parentNode
.
insertBefore
(
js
,
fjs
);
}(
document
,
'
script
'
,
'
facebook-jssdk
'
));
</script>
{%
endblock
%}
{%
endblock
%}
{%
block
body
%}
{%
block
body
%}
<div
class=
"row"
>
<div
class=
"row"
>
...
@@ -114,27 +124,14 @@
...
@@ -114,27 +124,14 @@
var
usuarioNutraPharm
=
"
{{
idp
}}
"
;
//por defecto
var
usuarioNutraPharm
=
"
{{
idp
}}
"
;
//por defecto
var
tipoUsuarioFormulario
=
3
;
//Segunda vez que entra por link de invitacion
var
tipoUsuarioFormulario
=
3
;
//Segunda vez que entra por link de invitacion
{%
else
%}
{%
else
%}
var
usuarioNutraPharm
=
"
none
"
;
//por defecto
var
usuarioNutraPharm
=
"
none
"
;
//por defecto
var
tipoUsuarioFormulario
=
1
;
var
tipoUsuarioFormulario
=
1
;
{%
endif
%}
{%
endif
%}
var
upload
;
var
upload
;
var
url
=
'
https://test-inovage.gearlabs.cl/nutrapharm/index?idp=
{{
idp
}}
&fa=
{{
fa
}}
&r=0
'
;
var
description
=
$
(
"
#comentarioFotoUsuario
"
).
val
();
</script>
</script>
<script>
var
url
=
'
https://test-inovage.gearlabs.cl/nutrapharm/index?idp=
{{
idp
}}
&fa=
{{
fa
}}
&r=0
'
;
var
description
=
$
(
"
#comentarioFotoUsuario
"
).
val
();
</script>
<script>
(
function
(
d
,
s
,
id
)
{
var
js
,
fjs
=
d
.
getElementsByTagName
(
s
)[
0
];
if
(
d
.
getElementById
(
id
))
return
;
js
=
d
.
createElement
(
s
);
js
.
id
=
id
;
js
.
src
=
"
//connect.facebook.net/es_ES/sdk.js
"
;
fjs
.
parentNode
.
insertBefore
(
js
,
fjs
);
}(
document
,
'
script
'
,
'
facebook-jssdk
'
));
</script>
</script>
<script>
<script>
window
.
fbAsyncInit
=
function
()
{
window
.
fbAsyncInit
=
function
()
{
...
@@ -198,8 +195,7 @@
...
@@ -198,8 +195,7 @@
$
(
"
#imgInp
"
).
change
(
function
()
{
$
(
"
#imgInp
"
).
change
(
function
()
{
readURL
(
this
);
readURL
(
this
);
});
});
</script>
<script>
var
Upload
=
function
(
file
)
{
var
Upload
=
function
(
file
)
{
this
.
file
=
file
;
this
.
file
=
file
;
};
};
...
...
src/AppBundle/Model/UsuarioNutrapharm.php
View file @
81db466c
...
@@ -9,6 +9,7 @@ class UsuarioNutrapharm extends BaseUsuarioNutrapharm
...
@@ -9,6 +9,7 @@ class UsuarioNutrapharm extends BaseUsuarioNutrapharm
const
ESTADO_FOTO_INICIAL
=
1
;
const
ESTADO_FOTO_INICIAL
=
1
;
const
ESTADO_FOTO_ACTUALIZADA
=
2
;
const
ESTADO_FOTO_ACTUALIZADA
=
2
;
const
ESTADO_FOTO_FINAL
=
3
;
const
ESTADO_FOTO_FINAL
=
3
;
const
ESTADO_NO_VALIDO
=
0
;
const
ELIMINADO_TRUE
=
1
;
const
ELIMINADO_TRUE
=
1
;
const
ELIMINADO_FALSE
=
0
;
const
ELIMINADO_FALSE
=
0
;
}
}
src/NutrapharmBundle/Controller/DefaultController.php
View file @
81db466c
This diff is collapsed.
Click to expand it.
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