var dialog = $('<div id="create_daemon"></div>'); dialog.append(<?php echo encode_javascript(render('daemons/_form.html.php', null)); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: '<?php echo _("Create daemon"); ?> ', modal: true, buttons: [ { text: '<?php echo _("save"); ?> ', click: function() { $('#create_daemon').find('form').submit(); } } ] });
var dialog = $('<div id="create_server"></div>'); dialog.append(<?php echo encode_javascript(render('servers/_form.html.php', null)); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: 'Server erstellen', modal: true, buttons: [ { text: 'Speichern', click: function() { $('#create_server').find('form').submit(); } } ] });
var form = $(<?php echo encode_javascript(render('people_roles/_form.html.php', null, array('role' => $role, 'people' => $people))); ?> ); var abort = $('<button>Cancel</button>'); abort.click(function(){ form.remove(); return false; }); form.find('.actions').append(abort); $('dl[data-id=<?php echo $role['id']; ?> ]').append(form).find('dd').show();
var dialog = $('<div id="edit_server"></div>'); dialog.append(<?php echo encode_javascript(render('servers/_form.html.php', null, array('server' => $server))); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: 'Server bearbeiten', modal: true, buttons: [ { text: 'Speichern', click: function() { $('#edit_server').find('form').submit(); } } ] });
var newContent = $(<?php echo encode_javascript(partial('people_roles/_role.html.php', array('role' => $role))); ?> ); $('.role[data-id=<?php echo $role['rid']; ?> ]') .html(newContent.html()) .data('containing', newContent.data('containing')) .find('span.person').css('cursor','move').draggable(dragDefaults); hideOverlay();
var dialog = $('<div id="create_port"></div>'); dialog.append(<?php echo encode_javascript(render('ports/_form.html.php', null, array('remote' => 'false'))); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: '<?php echo _('Create port'); ?> ', modal: true, buttons:[ { text: '<?php echo _('save'); ?> ', click: function() { $('#create_port').find('form').submit(); } } ] });
var newContent = $(<?php echo encode_javascript(partial('roles_services/_role.html.php', array('role' => $role))); ?> ); $('.role[data-id=<?php echo $role['rid']; ?> ]') .html(newContent.html()) .data('containing', newContent.data('containing')) .find('span.service').css('cursor','move').draggable(dragDefaults); hideOverlay();
var dialog = $('<div id="create_person"></div>'); dialog.append(<?php echo encode_javascript(render('people/_form.html.php', null)); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: '<?php echo _('Create person'); ?> ', modal: true, buttons:[ { text: '<?php echo _('save'); ?> ', click: function() { $('#create_person').find('form').submit(); } } ] });
var dialog = $('<div id="create_role"></div>'); dialog.append(<?php echo encode_javascript(render('roles/_form.html.php', null)); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: 'Rolle erstellen', modal: true, buttons: [ { text: 'Speichern', click: function() { $('#create_role').find('form').submit(); } } ] });
$('#client_form').replaceWith(<?php echo encode_javascript(render('clients/show' . $nested . '.html.php', null, array('client' => $client))); ?> ); handleAggregates();
$('#access_form').wrap('<dd data-id="<?php echo $service['dienst_id']; ?> "></dd>'); $('#access_form').replaceWith(<?php echo encode_javascript(render('access/show.html.php', null, array('service' => $service))); ?> )
$('#daemons_servers_form').wrap('<dd data-id="<?php echo $daemon['id']; ?> "></dd>'); $('#daemons_servers_form').replaceWith(<?php echo encode_javascript(render('daemons/show.html.php', null, array('server' => $server, 'daemon' => $daemon))); ?> )
var form = $(<?php echo encode_javascript(render('ports/_form.html.php', null, array('daemon_id' => $daemon_id))); ?> ); var abort = $('<button><?php echo _("cancel"); ?> </button>'); abort.click(function(){ form.remove(); return false; }); form.find('.actions').append(abort); $('dl[data-id=<?php echo $daemon_id; ?> ]').append(form).find('dd').show();
var dialog = $('<div id="edit_daemon"></div>'); dialog.append(<?php echo encode_javascript(render('daemons/_form.html.php', null, array('daemon' => $daemon))); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: 'Daemon bearbeiten', modal: true, buttons: [ { text: 'Speichern', click: function() { $('#edit_daemon').find('form').submit(); } } ] });
$('#port_form').wrap('<dd data-id="<?php echo $port['pid']; ?> "></dd>'); $('#port_form').replaceWith(<?php echo encode_javascript(render('ports/show' . $nested . '.html.php', null, array('port' => $port))); ?> );
var form = $(<?php echo encode_javascript(render('daemons_servers/_form.html.php', null, array('server' => $server, 'daemons' => $daemons))); ?> ); var abort = $('<button>Cancel</button>'); abort.click(function(){ form.remove(); return false; }); form.find('.actions').append(abort); $('dl[data-id=<?php echo $server['id']; ?> ]').append(form);
$('#people_role_form').wrap('<dd data-id="<?php echo $person['id']; ?> "></dd>'); $('#people_role_form').replaceWith(<?php echo encode_javascript(render('people/show.html.php', null, array('person' => $person, 'role' => $role))); ?> ) handleAggregates();
var form = $(<?php echo encode_javascript(render('clients/_form.html.php', null, array('person_id' => $person_id, 'nested' => $nested))); ?> ); var abort = $('<button><?php echo _("cancel"); ?> </button>'); abort.click(function(){ form.remove(); return false; }); form.find('.actions').append(abort); $('dl[data-id=<?php echo $person_id; ?> ]').append(form).find('dd').show();
var dialog = $('<div id="editPerson"></div>'); dialog.append(<?php echo encode_javascript(render('people/_form.html.php', null, array('person' => $person))); ?> ); dialog.find('input[type=submit]').remove(); $('body').append(dialog); dialog.dialog({ title: '<?php echo _('Edit person'); ?> ', modal: true, buttons: [ { text: '<?php echo _('save'); ?> ', click: function() { $('#editPerson').find('form').submit(); } } ] });
var form = $(<?php echo encode_javascript(render('access/_form.html.php', null, array('role' => $role, 'services' => $services))); ?> ); var abort = $('<button>Cancel</button>'); abort.click(function(){ form.remove(); return false; }); form.find('.actions').append(abort); $('dl[data-id=<?php echo $role['id']; ?> ]').append(form).find('dd').show();