add piwik installation
This commit is contained in:
parent
90aa4ef157
commit
8c5d4f0c31
3197 changed files with 563902 additions and 0 deletions
|
|
@ -0,0 +1,61 @@
|
|||
|
||||
<tr class='{{ reportType }}'>
|
||||
<td class="first">
|
||||
{{ 'MobileMessaging_PhoneNumbers'|translate }}
|
||||
</td>
|
||||
<td>
|
||||
<div class="entityInlineHelp">
|
||||
{% if phoneNumbers|length == 0 %}
|
||||
{{ 'MobileMessaging_MobileReport_NoPhoneNumbers'|translate }}
|
||||
{% else %}
|
||||
{% for phoneNumber in phoneNumbers %}
|
||||
<label><input name='phoneNumbers' type='checkbox' id='{{ phoneNumber }}'/>{{ phoneNumber }}</label>
|
||||
<br/>
|
||||
{% endfor %}
|
||||
{{ 'MobileMessaging_MobileReport_AdditionalPhoneNumbers'|translate }}
|
||||
{% endif %}
|
||||
<a href='{{ linkTo({'module':"MobileMessaging", 'action': 'index', 'updated':null}) }}'>{{ 'MobileMessaging_MobileReport_MobileMessagingSettingsLink'|translate }}</a>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
resetReportParametersFunctions ['{{ reportType }}'] = function () {
|
||||
var reportParameters = {
|
||||
'phoneNumbers': []
|
||||
};
|
||||
updateReportParametersFunctions['{{ reportType }}'](reportParameters);
|
||||
};
|
||||
|
||||
updateReportParametersFunctions['{{ reportType }}'] = function (reportParameters) {
|
||||
|
||||
if (reportParameters == null) return;
|
||||
|
||||
$('[name=phoneNumbers]').removeProp('checked');
|
||||
$(reportParameters.phoneNumbers).each(function (index, phoneNumber) {
|
||||
$('#\\' + phoneNumber).prop('checked', 'checked');
|
||||
});
|
||||
|
||||
$(document).trigger('ScheduledReport.edit', {});
|
||||
|
||||
};
|
||||
|
||||
getReportParametersFunctions['{{ reportType }}'] = function () {
|
||||
var parameters = Object();
|
||||
var selectedPhoneNumbers = $.map(
|
||||
$('[name=phoneNumbers]').filter(function() {
|
||||
return !this.disabled && this.checked;
|
||||
}),
|
||||
function (phoneNumber) {
|
||||
return $(phoneNumber).attr('id');
|
||||
}
|
||||
);
|
||||
|
||||
// returning [''] when no phone numbers are selected avoids the "please provide a value for 'parameters'" error message
|
||||
parameters.phoneNumbers = selectedPhoneNumbers.length > 0 ? selectedPhoneNumbers : [''];
|
||||
|
||||
return parameters;
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
Loading…
Add table
Add a link
Reference in a new issue