Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smsManager
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
smsManager
Commits
3ebf022f
Commit
3ebf022f
authored
May 28, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avance desarrollo control
parent
b2be8ee6
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
95 additions
and
3 deletions
+95
-3
app/Resources/views/backend/includes/sidebar.html.twig
app/Resources/views/backend/includes/sidebar.html.twig
+7
-2
app/Resources/views/backend/research/busqueda.html.twig
app/Resources/views/backend/research/busqueda.html.twig
+52
-0
app/config/security.yml
app/config/security.yml
+1
-0
src/BackendBundle/Controller/HomeController.php
src/BackendBundle/Controller/HomeController.php
+8
-0
src/BackendBundle/Controller/ResearchController.php
src/BackendBundle/Controller/ResearchController.php
+20
-0
src/BackendBundle/Resources/config/routing.yml
src/BackendBundle/Resources/config/routing.yml
+7
-1
No files found.
app/Resources/views/backend/includes/sidebar.html.twig
View file @
3ebf022f
...
...
@@ -18,6 +18,7 @@
<ul
class=
"nav"
>
{%
set
route
=
app.request.get
(
'_route'
)
%}
{#<li class="nav-header">Navigation</li>#}
{%
if
is_granted
(
'ROLE_ADMIN'
)
or
is_granted
(
'ROLE_BACKEND'
)
%}
<li
class=
"has-sub
{%
if
'home'
in
route
%}
active
{%
endif
%}
"
>
<a
href=
"javascript:;"
>
<b
class=
"caret pull-right"
></b>
...
...
@@ -32,8 +33,12 @@
<li
class=
"
{%
if
route
==
'backend_home_dashboard_emailing_detalle'
%}
active
{%
endif
%}
"
><a
href=
"
{{
path
(
'backend_home_dashboard_emailing_detalle'
)
}}
"
>
Emailing Detalle
</a></li>
</ul>
</li>
{%
endif
%}
{%
if
is_granted
(
'ROLE_RESEARCHER'
)
%}
<li
class=
"
{%
if
'researcher'
in
route
%}
active
{%
endif
%}
"
>
<a
href=
"
{{
path
(
'backend_researcher_buscar'
)
}}
"
><i
class=
"fa fa-users"
></i>
<span>
Búsqueda
</span></a>
</li>
{%
endif
%}
{%
if
is_granted
(
'ROLE_ADMIN'
)
%}
<li
class=
"
{%
if
'backendusuario'
in
route
%}
active
{%
endif
%}
"
>
<a
href=
"
{{
path
(
'backend_backendusuario_index'
)
}}
"
><i
class=
"fa fa-users"
></i>
<span>
Usuarios backend
</span></a>
...
...
app/Resources/views/backend/research/busqueda.html.twig
0 → 100644
View file @
3ebf022f
{%
extends
'backend/base/index.html.twig'
%}
{%
block
stylesheets
%}
{%
endblock
%}
{%
block
contenido
%}
<!-- begin breadcrumb -->
<ol
class=
"breadcrumb pull-right"
>
<li><a
href=
"javascript:;"
>
Home
</a></li>
<li>
Dashboard
</li>
<li
class=
"active"
>
Búsqueda
</li>
</ol>
<!-- end breadcrumb -->
<!-- begin page-header -->
<h1
class=
"page-header"
>
Búsqueda de usuarios
<small>
</small></h1>
<!-- end page-header -->
<!-- begin row -->
<div
class=
"row"
>
<form
id=
"fmBuscar"
class=
"form-inline"
action=
"/"
method=
"POST"
>
<div
class=
"input-group"
>
<span
class=
"input-group-addon"
>
+56
</span>
<input
type=
"text"
id=
"msisdn"
name=
"msisdn"
class=
"form-control"
placeholder=
"Teléfono (9 dígitos)"
maxlength=
"9"
value=
"995064691"
>
</div>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"buscar(event)"
data-loading-text=
"<i class='fa fa-circle-o-notch fa-spin'></i> Cargando resultados..."
><i
class=
"fa fa-search"
></i>
Buscar
</button>
</form>
</div>
{%
endblock
%}
{%
block
javascripts
%}
<script>
function
buscar
(
event
)
{
event
.
preventDefault
();
console
.
log
(
"
buscar...
"
);
}
</script>
{%
endblock
%}
{%
block
jsApp
%}
<script>
</script>
{%
endblock
%}
\ No newline at end of file
app/config/security.yml
View file @
3ebf022f
...
...
@@ -91,4 +91,5 @@ security:
role_hierarchy
:
ROLE_ADMIN
:
[
ROLE_API
,
ROLE_BACKEND
]
ROLE_BACKEND
:
[
ROLE_RESERACHER
]
ROLE_SUPER_ADMIN
:
[
ROLE_ADMIN
]
\ No newline at end of file
src/BackendBundle/Controller/HomeController.php
View file @
3ebf022f
...
...
@@ -26,6 +26,14 @@ class HomeController extends Controller {
public
function
indexAction
()
{
$log
=
Utiles
::
setLog
(
'BackendBundle\Controller\HomeController:indexAction'
,
'backend/backend'
);
$log
->
debug
(
'entrando...'
);
$securityContext
=
$this
->
container
->
get
(
'security.authorization_checker'
);
if
(
$securityContext
->
isGranted
(
'ROLE_RESEARCHER'
)){
$log
->
debug
(
"Es un usuario buscador.. redireccionando a su pagina..."
);
return
$this
->
redirectToRoute
(
'backend_researcher_buscar'
);
}
$estadistica
=
new
Estadistica
();
$fechaInicial
=
'2016-11-11 00:00:01'
;
$fechaHoy
=
date
(
'Y-m-d H:i:s'
);
...
...
src/BackendBundle/Controller/ResearchController.php
0 → 100644
View file @
3ebf022f
<?php
namespace
BackendBundle\Controller
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Symfony\Component\HttpFoundation\Request
;
use
AppBundle\Lib\Utiles
;
use
AppBundle\Model\UsuarioMcafee
;
use
AppBundle\Model\UsuarioMcafeeQuery
;
class
ResearchController
extends
Controller
{
public
function
busquedaUsuarioAction
(){
$log
=
Utiles
::
setLog
(
'BackendBundle\Controller\ResearchController:buscarUsuarioAction'
,
'backend/backend'
);
$log
->
debug
(
'Entrando a busqueda'
);
return
$this
->
render
(
'backend/research/busqueda.html.twig'
);
}
}
src/BackendBundle/Resources/config/routing.yml
View file @
3ebf022f
...
...
@@ -80,3 +80,9 @@ backend_home_portalmigraciones_detalle:
backend_home_dashboard_emailing_detalle
:
path
:
/home/dashboard/emailing/detalle
defaults
:
{
_controller
:
BackendBundle
:
Home
:
dashboardEmailingDetalle
}
backend_researcher_buscar
:
path
:
/researcher/busqueda/usuario
defaults
:
{
_controller
:
BackendBundle
:
Research
:
busquedaUsuario
}
\ No newline at end of file
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