Added dedicated link in backend services page.

This commit is contained in:
alextselegidis 2016-10-10 17:20:23 +02:00
parent ea55bc54f5
commit 9b5428a91d
3 changed files with 15 additions and 1 deletions

View file

@ -555,6 +555,11 @@ body .form-horizontal .controls {
border: none; border: none;
} }
#services-page .record-details h3 a {
font-size: 24px;
margin-left: 10px;
}
/* BACKEND USERS PAGE /* BACKEND USERS PAGE
-------------------------------------------------------------------- */ -------------------------------------------------------------------- */
#users-page h2 { #users-page h2 {

View file

@ -69,6 +69,15 @@
} }
}); });
// Add dedicated provider link.
var dedicatedUrl = GlobalVariables.baseUrl + '/index.php?service=' + encodeURIComponent(service.id);
var linkHtml = '<a href="' + dedicatedUrl + '"><span class="glyphicon glyphicon-link"></span></a>';
$('#services .record-details h3')
.find('a')
.remove()
.end()
.append(linkHtml);
instance.display(service); instance.display(service);
$('#filter-services .selected').removeClass('selected'); $('#filter-services .selected').removeClass('selected');
$(this).addClass('selected'); $(this).addClass('selected');

View file

@ -393,7 +393,7 @@
$('#provider-notifications').removeClass('active'); $('#provider-notifications').removeClass('active');
} }
// Add dedicated provider link. // Add dedicated provider link.
var dedicatedUrl = GlobalVariables.baseUrl + '/index.php?provider=' + encodeURIComponent(provider.id); var dedicatedUrl = GlobalVariables.baseUrl + '/index.php?provider=' + encodeURIComponent(provider.id);
var linkHtml = '<a href="' + dedicatedUrl + '"><span class="glyphicon glyphicon-link"></span></a>'; var linkHtml = '<a href="' + dedicatedUrl + '"><span class="glyphicon glyphicon-link"></span></a>';
$('#providers .details-view h3') $('#providers .details-view h3')