Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #17 from superproyectos/revert-15-features/package…
Browse files Browse the repository at this point in the history
…_form

Revert "Agregado formulario de registro de paquete y su URL."
  • Loading branch information
superproyectos authored Dec 6, 2018
2 parents 38474e6 + bed1761 commit 5d72ed3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 148 deletions.
65 changes: 0 additions & 65 deletions pages/forms/package_details.html

This file was deleted.

3 changes: 1 addition & 2 deletions pages/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from django.urls import path
from .views import signup, index, login, add_package
from .views import signup, index, login


urlpatterns = [
path('signup/', signup, name = "signup"),
path('login/', login, name = "login"),
path('', index, name="index"),
path('add_package/', add_package, name="add_package"),
]
7 changes: 0 additions & 7 deletions pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,3 @@ def index(request):
else:
# home
return render_to_response("home/index.html")

def add_package(request):
if not isinstance(request.user, AnonymousUser):
# already logged
return render_to_response('forms/package_details.html')
else:
return render_to_response("forms/login.html")
74 changes: 0 additions & 74 deletions resources/css/add-package.css

This file was deleted.

0 comments on commit 5d72ed3

Please sign in to comment.