Commit 1d70dbce authored by Kroustouris Stauros's avatar Kroustouris Stauros

management pages

parent 7aaa7741
......@@ -69,6 +69,9 @@
<li class="{% block api %}{% endblock %}"><a href="{% url api %}">{% trans "Closest point api" %}</a>
</ul>
</li>
{% if request.user.is_authenticated %}
<li><a href="{% url logout %}">Logout</a></li>
{% endif %}
</ul>
</div><!--/.nav-collapse -->
</div>
......@@ -85,8 +88,8 @@
</div>
{% include "partial/footer.html" %}
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{% static 'js/script.js' %}"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
{% block extrajs %}{% endblock %}
</body>
</html>
......@@ -14,7 +14,9 @@
{% block homeactive %}{% endblock %}
{% block catactive %}class="active"{% endblock %}
{% block subcontent %} <h4>eduroam CAT enroll</h4>
{% block management_content %}
<h4>eduroam CAT enroll</h4>
{% if messages %}
<table class="table table-condensed">
{% for message in messages %}
......
......@@ -95,7 +95,7 @@ $("#delcontactSubmit").click(function(){
{% block homeactive %}{% endblock %}
{% block contactsactive %}class="active"{% endblock %}
{% block subcontent %}
{% block management_content %}
<h4>{% trans "Contacts" %}</h4>
......
......@@ -13,7 +13,7 @@
{% block homeactive %}{% endblock %}
{% block contactsactive %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}{{form.instance.name}} ({% trans "edit" %}){% else %}{% trans "Add Contact" %}{% endif %}</h4>
{% block management_content %} <h4>{% if edit %}{{form.instance.name}} ({% trans "edit" %}){% else %}{% trans "Add Contact" %}{% endif %}</h4>
<hr>
<form method="POST" class="form-horizontal">
{% csrf_token %}
......
{% extends "edumanage/welcome.html"%}
{% load tolocale %}
{% load i18n %}
{% block extrahead %}
<style type="text/css">
.control-label{
padding-top: 0px !important;
width: auto !important;
}
</style>
{% endblock %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Institution" %}</li>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block instactive %}class="active"{% endblock %}
{% block subcontent %}
{% block management_content %}
<h4>{% trans "Institution" %}</h4>
<hr>
{% if messages %}
<table class="table table-condensed">
{% for message in messages %}
<tr {% if message.tags %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr>
{% endfor %}
</table>
{% endif %}
{% load tolocale %}
{% if institution %}
{% if institution.institutiondetails %}
<div class="form-horizontal">
<table class="table table-condensed">
{% for message in messages %}
<tr {% if message.tags %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr>
{% endfor %}
</table>
{% endif %}
{% if institution %}
{% if institution.institutiondetails %}
<div class="row">
<div class="col-md-12">
<div class="col-md-2">
<label for="id_ertype">{% trans "Name" %}</label>
<div>
{% tolocale institution LANGUAGE_CODE %}
</div>
</div>
<div class="col-md-2">
<label class="" for="id_ertype">{% trans "Type" %}</label>
<div class="">
{{ institution.get_ertype_display }}
</div>
</div>
<div class="col-md-2">
<label class="" for="id_address_street">{% trans "Address Street" %}</label>
<div class="">
{{ institution.institutiondetails.address_street }}
</div>
</div>
<div class="col-md-2">
<label class="" for="id_address_city">{% trans "Address City" %}</label>
<div class="">
{{ institution.institutiondetails.address_city }}
</div>
</div>
<div class="col-md-2">
<label class="" for="id_contact">{% trans "Contacts" %}</label>
<div class="">
{% for contact in institution.institutiondetails.contact.all %}
{{contact.name}} (<a href="mailto:{{contact.email}}">{{contact.email}}</a> - tel:{{contact.phone}}){% if not forloop.last %}<br>{% endif %}
{% endfor %}
</div>
</div>
<div class="col-md-2 ">
<label class="" for="id_urls">{% trans "Urls" %}</label>
<div class="control-group">
<label class="control-label" for="id_ertype">{% trans "Name" %}</label>
<div class="controls">
{% tolocale institution LANGUAGE_CODE %}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_ertype">{% trans "Type" %}</label>
<div class="controls">
{{ institution.get_ertype_display }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_address_street">{% trans "Address Street" %}</label>
<div class="controls">
{{ institution.institutiondetails.address_street }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_address_city">{% trans "Address City" %}</label>
<div class="controls">
{{ institution.institutiondetails.address_city }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_contact">{% trans "Contacts" %}</label>
<div class="controls">
{% for contact in institution.institutiondetails.contact.all %}
{{contact.name}} (<a href="mailto:{{contact.email}}">{{contact.email}}</a> - tel:{{contact.phone}}){% if not forloop.last %}<br>{% endif %}
{% endfor %}
</div>
</div>
<div class="control-group ">
<label class="control-label" for="id_urls">{% trans "Urls" %}</label>
<div class="controls">
{% for url in institution.institutiondetails.url.all %}
<a href="{{url.url}}" target="_blank">{{url.url}}</a> - {{url.get_urltype_display}} ({{url.get_lang_display}}){% if not forloop.last %}<br>{% endif %}
{% endfor %}
</div>
</div>
{% if institution.ertype == 2 or institution.ertype == 3 %}
<div class="control-group">
<label class="control-label" for="id_oper_name">{% trans "Domain Name" %}</label>
<div class="controls">
{{ institution.institutiondetails.oper_name }}
</div>
</div>
{% endif %}
{% if institution.ertype == 1 or institution.ertype == 3 %}
<div class="control-group">
<label class="control-label" for="id_number_user">{% trans "Number User" %}</label>
<div class="controls">
{{ institution.institutiondetails.number_user }}
</div>
</div>
{% endif %}
<div class="control-group">
<label class="control-label" for="id_number_id">{% trans "Number of IDs" %}</label>
<div class="controls">
{{ institution.institutiondetails.number_id }}
</div>
</div>
<div class="control-group">
<div class="controls">
<a class="btn btn-primary" href="{% url edit-institution institution.pk %}">{% trans "Edit" %}</a>
</div>
</div>
</div>
{% else %}
<div>{% trans "No institution details defined yet for" %} {% tolocale institution LANGUAGE_CODE%} <a href="{% url edit-institution institution.pk %}" class="btn btn-small btn-primary">{% trans "edit" %}</a></div>
{% endif %}
{% else %}
<p>{% trans "No institution defined" %}</p>
{% endif %}
{% endblock %}
<div class="">
{% for url in institution.institutiondetails.url.all %}
<a href="{{url.url}}" target="_blank">{{url.url}}</a> - {{url.get_urltype_display}} ({{url.get_lang_display}}){% if not forloop.last %}<br>{% endif %}
{% endfor %}
</div>
</div>
{% if institution.ertype == 2 or institution.ertype == 3 %}
<div class="col-md-2">
<label class="" for="id_oper_name">{% trans "Domain Name" %}</label>
<div class="">
{{ institution.institutiondetails.oper_name }}
</div>
</div>
{% endif %}
{% if institution.ertype == 1 or institution.ertype == 3 %}
<div class="col-md-2">
<label class="" for="id_number_user">{% trans "Number User" %}</label>
<div class="">
{{ institution.institutiondetails.number_user }}
</div>
</div>
{% endif %}
<div class="col-md-2">
<label class="" for="id_number_id">{% trans "Number of IDs" %}</label>
<div class="">
{{ institution.institutiondetails.number_id }}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" style="margin-top: 20px;">
<div class="col-md-12">
<a class="btn btn-primary" href="{% url edit-institution institution.pk %}">{% trans "Edit" %}</a>
</div>
</div>
</div>
{% else %}
<div>{% trans "No institution details defined yet for" %} {% tolocale institution LANGUAGE_CODE%} <a href="{% url edit-institution institution.pk %}" class="btn btn-small btn-primary">{% trans "edit" %}</a></div>
{% endif %}
{% else %}
<p>{% trans "No institution defined" %}</p>
{% endif %}
{% endblock %}
......@@ -17,7 +17,8 @@
{% block homeactive %}{% endblock %}
{% block instrealmmon %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}Monitored realm: {{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm" %}{% endif %}</h4>
{% block management_content %}
<h4>{% if edit %}Monitored realm: {{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm" %}{% endif %}</h4>
<hr>
<form method="POST" class="form-horizontal">
{% csrf_token %}
......
......@@ -128,7 +128,7 @@ $("#delmonlocauthparSubmit").click(function(){
{% block homeactive %}{% endblock %}
{% block instrealmmon %}class="active"{% endblock %}
{% block subcontent %}
{% block management_content %}
<h4>{% trans "Monitored Realms" %}</h4>
<hr>
......
......@@ -24,7 +24,8 @@ $(document).ready(function() {
{% block homeactive %}{% endblock %}
{% block instrealmmon %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}{{realm.realm}} parameters ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm Parameters" %} ({{realm.realm}}){% endif %}</h4>
{% block management_content %}
<h4>{% if edit %}{{realm.realm}} parameters ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm Parameters" %} ({{realm.realm}}){% endif %}</h4>
<hr>
<form method="POST" class="form-horizontal">
{% csrf_token %}
......
......@@ -92,7 +92,7 @@ $("#delrealmSubmit").click(function(){
{% block homeactive %}{% endblock %}
{% block realmsactive %}class="active"{% endblock %}
{% block subcontent %}
{% block management_content %}
<h4>Realms</h4>
......
......@@ -15,7 +15,9 @@
{% block homeactive %}{% endblock %}
{% block realmsactive %}class="active"{% endblock %}
{% block subcontent %}<h4>{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Realm" %}{% endif %}</h4>
{% block management_content %}
<h4>{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Realm" %}{% endif %}</h4>
<hr>
{% if messages %}
<table class="table table-condensed">
......
......@@ -15,7 +15,9 @@
{% endblock %}
{% block homeactive %}{% endblock %}
{% block serversactive %}class="active"{% endblock %}
{% block subcontent %} <h4>{{server.get_name}}</h4>
{% block management_content %}
<h4>{{server.get_name}}</h4>
<hr>
<div class="form-horizontal">
{% csrf_token %}
......@@ -90,4 +92,4 @@
</div>
</div>
{% endblock %}
......@@ -99,7 +99,7 @@ $("#delserverSubmit").click(function(){
{% block homeactive %}{% endblock %}
{% block serversactive %}class="active"{% endblock %}
{% block subcontent %}
{% block management_content %}
<h4>{% trans "Servers" %}</h4>
......
......@@ -21,7 +21,9 @@ $(document).ready(function() {
{% endblock %}
{% block homeactive %}{% endblock %}
{% block serversactive %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}{{form.instance.get_name}} ({% trans "edit" %}){% else %}{% trans "Add Server" %}{% endif %}</h4>
{% block management_content %}
<h4>{% if edit %}{{form.instance.get_name}} ({% trans "edit" %}){% else %}{% trans "Add Server" %}{% endif %}</h4>
<hr>
<form method="POST" class="form-horizontal">
{% csrf_token %}
......
......@@ -94,7 +94,8 @@
{% block homeactive %}{% endblock %}
{% block servicesactive %}class="active"{% endblock %}
{% block subcontent %}
{% block management_content %}
<h4>{% tolocale service LANGUAGE_CODE %}</h4>
<hr>
......
This diff is collapsed.
......@@ -331,7 +331,7 @@
{% block homeactive %}{% endblock %}
{% block servicesactive %}class="active"{% endblock %}
{% block subcontent %}
{% block management_content %}
<h4>{% if edit %}{% tolocale form.instance LANGUAGE_CODE %} ({% trans "edit" %}){% else %}{% trans "Add Location" %}{% endif %}</h4>
<hr>
......
This diff is collapsed.
{% extends "base.html" %}
{% load i18n %}
{% block topmenu %}
<ul class="nav">
<li>
<a href="{% url index %}">{% trans "Home" %}</a>
</li>
<li>
<a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a>
</li>
{% include "front/management_dropdown.html" %}
</ul>
{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
</div><!--/span-->
<div class="span10">
<div class="row-fluid">
<!--/span-->
<div class="span10">
<h4>Select your institution</h4>
<hr>
<div class="span1"></div>
<div class="span7">
Excellent! You are a click away from getting into your institution eduroam management.
Select your institution to proceed. Our administrators will activate your account and notify you via e-mail.
{% block subcontent %}
<h1>Select your institution</h1>
<hr>
<div class="row">
Excellent! You are a click away from getting into your institution eduroam management.
Select your institution to proceed. Our administrators will activate your account and notify you via e-mail.
Please do not continue if you are not the eduroam administrator for this institution.
Any inappropriate requests will be reported directly to the institution, along with your name and email.
</div>
<div class="span12"></div>
<div class="span12">
<form method="POST" class="form-horizontal" action="{% url selectinst %}">
{% csrf_token %}
{% if form.non_field_errors %}
<p class="error">
{{ form.non_field_errors}}
</p>
{% endif %}
<div style="display: none">
{{form.user}}
Please do not continue if you are not the eduroam administrator for this institution.
Any inappropriate requests will be reported directly to the institution, along with your name and email.
</div>
{% if nomail %}
<div class="control-group {% if form.email.errors %} error {% endif %}">
<label class="control-label" for="id_email"><b>{% trans "Email" %}</b></label>
<div class="controls">
{{ form.email }}
{% if form.email.errors %} <span class="help-inline"> {{ form.email.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.institution.help_text }}</span>
<form method="POST" class="form-horizontal" action="{% url selectinst %}">
{% csrf_token %}
{% if form.non_field_errors %}
<p class="error">
{{ form.non_field_errors}}
</p>
{% endif %}
<div style="display: none">
{{ form.user }}
</div>
</div>
{% else %}
<div style="display: none">
{{form.email}}
</div>
{% endif %}
<div class="control-group {% if form.institution.errors %} error {% endif %}">
<label class="control-label" for="id_institution"><b>{% trans "Institution" %}</b></label>
<div class="controls">
{{ form.institution }}
{% if form.institution.errors %} <span class="help-inline"> {{ form.institution.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.institution.help_text }}</span>
{% if nomail %}
<div class="control-group {% if form.email.errors %} error {% endif %}">
<label class="control-label" for="id_email"><b>{% trans "Email" %}</b></label>
<div class="controls">
{{ form.email }}
{% if form.email.errors %} <span class="help-inline"> {{ form.email.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.institution.help_text }}</span>
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" id="applybutton" value="Apply" class="btn btn-primary">
{% trans "Apply" %}</button>
{% else %}
<div style="display: none">
{{form.email}}
</div>
{% endif %}
<div class="control-group {% if form.institution.errors %} error {% endif %}">
<label class="control-label" for="id_institution"><b>{% trans "Institution" %}</b></label>
<div class="controls">
{{ form.institution }}
{% if form.institution.errors %} <span class="help-inline"> {{ form.institution.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.institution.help_text }}</span>
</div>
</div>
</div>
</form>
</div>
</div><!--/span-->
<!--/span-->
</div><!--/row-->
</div><!--/span-->
</div><!--/.fluid-container-->
{% endblock %}
<div class="control-group">
<div class="controls">
<button type="submit" id="applybutton" value="Apply" class="btn btn-primary">
{% trans "Apply" %}</button>
</div>
</div>
</form>
{% block subcontent %}
{% endblock %}
{% extends "base.html" %}
{% load i18n %}
{% block topmenu %}
<ul class="nav">
<li>
<a href="{% url index %}">{% trans "Home" %}</a>
</li>
<li>
<a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a>
</li>
{% include "front/management_dropdown.html" %}
</ul>
{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
</div><!--/span-->
<div class="span10">
<div class="row-fluid">
<!--/span-->
<h3>{% if status %}Status{% else %}{% if error %}Error{% endif%}{% endif %}</h3>
<hr>
{% block subcontent %}
<div class="span10 alert {% if status%}alert-success{% else %}{% if error %}alert-error{% endif %}{% endif %}">{% autoescape off %}{{error}}{{status}}{% endautoescape %}</div>
{% endblock %}
<!--/span-->
</div><!--/row-->
</div><!--/span-->
</div><!--/span-->
</div><!--/.fluid-container-->
{% endblock %}
\ No newline at end of file
{% block subcontent %}
<h1>{% if status %}Status{% else %}{% if error %}Error{% endif%}{% endif %}</h1>
<hr>
<div class="span12 alert {% if status%}alert-success{% else %}{% if error %}alert-error{% endif %}{% endif %}">
{% autoescape off %}{{error}}{{status}}{% endautoescape %}
</div>
{% endblock %}
......@@ -22,14 +22,14 @@ urlpatterns = patterns(
#url(r'^radius_serv_data', "servdata", name="servdata"),
#url(r'^admin_mail_list', "adminlist", name="adminlist"),
url(r'^manage/?$', 'manage', name="manage"),
url(r'^manage/login/?$', 'manage_login_front', name="manage_login_front"),
url(r'^manage/selectinst/?$', 'selectinst', name="selectinst"),
url(r'^manage/$', 'manage', name="manage"),
url(r'^manage/login/$', 'manage_login_front', name="manage_login_front"),
url(r'^manage/selectinst/$', 'selectinst', name="selectinst"),
url(r'^manage/institutions/?$', 'institutions', name="institutions"),
url(r'^manage/institution/edit/(?P<institution_pk>\d+)?$', 'add_institution_details', name="edit-institution"),
url(r'^manage/institutions/$', 'institutions', name="institutions"),
url(r'^manage/institution/edit/(?P<institution_pk>\d+)/$', 'add_institution_details', name="edit-institution"),
url(r'^manage/services/(?P<service_pk>\d+)?$', 'services', name="services"),
url(r'^manage/services/del/?$', 'del_service', name="del-service"),
url(r'^manage/services/del/$', 'del_service', name="del-service"),
url(r'^manage/services/edit/(?P<service_pk>\d+)?$', 'add_services', name="edit-services"),
url(r'^manage/services/points/?$', 'get_service_points', name="get-service-points"),
url(r'^manage/servers/(?P<server_pk>\d+)?$', 'servers', name="servers"),
......@@ -43,7 +43,7 @@ urlpatterns = patterns(
url(r'^manage/contacts/del/?$', 'del_contact', name="del-contact"),
url(r'^manage/adduser/?$', 'adduser', name="adduser"),
url(r'^manage/instrealmsmon/?$', 'instrealmmon', name="instrealmmon"),
url(r'^manage/instrealmsmon/edit/(?P<instrealmmon_pk>\d+)?$', 'add_instrealmmon', name="edit-instrealmmon"),
url(r'^manage/instrealmsmon/edit/(?P<instrealmmon_pk>\d+)/$', 'add_instrealmmon', name="edit-instrealmmon"),
url(r'^manage/instrealmsmon/del/?$', 'del_instrealmmon', name="del-instrealmmon"),
url(r'^manage/monlocauthpar/edit/(?P<instrealmmon_pk>\d+)/(?P<monlocauthpar_pk>\d+)?$', 'add_monlocauthpar', name="edit-monlocauthpar"),
url(r'^manage/monlocauthpar/del/?$', 'del_monlocauthpar', name="del-monlocauthpar"),
......
......@@ -14,7 +14,7 @@ footer {
height: 60px;
background: #eee;
text-align: center;
padding: 20px;
padding: 8px;
}
......@@ -76,3 +76,9 @@ footer {
right: 0;
z-index: 10000;
}
.sidebar-nav .active {
background: #eee;
}
var lat;
var lng;
var zoomLevel = 8;
var latlng = new google.maps.LatLng(lat,lng);
var map = '';
var bounds = '';
var image = '';
var infoWindow;
var pinImg;
var styles;
var servicesUrl;
var servicesEditUrl;
function initialize() {
image = new google.maps.MarkerImage(pinImg,
// This marker is 29 pixels wide by 40 pixels tall.
new google.maps.Size(29, 40),
// The origin for this image is 0,0.
new google.maps.Point(0,0),
// The anchor for this image is the base of the flagpole at 18,42.
new google.maps.Point(14, 40)
);
var styleArray = [
{
featureType: "all",
stylers: [
{ saturation: -60 },
{gamma: 1.00 }
]
},{
featureType: "poi.business",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
},
{ "featureType": "transit.line", "elementType": "geometry", "stylers": [ { "visibility": "off" } ] },
{ "featureType": "poi", "elementType": "all", "stylers": [ { "visibility": "off" } ] },
{'featureType': "administrative.country",
'elementType': "labels",
'stylers': [
{ 'visibility': "off" }
]}
];
var mapOptions = {
center : latlng,
zoom : zoomLevel,
mapTypeId : google.maps.MapTypeId.ROADMAP,
styles: styleArray,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.DEFAULT
},
navigationControl: true,
mapTypeControl: false,
};
map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
bounds = new google.maps.LatLngBounds();
infoWindow = new google.maps.InfoWindow();
}
function placeMarkers(){
var markers = new Array();
$.get(servicesUrl, function(data){
$.each(data, function(index, jsonMarker) {
var marker = createMarker(jsonMarker);
if (marker){
bounds.extend(marker.position);
markers.push(marker);
google.maps.event.addListener(marker, 'click', function() {
infoWindow.setContent( "<div><h4>"+jsonMarker.name+"</h4>"+
"<div class='tabbable'>"+
"<ul class='nav nav-tabs'>"+
"<li class='active'><a href='#tab1' data-toggle='tab'>{% trans 'Info' %}</a></li>"+
"<li><a href='#tab2' data-toggle='tab'>{% trans 'More...' %}</a></li>"+
"</ul>"+
"<div class='tab-content'>"+
"<div class='tab-pane active' id='tab1'>"+
"<dl class='dl-horizontal'>"+
"<dt>Name</dt><dd>"+jsonMarker.name+"&nbsp;</dd>"+
"<dt>Address</dt><dd>"+jsonMarker.address+"&nbsp;</dd>"+
"<dt>Encryption</dt><dd>"+jsonMarker.enc+"&nbsp;</dd>"+
"<dt>SSID</dt><dd>"+jsonMarker.SSID+"&nbsp;</dd>"+
"<dt>Number of APs</dt><dd>"+jsonMarker.AP_no+"&nbsp;</dd></dl>"+
"</div>"+
"<div class='tab-pane' id='tab2'>"+
"<dl class='dl-horizontal'>"+
"<dt>Port Restrict</dt><dd>"+jsonMarker.port_restrict+"&nbsp;</dd>"+
"<dt>transp_proxy</dt><dd>"+jsonMarker.transp_proxy+"&nbsp;</dd>"+
"<dt>IPv6</dt><dd>"+jsonMarker.IPv6+"&nbsp;</dd>"+
"<dt>NAT</dt><dd>"+jsonMarker.NAT+"&nbsp;</dd>"+
"<dt>Wired</dt><dd>"+jsonMarker.wired+"&nbsp;</dd></dl>"+
"</div>"+
"</div>"+
"</div>"+
"<div style='text-align:right;'><a href = '" + servicesEditUrl + jsonMarker.key + "' class='btn btn-primary'>Edit</a></div>"+
"</div>");
infoWindow.open(map,marker);
});
}
});
var mcOptions = {gridSize: 50, maxZoom: 15, styles: styles};
var markerCluster = new MarkerClusterer(map, markers, mcOptions);
map.fitBounds(bounds)
});
}
function createMarker(markerObj){
var title = markerObj.name;
var latLng = new google.maps.LatLng(markerObj.lat, markerObj.lng);
var marker = new google.maps.Marker({
'position' : latLng,
'map' : map,
'title': title,
'icon': image,
});
return marker;
}