|
@@ -41,7 +41,7 @@ def test_last_client_NUnic(type):
|
|
|
return value
|
|
|
|
|
|
def switch_get_list(request):
|
|
|
- template = loader.get_template('parc_info_api_switch_get_list.html')
|
|
|
+ template = loader.get_template('gest_parc_api_switch_get_list.html')
|
|
|
|
|
|
get_search = request.GET.get('get_search', '')
|
|
|
if get_search :
|
|
@@ -67,7 +67,7 @@ def switch_edit_info(request, id):
|
|
|
if not get_search:
|
|
|
get_search = ""
|
|
|
|
|
|
- template = loader.get_template('parc_info_api_switch_edit.html')
|
|
|
+ template = loader.get_template('gest_parc_api_switch_edit.html')
|
|
|
if id == None or id == '0':
|
|
|
item = Swich()
|
|
|
item.id = 0
|
|
@@ -85,7 +85,7 @@ def switch_edit_info(request, id):
|
|
|
return HttpResponse(html)
|
|
|
|
|
|
def switch_edit_port(request, switch_id, port_id ):
|
|
|
- template = loader.get_template('parc_info_api_switch_edit_port.html')
|
|
|
+ template = loader.get_template('gest_parc_api_switch_edit_port.html')
|
|
|
if port_id == None or port_id == '0':
|
|
|
item = Port_Link()
|
|
|
item.PL_Swich = Swich.objects.get(id = switch_id)
|
|
@@ -105,7 +105,7 @@ def switch_edit_port(request, switch_id, port_id ):
|
|
|
return HttpResponse(html)
|
|
|
|
|
|
def switch_update_port(request, switch_id):
|
|
|
- template = loader.get_template('parc_info_api_switch_update.html')
|
|
|
+ template = loader.get_template('gest_parc_api_switch_update.html')
|
|
|
item = Swich.objects.get(id = switch_id)
|
|
|
|
|
|
form = Update_switch_port(instance=item)
|
|
@@ -118,7 +118,7 @@ def switch_update_port(request, switch_id):
|
|
|
return HttpResponse(html)
|
|
|
|
|
|
def switch_get_info(request, id):
|
|
|
- template = loader.get_template('parc_info_api_switch_get.html')
|
|
|
+ template = loader.get_template('gest_parc_api_switch_get.html')
|
|
|
item = Swich.objects.get(id = id)
|
|
|
item.ports = Port_Link.objects.filter(PL_Swich = item.id).order_by('PL_Port_NG')
|
|
|
|
|
@@ -129,7 +129,7 @@ def switch_get_info(request, id):
|
|
|
return HttpResponse(html)
|
|
|
|
|
|
def srv_get_list(request):
|
|
|
- template = loader.get_template('parc_info_api_srv_get_list.html')
|
|
|
+ template = loader.get_template('gest_parc_api_srv_get_list.html')
|
|
|
|
|
|
get_search = request.GET.get('get_search', '')
|
|
|
if get_search :
|
|
@@ -153,7 +153,7 @@ def srv_get_list(request):
|
|
|
return HttpResponse(html)
|
|
|
|
|
|
def srv_get_info(request, id_srv):
|
|
|
- template = loader.get_template('parc_info_api_srv_get.html')
|
|
|
+ template = loader.get_template('gest_parc_api_srv_get.html')
|
|
|
item = PIS.objects.get(id = id_srv)
|
|
|
|
|
|
html = template.render({
|
|
@@ -167,7 +167,7 @@ def srv_edit_info(request, id_srv):
|
|
|
if not get_search:
|
|
|
get_search = ""
|
|
|
|
|
|
- template = loader.get_template('parc_info_api_srv_edit.html')
|
|
|
+ template = loader.get_template('gest_parc_api_srv_edit.html')
|
|
|
if id_srv == None or id_srv == '0':
|
|
|
item = PIS()
|
|
|
item.id = 0
|
|
@@ -185,7 +185,7 @@ def srv_edit_info(request, id_srv):
|
|
|
return HttpResponse(html)
|
|
|
|
|
|
def user_get_list(request):
|
|
|
- template = loader.get_template('parc_info_api_user_get_list.html')
|
|
|
+ template = loader.get_template('gest_parc_api_user_get_list.html')
|
|
|
|
|
|
get_search = request.GET.get('get_search', '')
|
|
|
if get_search :
|
|
@@ -230,7 +230,7 @@ def user_edit_info(request, id_user):
|
|
|
if not get_search:
|
|
|
get_search = ""
|
|
|
|
|
|
- template = loader.get_template('parc_info_api_user_edit.html')
|
|
|
+ template = loader.get_template('gest_parc_api_user_edit.html')
|
|
|
if id_user == None or id_user == '0':
|
|
|
item = PIC()
|
|
|
item.id = 0
|
|
@@ -255,7 +255,7 @@ def user_edit_statut(request, id_user):
|
|
|
if not get_search:
|
|
|
get_search = ""
|
|
|
|
|
|
- template = loader.get_template('parc_info_api_user_statut.html')
|
|
|
+ template = loader.get_template('gest_parc_api_user_statut.html')
|
|
|
if id_user == None or id_user == '0':
|
|
|
item = PIC()
|
|
|
item.id = 0
|
|
@@ -273,7 +273,7 @@ def user_edit_statut(request, id_user):
|
|
|
return HttpResponse(html)
|
|
|
|
|
|
def user_get_info(request, id_user):
|
|
|
- template = loader.get_template('parc_info_api_user_get.html')
|
|
|
+ template = loader.get_template('gest_parc_api_user_get.html')
|
|
|
item = PIC.objects.get(id = id_user)
|
|
|
item.accessoir = Accessory_Link.objects.filter(pic = item)
|
|
|
|