You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
874 B
28 lines
874 B
<?php
|
|
|
|
require_once(INCLUDE_DIR . 'class.filter.php');
|
|
|
|
class FilterAjaxAPI extends AjaxController {
|
|
|
|
function getFilterActionForm($type) {
|
|
if (!($A = FilterAction::lookupByType($type)))
|
|
Http::response(404, 'No such filter action type');
|
|
|
|
$form = $A->getConfigurationForm();
|
|
?>
|
|
<div style="position:relative">
|
|
<div class="pull-right" style="position:absolute;top:2px;right:2px;">
|
|
<a href="#" title="<?php echo __('clear'); ?>" onclick="javascript:
|
|
if (!confirm(__('You sure?')))
|
|
return false;
|
|
$(this).closest('tr').fadeOut(400, function() { $(this).hide(); });
|
|
return false;"><i class="icon-trash"></i></a>
|
|
</div>
|
|
<?php
|
|
include STAFFINC_DIR . 'templates/dynamic-form-simple.tmpl.php';
|
|
?>
|
|
</div>
|
|
<?php
|
|
}
|
|
|
|
}
|