Skip to content

Commit

Permalink
feat(tagstatistics): add button to see campaign executions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashimpens committed Oct 22, 2024
1 parent 42bc5d3 commit cc7e49a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions source/src/main/webapp/ReportingCampaignStatistics.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
<script type="text/javascript" src="dependencies/Moment-2.30.1/moment-with-locales.min.js"></script>
<script type="text/javascript" src="dependencies/Bootstrap-datetimepicker-4.17.47/bootstrap-datetimepicker.min.js"></script>
<link rel="stylesheet" href="dependencies/Bootstrap-datetimepicker-4.17.47/bootstrap-datetimepicker.min.css" />
<script type="text/javascript" src="js/transversalobject/Campaign.js"></script>
<script type="text/javascript" src="js/pages/ReportingCampaignStatistics.js"></script>
</head>
<body>
<%@ include file="include/global/header.html" %>
<div class="container-fluid center" id="page-layout">
<%@ include file="include/global/messagesArea.html"%>
<%@ include file="include/utils/modal-confirmation.html"%>
<%@ include file="include/pages/testcampaign/viewStatcampaign.html"%>
<h1 class="page-title-line" id="title">Campaign Statistics </h1>
<div class="panel panel-default">
<div class="panel-body" id="filters">
Expand Down
11 changes: 8 additions & 3 deletions source/src/main/webapp/js/pages/ReportingCampaignStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,19 +286,24 @@ function aoColumnsFunc(tableId) {
const aoColumns = [
{
"data": null,
"title": "Actions",
"orderable": false,
"searchable": false,
"width": "30px",
"width": "40px",
"render": function (data, type, obj) {
const viewDetailByCountryEnv = `<a id="viewDetailByCountryEnv"
href="ReportingCampaignStatistics.jsp?campaign=${obj.campaign}&from=${$('#frompicker').data("DateTimePicker").date()}&to=${$('#topicker').data("DateTimePicker").date()}"
target="_blank"
class="viewDetailByCountryEnv btn btn-default btn-xs margin-right5"
title="${doc.getDocLabel("page_campaignstatistics", "buttonDetailByCountryEnv")}"
type="button">
<span class="glyphicon glyphicon-stats"></span></a>`;
<span class="glyphicon glyphicon-zoom-in"></span></a>`;
const viewStatCampaign = `<button id="viewStatcampaign" onclick="viewStatEntryClick('${obj.campaign}');"
class="viewStatcampaign btn btn-default btn-xs margin-right5"
name="viewStatcampaign" title="${doc.getDocLabel("page_testcampaign", "button_taglist")}" type="button">
<span class="glyphicon glyphicon-stats"></span></button>`;

return '<div class="center btn-group">' + viewDetailByCountryEnv + '</div>';
return `<div class="center btn-group">${viewStatCampaign}${viewDetailByCountryEnv}</div>`;

}
},
Expand Down

0 comments on commit cc7e49a

Please sign in to comment.