Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PGPI-entrega
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sergest
PGPI-entrega
Commits
366072ff
Unverified
Commit
366072ff
authored
Jan 4, 2019
by
Álvaro
Committed by
GitHub
Jan 4, 2019
Browse files
Options
Downloads
Plain Diff
Merge pull request #22 from SergioEstebanP/cierre_cliente
cierre_final
parents
82f68fde
4d82a8e8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/app.py
+4
-2
4 additions, 2 deletions
src/app.py
src/templates/incidencias_supervisor.html
+19
-0
19 additions, 0 deletions
src/templates/incidencias_supervisor.html
src/templates/info_incidencia.html
+1
-1
1 addition, 1 deletion
src/templates/info_incidencia.html
with
24 additions
and
3 deletions
src/app.py
+
4
−
2
View file @
366072ff
...
...
@@ -72,8 +72,9 @@ def index():
if
current_user
.
tipo
==
0
:
#Supervisor
incidencias_abiertas
=
get_incidencias_abiertas_super
()
incidencias_notif_cierre
=
get_incidencias_notif_cierre_super
()
incidencias_notif_cierre_cliente
=
get_incidencias_notif_cierre_super_cliente
()
return
render_template
(
'
incidencias_supervisor.html
'
,
incidencias_abiertas
=
incidencias_abiertas
,
incidencias_notif_cierre
=
incidencias_notif_cierre
)
return
render_template
(
'
incidencias_supervisor.html
'
,
incidencias_abiertas
=
incidencias_abiertas
,
incidencias_notif_cierre
=
incidencias_notif_cierre
,
incidencias_notif_cierre_cliente
=
incidencias_notif_cierre_cliente
)
elif
current_user
.
tipo
==
1
:
#Tecnico
incidencias_abiertas
=
get_incidencias_abiertas
(
current_user
.
nick
)
...
...
@@ -215,7 +216,8 @@ def get_incidencias_abiertas_super():
def
get_incidencias_notif_cierre_super
():
return
list
(
Incidencia
.
query
.
filter_by
(
estado
=
3
))
def
get_incidencias_notif_cierre_super_cliente
():
return
list
(
Incidencia
.
query
.
filter_by
(
estado
=
2
))
def
get_incidencias_notif_cierre
(
userNick
):
return
list
((
Incidencia
.
query
.
filter_by
(
reportadaPor
=
userNick
,
estado
=
2
)))
def
get_inciencias_pendientes_cierre
(
userNick
):
...
...
This diff is collapsed.
Click to expand it.
src/templates/incidencias_supervisor.html
+
19
−
0
View file @
366072ff
...
...
@@ -90,6 +90,25 @@
</div>
{% endfor %}
</div>
<div
style=
"border-left: 1px solid grey; height: 70%;"
>
<p
class=
"text-center"
id=
"tituloColumna"
>
Pendientes de Cerrar Cliente
</p>
{% for i in range(incidencias_notif_cierre_cliente|length) %}
<div
class=
"card-deck"
style=
"margin: 1em;"
>
<div
class=
"card"
id=
"card2"
>
<div
class=
"card-body"
>
<a
href=
"/incidencia/{{ incidencias_notif_cierre_cliente[i].id }}"
>
<p
class=
"card-title"
>
{{ incidencias_notif_cierre_cliente[i].titulo }}
</p>
<hr>
<p
class=
"card-text"
>
Descripción:
</p>
<p
class=
"card-text .text-justify"
id=
"card-description"
>
{{ incidencias_notif_cierre_cliente[i].descripcion }}
</p>
<hr>
<p
class=
"card-text"
>
Incidencia abierta por {{ incidencias_notif_cierre_cliente[i].reportadaPor }}
</p>
</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/templates/info_incidencia.html
+
1
−
1
View file @
366072ff
...
...
@@ -175,7 +175,7 @@
<button
type=
"button"
class=
"btn btn-outline-primary"
>
Añadir comentario
</button>
{% endif %}}
{% if (current_user.tipo == 0) and (incidencia.estado == 3) %}
{% if (current_user.tipo == 0) and (incidencia.estado == 3
or incidencia.estado==2
) %}
<button
type=
"button"
class=
"btn btn-outline-primary"
>
Añadir comentario
</button>
<button
type=
"submit"
class=
"btn btn-outline-primary"
name=
"action"
value=
"Solucion"
>
Cerrar Incidencia Solucionada
</button>
<button
type=
"submit"
class=
"btn btn-outline-primary"
name=
"action"
value=
"n-Solucion"
>
Cerrar Incidencia sin Solucion
</button>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment