{% extends 'clean_base.axml' %} {% from 'actions.axml' import pagination %} {% set modal_name = 'Create Subscription' %} {% macro commander() %} { isFilterable: false, idSearch: '', eventSearch: '', producerSearch: '', endpointSearch: '', descriptionSearch: '', whenFilter: '', filterResults(){ let base = `/v1/subscriptions?pagination=${this.pagination}&page=1` if(this.idSearch) base += `&id=${this.idSearch}` if(this.eventSearch) base += `&event=${this.eventSearch}` if(this.producerSearch) base += `&producer=${this.producerSearch}` if(this.endpointSearch) base += `&endpoint=${this.endpointSearch}` if(this.descriptionSearch) base += `&description=${this.descriptionSearch}` if(this.whenFilter) base += `&timeline=${this.whenFilter}` fetch(base) .then(r => r.json()) .then(data => { isFiltering = true; subscriptions = data; }).catch(err => ShowFeedback('error', 'Filter operation failed')) }, clearFilter(){ this.idSearch = ''; this.eventSearch = ''; this.producerSearch = ''; this.endpointSearch = ''; this.descriptionSearch = ''; this.whenFilter = ''; isFiltering = false; fetchAll(); }, checkDirty(){ this.isFilterable = ( this.idSearch !== '' || this.eventSearch !== '' || this.producerSearch !== '' || this.endpointSearch !== '' || this.descriptionSearch !== '' || this.whenFilter !== '' ); return this.isFilterable; } } {% endmacro %} {% block easel %}
tag
layers
bolt
link
ID Application Action Endpoint Retries Timestamp
{{ pagination() }}
{% endblock %} {% block wizard %} {% endblock %}