Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
backend-mcafee
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
backend-mcafee
Commits
bab9fc34
Commit
bab9fc34
authored
Sep 25, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cambios campania
parent
61f967da
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
19 additions
and
13 deletions
+19
-13
app/Resources/views/backend_content/home.html.twig
app/Resources/views/backend_content/home.html.twig
+2
-2
app/Resources/views/backend_content/includes/messagesCrearCampania.html.twig
.../backend_content/includes/messagesCrearCampania.html.twig
+0
-0
app/Resources/views/backend_content/pages/campanias/listadoCampanias.html.twig
...ackend_content/pages/campanias/listadoCampanias.html.twig
+1
-1
app/Resources/views/backend_content/pages/campanias/nuevaCampania.html.twig
...s/backend_content/pages/campanias/nuevaCampania.html.twig
+4
-4
app/Resources/views/backend_content/tables/templateCampanias.html.twig
.../views/backend_content/tables/templateCampanias.html.twig
+2
-2
app/Resources/views/backend_content/tables/templateContent.html.twig
...es/views/backend_content/tables/templateContent.html.twig
+1
-1
app/Resources/views/baseBackend.html.twig
app/Resources/views/baseBackend.html.twig
+0
-0
app/Resources/views/baseLogin.html.twig
app/Resources/views/baseLogin.html.twig
+0
-0
app/Resources/views/login/includes/alertMessages.html.twig
app/Resources/views/login/includes/alertMessages.html.twig
+0
-0
app/Resources/views/login/login.html.twig
app/Resources/views/login/login.html.twig
+2
-2
src/BackendBundle/Controller/BackendController.php
src/BackendBundle/Controller/BackendController.php
+7
-1
No files found.
app/Resources/views/backend_content/home.html.twig
View file @
bab9fc34
{%
extends
'base
_b
ackend.html.twig'
%}
{%
extends
'base
B
ackend.html.twig'
%}
{%
block
content
%}
{%
block
content
%}
<!--begin::Subheader-->
<!--begin::Subheader-->
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
class=
"d-flex flex-column-fluid"
>
<div
class=
"d-flex flex-column-fluid"
>
<!--begin::Container-->
<!--begin::Container-->
<div
class=
" container "
>
<div
class=
" container "
>
<p>
Prueba
</p>
{%
include
'backend_content/includes/itemsDashBoard.html.twig'
%}
</div>
</div>
<!--end::Container-->
<!--end::Container-->
</div>
</div>
...
...
app/Resources/views/backend_content/includes/messages
_crear_c
ampania.html.twig
→
app/Resources/views/backend_content/includes/messages
CrearC
ampania.html.twig
View file @
bab9fc34
File moved
app/Resources/views/backend_content/pages/campanias/listadoCampanias.html.twig
View file @
bab9fc34
{%
extends
'base
_b
ackend.html.twig'
%}
{%
extends
'base
B
ackend.html.twig'
%}
{%
block
content
%}
{%
block
content
%}
<!--begin::Subheader-->
<!--begin::Subheader-->
...
...
app/Resources/views/backend_content/pages/campanias/nuevaCampania.html.twig
View file @
bab9fc34
{%
extends
'base
_b
ackend.html.twig'
%}
{%
extends
'base
B
ackend.html.twig'
%}
{%
block
content
%}
{%
block
content
%}
<!--begin::Subheader-->
<!--begin::Subheader-->
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<form
class=
"form"
>
<form
class=
"form"
>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{%
include
'backend_content/includes/messages
_crear_c
ampania.html.twig'
%}
{%
include
'backend_content/includes/messages
CrearC
ampania.html.twig'
%}
</div>
</div>
<div
class=
"form-group row"
>
<div
class=
"form-group row"
>
<input
id=
"jsonContenido"
type=
"hidden"
value=
"
{{
jsonContenido
}}
"
/>
<input
id=
"jsonContenido"
type=
"hidden"
value=
"
{{
jsonContenido
}}
"
/>
...
@@ -270,8 +270,8 @@
...
@@ -270,8 +270,8 @@
width
:
'
75px
'
,
width
:
'
75px
'
,
render
:
function
(
data
,
type
,
full
,
meta
)
{
render
:
function
(
data
,
type
,
full
,
meta
)
{
var
status
=
{
var
status
=
{
0
:
{
'
title
'
:
'
E
'
,
'
state
'
:
'
danger
'
},
0
:
{
'
title
'
:
'
E
LIMINADO
'
,
'
state
'
:
'
danger
'
},
1
:
{
'
title
'
:
'
A
'
,
'
state
'
:
'
success
'
},
1
:
{
'
title
'
:
'
A
CTIVO
'
,
'
state
'
:
'
success
'
},
};
};
if
(
typeof
status
[
data
]
===
'
undefined
'
)
{
if
(
typeof
status
[
data
]
===
'
undefined
'
)
{
return
data
;
return
data
;
...
...
app/Resources/views/backend_content/tables/templateCampanias.html.twig
View file @
bab9fc34
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
<td>
{{
campania.getCamEstado
()
}}
</td>
<td>
{{
campania.getCamEstado
()
}}
</td>
<td
nowrap
>
<td
nowrap
>
<a
id=
"edit_
{{
campania.getCamId
()
}}
"
href=
"
{{
path
(
'campania_crear'
,
{
'camId'
:
campania.getCamId
()
}
)
}}
"
class=
"navi-link"
>
<a
id=
"edit_
{{
campania.getCamId
()
}}
"
href=
"
{{
path
(
'campania_crear'
,
{
'camId'
:
campania.getCamId
()
}
)
}}
"
class=
"navi-link"
>
<span
class=
"
navi-icon
"
><i
class=
"fa fa-lg fa-edit"
></i></span>
<span
class=
"
btn btn-icon btn-light btn-hover-primary btn-sm
"
><i
class=
"fa fa-lg fa-edit"
></i></span>
</a>
</a>
<a
id=
"delete_
{{
campania.getCamId
()
}}
"
onclick=
"eliminarCampania(event,
{{
campania.getCamId
()
}}
)"
class=
"navi-link"
>
<a
id=
"delete_
{{
campania.getCamId
()
}}
"
onclick=
"eliminarCampania(event,
{{
campania.getCamId
()
}}
)"
class=
"navi-link"
>
<span
class=
"
navi-icon
"
><i
class=
"fa fa-lg fa-trash"
></i></span>
<span
class=
"
btn btn-icon btn-light btn-hover-primary btn-sm
"
><i
class=
"fa fa-lg fa-trash"
></i></span>
</a>
</a>
</td>
</td>
</tr>
</tr>
...
...
app/Resources/views/backend_content/tables/templateContent.html.twig
View file @
bab9fc34
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<span class="navi-icon"><i class="fa fa-lg fa-edit"></i></span>
<span class="navi-icon"><i class="fa fa-lg fa-edit"></i></span>
</a>#}
</a>#}
<a
id=
"delete_
{{
contenido.getFila
()
.
getFilId
()
}}
"
href=
""
onclick=
"eliminarContenido(event,
{{
contenido.getCcoId
()
}}
,
{{
contenido.getFila
()
.
getFilId
()
}}
)"
class=
"navi-link"
>
<a
id=
"delete_
{{
contenido.getFila
()
.
getFilId
()
}}
"
href=
""
onclick=
"eliminarContenido(event,
{{
contenido.getCcoId
()
}}
,
{{
contenido.getFila
()
.
getFilId
()
}}
)"
class=
"navi-link"
>
<span
class=
"
navi-icon
"
><i
class=
"fa fa-lg fa-trash"
></i></span>
<span
class=
"
btn btn-icon btn-light btn-hover-primary btn-sm
"
><i
class=
"fa fa-lg fa-trash"
></i></span>
</a>
</a>
</td>
</td>
</tr>
</tr>
...
...
app/Resources/views/base
_b
ackend.html.twig
→
app/Resources/views/base
B
ackend.html.twig
View file @
bab9fc34
File moved
app/Resources/views/base
_l
ogin.html.twig
→
app/Resources/views/base
L
ogin.html.twig
View file @
bab9fc34
File moved
app/Resources/views/login/includes/alert
.m
essages.html.twig
→
app/Resources/views/login/includes/alert
M
essages.html.twig
View file @
bab9fc34
File moved
app/Resources/views/login/login.html.twig
View file @
bab9fc34
{%
extends
'base
_l
ogin.html.twig'
%}
{%
extends
'base
L
ogin.html.twig'
%}
{%
block
body
%}
{%
block
body
%}
<!--begin::Login-->
<!--begin::Login-->
<div
class=
"login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-white"
id=
"kt_login"
>
<div
class=
"login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-white"
id=
"kt_login"
>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<!--begin::Form-->
<!--begin::Form-->
<form
class=
"form"
action=
"
{{
path
(
'backend_login_check'
)
}}
"
method=
"post"
novalidate=
"novalidate"
id=
"kt_login_signin_form"
>
<form
class=
"form"
action=
"
{{
path
(
'backend_login_check'
)
}}
"
method=
"post"
novalidate=
"novalidate"
id=
"kt_login_signin_form"
>
{{
include
(
'login/includes/alert
.m
essages.html.twig'
)
}}
{{
include
(
'login/includes/alert
M
essages.html.twig'
)
}}
<!--begin::Title-->
<!--begin::Title-->
<div
class=
"pb-13 pt-lg-0 pt-5"
>
<div
class=
"pb-13 pt-lg-0 pt-5"
>
<h3
class=
"font-weight-bolder text-dark font-size-h4 font-size-h1-lg"
>
Bienvenido!
</h3>
<h3
class=
"font-weight-bolder text-dark font-size-h4 font-size-h1-lg"
>
Bienvenido!
</h3>
...
...
src/BackendBundle/Controller/BackendController.php
View file @
bab9fc34
...
@@ -4,6 +4,9 @@ namespace BackendBundle\Controller;
...
@@ -4,6 +4,9 @@ namespace BackendBundle\Controller;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Request
;
use
AppBundle\Lib\Utiles
;
use
AppBundle\Model\Campania
;
use
AppBundle\Model\CampaniaQuery
;
class
BackendController
extends
Controller
class
BackendController
extends
Controller
{
{
...
@@ -13,6 +16,9 @@ class BackendController extends Controller
...
@@ -13,6 +16,9 @@ class BackendController extends Controller
}
}
public
function
homeAction
(){
public
function
homeAction
(){
return
$this
->
render
(
'backend_content/home.html.twig'
);
$log
=
Utiles
::
setLog
(
'CampaniaBundle\Controller\CampaniaController:homeAction'
,
'mcafee/campania/index'
);
$countCampaniasActivas
=
CampaniaQuery
::
create
()
->
filterByCamEstado
(
Campania
::
ESTADO_ACTIVO
)
->
filterByCamEliminado
(
Campania
::
ELIMINADO_FALSE
)
->
count
();
$log
->
debug
(
"retornando indicadores | Campañas activas :
$countCampaniasActivas
..."
);
return
$this
->
render
(
'backend_content/home.html.twig'
,
array
(
"countCampaniasActivas"
=>
$countCampaniasActivas
));
}
}
}
}
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