{extends "layout_view.tpl"} {block name="title"} {title}{$title}{/title} {/block} {block name="content"} {remarksbox title="{tr}Changes will not be saved{/tr}"} {tr}Your changes to conditions are not saved until you save the goal.{/tr} {/remarksbox}
{jq} $('.condition-form select[name=metric]').change(function () { $('.condition-form .mb-3.argument').hide(); $.each(this.selectedOptions, function (key, item) { $.each($(item).data('arguments'), function (key, arg) { $('.condition-form .mb-3.argument.' + arg).show(); }); }) }).change(); {/jq} {/block}