# Path: equipments/views.py
# def register_equipment(request):
# def borrow_equipment(request):
# def is_avalible(Equipment):
# def is_borrow(Equipment):
# def is_broken(Equipment):
# def make_borrow(id_equipment,id_partner):
# def list_equipment(request):
# def take_back_equipment(request,id_equipment):
# def broke_equipment(request,id_equipment):
# def fix_equipment(request,id_equipment):


from django.conf.urls import url
from django.conf.urls import include
from equipments import views

urlpatterns = [
    url(r'^registerequipment/', views.register_equipment, name='register_equipment'),
    url(r'^borrow_equipment/', views.borrow_equipment, name='borrow_equipment'),

# Path: equipments/views.py
# def register_equipment(request):
# def borrow_equipment(request):
# def is_avalible(Equipment):
# def is_borrow(Equipment):
# def is_broken(Equipment):
# def make_borrow(id_equipment,id_partner):
# def list_equipment(request):
# def take_back_equipment(request,id_equipment):
# def broke_equipment(request,id_equipment):
# def fix_equipment(request,id_equipment):


# Path: equipments/urls.py
from django.conf.urls import url
from django.conf.urls import include
from equipments import views


urlpatterns = [
    url(r'^registerequipment/', views.register_equipment, name='register_equipment'),
    url(r'^borrow_equipment/', views.borrow_equipment, name='borrow_equipment'),

    url(r'^make_borrow/(?P<id_equipment>[0-9]+)/(?P<id_partner>[0-9]+)/', views.make_borrow, name = 'make_borrow'),