Add 'restart datasync' button to datasync changes list page.
This commit is contained in:
parent
6b9727d7cb
commit
b78b49d79e
4 changed files with 62 additions and 6 deletions
25
tailbone/templates/datasync/changes/index.mako
Normal file
25
tailbone/templates/datasync/changes/index.mako
Normal 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()}
|
Loading…
Add table
Add a link
Reference in a new issue