From 9b5428a91d78b7b1567ebdf848576893b1ea748c Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Mon, 10 Oct 2016 17:20:23 +0200 Subject: [PATCH] Added dedicated link in backend services page. --- src/assets/css/backend.css | 5 +++++ src/assets/js/backend_services_helper.js | 9 +++++++++ src/assets/js/backend_users_providers.js | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/assets/css/backend.css b/src/assets/css/backend.css index eba8cb4f..2e2f80b9 100644 --- a/src/assets/css/backend.css +++ b/src/assets/css/backend.css @@ -555,6 +555,11 @@ body .form-horizontal .controls { border: none; } +#services-page .record-details h3 a { + font-size: 24px; + margin-left: 10px; +} + /* BACKEND USERS PAGE -------------------------------------------------------------------- */ #users-page h2 { diff --git a/src/assets/js/backend_services_helper.js b/src/assets/js/backend_services_helper.js index 53a47bbb..195e7a4b 100644 --- a/src/assets/js/backend_services_helper.js +++ b/src/assets/js/backend_services_helper.js @@ -69,6 +69,15 @@ } }); + // Add dedicated provider link. + var dedicatedUrl = GlobalVariables.baseUrl + '/index.php?service=' + encodeURIComponent(service.id); + var linkHtml = ''; + $('#services .record-details h3') + .find('a') + .remove() + .end() + .append(linkHtml); + instance.display(service); $('#filter-services .selected').removeClass('selected'); $(this).addClass('selected'); diff --git a/src/assets/js/backend_users_providers.js b/src/assets/js/backend_users_providers.js index 6dd7bd3a..9d7af570 100644 --- a/src/assets/js/backend_users_providers.js +++ b/src/assets/js/backend_users_providers.js @@ -393,7 +393,7 @@ $('#provider-notifications').removeClass('active'); } - // Add dedicated provider link. + // Add dedicated provider link. var dedicatedUrl = GlobalVariables.baseUrl + '/index.php?provider=' + encodeURIComponent(provider.id); var linkHtml = ''; $('#providers .details-view h3')