1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 15:07:44 +00:00
Files
matomo/plugins/Goals/templates/_addEditGoal.twig
dizzy be0228d25a [Vue] remove angularjs from Goals plugin (#19426)
* Remove use of angularjs from SitesManager plugin and add VueEntryContainer for more convenient embedding of vue-entry use from within other Vue components (primarily for supporting twig Template... events in Vue).

* remove use of angularjs from SegmentEditor plugin

* remove import added by phpstorm

* make sure to export comparison service instance not just class

* built vue files

* forgot to export

* built vue files

* remove angularjs use from Goals plugin

* built vue files

* fix ui test issues

* fixing some issues

* fix initial value for segment definition

* treat null, undefined and empty string segment value the same

* Update expected screenshots

* try to fix timing error in test

* remove duplicate translations

* remove use of unneeded html_attr escape

* remove use of html_attr escape

* remove unneeded use of twig html_attr escape

Co-authored-by: sgiehl <stefan@matomo.org>
2022-08-11 12:16:46 +02:00

45 خطوط
1.7 KiB
Twig

{% import 'ajaxMacros.twig' as ajax %}
{{ ajax.errorDiv() }}
<script type="text/javascript">
{% if userCanEditGoals %}
{% if onlyShowAddNewGoal is not defined %}
piwik.goals = {{ goalsJSON|raw }};
{% endif %}
{% else %}
piwik.goals = {{ goalsJSON|raw }};
{% endif %}
</script>
<div
vue-entry="Goals.ManageGoals"
user-can-edit-goals="{{ userCanEditGoals|json_encode }}"
only-show-add-new-goal="{{ onlyShowAddNewGoal|default(false)|json_encode }}"
ecommerce-enabled="{{ ecommerceEnabled|json_encode }}"
{% if userCanEditGoals %}
{% if onlyShowAddNewGoal is not defined or not onlyShowAddNewGoal %}
goals="{{ goals|json_encode }}"
{% if idGoal %}
show-goal="{{ idGoal|e('js') }}"
{% endif %}
{% else %}
show-add-goal="true"
{% endif %}
{% else %}
goals="{{ goals|json_encode }}"
{% endif %}
{% if addNewGoalIntro is defined %}add-new-goal-intro="{{ addNewGoalIntro|json_encode }}"{% endif %}
goal-trigger-type-options="{{ goalTriggerTypeOptions|json_encode }}"
goal-match-attribute-options="{{ goalMatchAttributeOptions|json_encode }}"
event-type-options="{{ eventTypeOptions|json_encode }}"
pattern-type-options="{{ patternTypeOptions|json_encode }}"
numeric-comparison-type-options="{{ numericComparisonTypeOptions|json_encode }}"
allow-multiple-options="{{ allowMultipleOptions|json_encode }}"
before-goal-list-actions-body="{{ beforeGoalListActionsBodyEventResult|default(null)|json_encode }}"
end-edit-table="{{ endEditTable|default(null)|json_encode }}"
before-goal-list-actions-head="{{ beforeGoalListActionsHead|default(null)|json_encode }}"
>
</div>