Skip to content

Commit

Permalink
Merge pull request #44 from didita91/Diana
Browse files Browse the repository at this point in the history
Diana
  • Loading branch information
didita91 committed Apr 11, 2015
2 parents 1b37a6a + 32d787d commit c8d2f69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Proyecto/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,10 @@ def eliminar_miembro_proyecto(request, proyecto_id, user_id):


@login_required
def admin_flujos(request, proyecto_id):
def admin_flujos(request):
"""Administracion de flujos para el modulo de desarrollo."""
user = User.objects.get(username=request.user.username)
proyecto = get_object_or_404(Proyecto, id=proyecto_id)
permisos = get_permisos_sistema(user)
print proyecto
print user
print permisos
# permisos_ant = []
Expand All @@ -399,7 +397,7 @@ def admin_flujos(request, proyecto_id):
# permisos_ant = get_permisos_proyecto_ant(user, proyecto, Fase.objects.get(pk=1)) + get_permisos_proyecto_ant(user, proyecto, Fase.objects.get(pk=2))
# print permisos_ant
# linea = LineaBase.objects.filter(proyectos=proyecto, fase=3)
return render_to_response("flujo/admin_flujo.html", {'proyecto':proyecto,
return render_to_response("flujo/admin_flujo.html", {
'user':user,
# 'fin':linea,
'ver_items': 'Ver items',
Expand Down
2 changes: 1 addition & 1 deletion templates/main_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h3 class="text-danger"><strong> ADMINISTRACIÓN DEL SISTEMA </strong></h3>

{% if proyectos %}
<a type="button" class="btn btn-default btn-lg btn-block" onClick ="location.href='/proyectos/'"><strong>P R O Y E C T O S</strong></a>
{% endif %}<br>
{% endif %}

{% if flujos %}
<a type="button" class="btn btn-default btn-lg btn-block" onClick ="location.href='/flujos/'"><strong>F L U J O S</strong></a>
Expand Down

0 comments on commit c8d2f69

Please sign in to comment.