Add 'restart datasync' button to datasync changes list page.

This commit is contained in:
Lance Edgar 2016-01-19 17:29:19 -06:00
parent 6b9727d7cb
commit b78b49d79e
4 changed files with 62 additions and 6 deletions

View file

@ -0,0 +1,25 @@
## -*- coding: utf-8 -*-
<%inherit file="/master/index.mako" />
<%def name="head_tags()">
${parent.head_tags()}
<script type="text/javascript">
$(function() {
$('form[name="restart-datasync"]').submit(function() {
$(this).find('button')
.button('option', 'label', "Restarting DataSync...")
.button('disable');
});
});
</script>
</%def>
<%def name="grid_tools()">
${h.form(url('datasync.restart'), name='restart-datasync')}
<button type="submit">Restart DataSync Daemon</button>
${h.end_form()}
</%def>
${parent.body()}