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
554cb14f
Commit
554cb14f
authored
May 28, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actualizacion
parent
b5d2d5bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
app/Resources/views/producto/landing_producto.html.twig
app/Resources/views/producto/landing_producto.html.twig
+1
-1
src/NutrapharmBundle/Controller/DefaultController.php
src/NutrapharmBundle/Controller/DefaultController.php
+6
-4
No files found.
app/Resources/views/producto/landing_producto.html.twig
View file @
554cb14f
...
...
@@ -50,7 +50,7 @@
</div>
{%
else
%}
<label>
Foto Subida antes
</label>
<img
src=
"https://test-inovage.gearlabs.cl/nutrapharm/get/photo?file_name=
{{
idp
}}
.
png
"
/>
<img
src=
"https://test-inovage.gearlabs.cl/nutrapharm/get/photo?file_name=
{{
idp
}}
.
{{
extInicial
}}
"
/>
<div
class=
"form-group"
>
<label
class=
"col-md-3 control-label"
>
Comentarios
</label>
<div
class=
"col-md-8"
>
...
...
src/NutrapharmBundle/Controller/DefaultController.php
View file @
554cb14f
...
...
@@ -14,6 +14,7 @@ use Treinetic\ImageArtist\lib\Commons\Node;
use
Treinetic\ImageArtist\lib\Image
;
use
Treinetic\ImageArtist\lib\Shapes\Square
;
use
AppBundle\Model\UsuarioNutrapharm
;
use
AppBundle\Model\UsuarioNutrapharmQuery
;
use
Symfony\Component\Filesystem\Filesystem
;
use
Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser
;
use
Symfony\Component\HttpFoundation\File\File
;
...
...
@@ -29,16 +30,17 @@ class DefaultController extends Controller {
$idPersona
=
$request
->
get
(
"idp"
,
null
);
$firstAttempt
=
$request
->
get
(
"fa"
,
1
);
$reset
=
$request
->
get
(
"r"
,
0
);
if
(
$idPersona
==
null
)
{
$id
=
"none"
;
$ext
=
"png"
;
}
else
{
$id
=
$idPersona
;
$usuario
=
UsuarioNutrapharmQuery
::
create
()
->
filterByUnuIdNutrapharm
(
$idPersona
)
->
find
();
$ext
=
$usuario
->
getUnuExtInicial
();
}
return
$this
->
render
(
'producto/landing_producto.html.twig'
,
array
(
"idp"
=>
$id
,
"fa"
=>
$firstAttempt
,
"r"
=>
$reset
));
return
$this
->
render
(
'producto/landing_producto.html.twig'
,
array
(
"idp"
=>
$id
,
"extInicial"
=>
$ext
,
"extFinal"
=>
""
,
"fa"
=>
$firstAttempt
,
"r"
=>
$reset
));
}
public
function
uploadAction
(
Request
$request
)
{
...
...
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