Commit 951af651 by Dányi Bence

webui: add new member to group

parent 82a96649
...@@ -473,8 +473,13 @@ table { ...@@ -473,8 +473,13 @@ table {
#new-member { #new-member {
.name { .name {
background-image: url(icons/user--plus.png) !important; background-image: url(icons/user--plus.png) !important;
float: left;
} }
#new-member-form { #new-member-form {
float: right;
margin-left: 5px;
display: none; display: none;
z-index: 2;
position: relative;
} }
} }
...@@ -39,16 +39,16 @@ $(function() { ...@@ -39,16 +39,16 @@ $(function() {
$('.wm .summary').unbind('click').click(toggleDetails); $('.wm .summary').unbind('click').click(toggleDetails);
$('.stop-vm-button').click(function() { $('.stop-vm-button').click(function() {
stop_vm($(this).data('id'), $(this).data('name')); stop_vm($(this).data('id'), $(this).data('name'));
}); });
$('.resume-vm-button').click(function() { $('.resume-vm-button').click(function() {
manage_vm($(this).data('id'), "resume"); manage_vm($(this).data('id'), "resume");
}); });
$('.delete-vm-button').click(function() { $('.delete-vm-button').click(function() {
delete_vm($(this).data('id'), $(this).data('name')); delete_vm($(this).data('id'), $(this).data('name'));
}); });
$('.restart-vm-button').click(function() { $('.restart-vm-button').click(function() {
restart_vm($(this).data('id'), $(this).data('name')); restart_vm($(this).data('id'), $(this).data('name'));
}); });
$('#new-wm-button').click(function() { $('#new-wm-button').click(function() {
$('#modal').show(); $('#modal').show();
$('#modal-container').html($('#new-wm').html()); $('#modal-container').html($('#new-wm').html());
...@@ -101,7 +101,6 @@ $(function() { ...@@ -101,7 +101,6 @@ $(function() {
$('#new-group-semester').change(updateSummary); $('#new-group-semester').change(updateSummary);
$('#new-group-members').change(updateSummary); $('#new-group-members').change(updateSummary);
}); });
/** /**
* Confirm pop-up window * Confirm pop-up window
*/ */
...@@ -153,6 +152,9 @@ $(function() { ...@@ -153,6 +152,9 @@ $(function() {
} }
}) })
} }
$('#new-member').click(function(){
$('#new-member-form').toggle();
})
/** /**
* Convert bytes to human readable format * Convert bytes to human readable format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment