Remove all deprecated use_buefy
logic
also remove some static files no longer used, etc.
This commit is contained in:
parent
01e5eee981
commit
9faaea881d
112 changed files with 2079 additions and 7039 deletions
|
@ -1,150 +1,66 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/master/index.mako" />
|
||||
|
||||
<%def name="extra_javascript()">
|
||||
${parent.extra_javascript()}
|
||||
% if not use_buefy:
|
||||
% if master.results_executable and master.has_perm('execute_multiple'):
|
||||
<script type="text/javascript">
|
||||
|
||||
var has_execution_options = ${'true' if master.has_execution_options(batch) else 'false'};
|
||||
var dialog_opened = false;
|
||||
|
||||
$(function() {
|
||||
|
||||
$('#refresh-results-button').click(function() {
|
||||
var count = $('.grid-wrapper').gridwrapper('results_count');
|
||||
if (!count) {
|
||||
alert("There are no batch results to refresh.");
|
||||
return;
|
||||
}
|
||||
var form = $('form[name="refresh-results"]');
|
||||
$(this).button('option', 'label', "Refreshing, please wait...").button('disable');
|
||||
form.submit();
|
||||
});
|
||||
|
||||
$('#execute-results-button').click(function() {
|
||||
var count = $('.grid-wrapper').gridwrapper('results_count');
|
||||
if (!count) {
|
||||
alert("There are no batch results to execute.");
|
||||
return;
|
||||
}
|
||||
var form = $('form[name="execute-results"]');
|
||||
if (has_execution_options) {
|
||||
$('#execution-options-dialog').dialog({
|
||||
title: "Execution Options",
|
||||
width: 550,
|
||||
height: 300,
|
||||
modal: true,
|
||||
buttons: [
|
||||
{
|
||||
text: "Execute",
|
||||
click: function(event) {
|
||||
dialog_button(event).button('option', 'label', "Executing, please wait...").button('disable');
|
||||
form.submit();
|
||||
}
|
||||
},
|
||||
{
|
||||
text: "Cancel",
|
||||
click: function() {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
}
|
||||
],
|
||||
open: function() {
|
||||
if (! dialog_opened) {
|
||||
$('#execution-options-dialog select[auto-enhance="true"]').selectmenu();
|
||||
$('#execution-options-dialog select[auto-enhance="true"]').on('selectmenuopen', function(event, ui) {
|
||||
show_all_options($(this));
|
||||
});
|
||||
dialog_opened = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$(this).button('option', 'label', "Executing, please wait...").button('disable');
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
% endif
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
<%def name="grid_tools()">
|
||||
${parent.grid_tools()}
|
||||
|
||||
## Refresh Results
|
||||
% if master.results_refreshable and master.has_perm('refresh'):
|
||||
% if use_buefy:
|
||||
<b-button type="is-primary"
|
||||
:disabled="refreshResultsButtonDisabled"
|
||||
icon-pack="fas"
|
||||
icon-left="fas fa-redo"
|
||||
@click="refreshResults()">
|
||||
{{ refreshResultsButtonText }}
|
||||
</b-button>
|
||||
${h.form(url('{}.refresh_results'.format(route_prefix)), ref='refreshResultsForm')}
|
||||
${h.csrf_token(request)}
|
||||
${h.end_form()}
|
||||
% else:
|
||||
<button type="button" id="refresh-results-button">
|
||||
Refresh Results
|
||||
</button>
|
||||
% endif
|
||||
<b-button type="is-primary"
|
||||
:disabled="refreshResultsButtonDisabled"
|
||||
icon-pack="fas"
|
||||
icon-left="fas fa-redo"
|
||||
@click="refreshResults()">
|
||||
{{ refreshResultsButtonText }}
|
||||
</b-button>
|
||||
${h.form(url('{}.refresh_results'.format(route_prefix)), ref='refreshResultsForm')}
|
||||
${h.csrf_token(request)}
|
||||
${h.end_form()}
|
||||
% endif
|
||||
|
||||
## Execute Results
|
||||
% if master.results_executable and master.has_perm('execute_multiple'):
|
||||
% if use_buefy:
|
||||
<b-button type="is-primary"
|
||||
@click="executeResults()"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
:disabled="!total">
|
||||
Execute Results
|
||||
</b-button>
|
||||
<b-button type="is-primary"
|
||||
@click="executeResults()"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
:disabled="!total">
|
||||
Execute Results
|
||||
</b-button>
|
||||
|
||||
<b-modal has-modal-card
|
||||
:active.sync="showExecutionOptions">
|
||||
<div class="modal-card">
|
||||
<b-modal has-modal-card
|
||||
:active.sync="showExecutionOptions">
|
||||
<div class="modal-card">
|
||||
|
||||
<header class="modal-card-head">
|
||||
<p class="modal-card-title">Execution Options</p>
|
||||
</header>
|
||||
|
||||
<section class="modal-card-body">
|
||||
<p>
|
||||
Please be advised, you are about to execute {{ total }} batches!
|
||||
</p>
|
||||
<br />
|
||||
<div class="form-wrapper">
|
||||
<div class="form">
|
||||
<${execute_form.component} ref="executeResultsForm"></${execute_form.component}>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer class="modal-card-foot">
|
||||
<b-button @click="showExecutionOptions = false">
|
||||
Cancel
|
||||
</b-button>
|
||||
<once-button type="is-primary"
|
||||
@click="submitExecuteResults()"
|
||||
icon-left="arrow-circle-right"
|
||||
:text="'Execute ' + total + ' Batches'">
|
||||
</once-button>
|
||||
</footer>
|
||||
<header class="modal-card-head">
|
||||
<p class="modal-card-title">Execution Options</p>
|
||||
</header>
|
||||
|
||||
<section class="modal-card-body">
|
||||
<p>
|
||||
Please be advised, you are about to execute {{ total }} batches!
|
||||
</p>
|
||||
<br />
|
||||
<div class="form-wrapper">
|
||||
<div class="form">
|
||||
<${execute_form.component} ref="executeResultsForm"></${execute_form.component}>
|
||||
</div>
|
||||
</div>
|
||||
</b-modal>
|
||||
</section>
|
||||
|
||||
% else:
|
||||
<button type="button" id="execute-results-button">Execute Results</button>
|
||||
% endif
|
||||
<footer class="modal-card-foot">
|
||||
<b-button @click="showExecutionOptions = false">
|
||||
Cancel
|
||||
</b-button>
|
||||
<once-button type="is-primary"
|
||||
@click="submitExecuteResults()"
|
||||
icon-left="arrow-circle-right"
|
||||
:text="'Execute ' + total + ' Batches'">
|
||||
</once-button>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</b-modal>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
|
@ -224,24 +140,3 @@
|
|||
|
||||
|
||||
${parent.body()}
|
||||
|
||||
% if not use_buefy:
|
||||
|
||||
## Refresh Results
|
||||
% if master.results_refreshable and master.has_perm('refresh'):
|
||||
${h.form(url('{}.refresh_results'.format(route_prefix)), name='refresh-results')}
|
||||
${h.csrf_token(request)}
|
||||
${h.end_form()}
|
||||
% endif
|
||||
|
||||
% if master.results_executable and master.has_perm('execute_multiple'):
|
||||
<div id="execution-options-dialog" style="display: none;">
|
||||
<br />
|
||||
<p>
|
||||
Please be advised, you are about to execute multiple batches!
|
||||
</p>
|
||||
<br />
|
||||
${execute_form.render_deform(form_kwargs={'name': 'execute-results'}, buttons=False)|n}
|
||||
</div>
|
||||
% endif
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue