Added search by user in virtualhosts
This commit is contained in:
parent
8da559b6ec
commit
2ae159623f
2 changed files with 38 additions and 8 deletions
|
|
@ -6,8 +6,13 @@
|
|||
<%block name="content">
|
||||
<h3>${hostname}</h3>
|
||||
<p>${_('Filter by user')}:
|
||||
<select name="user_vhost">
|
||||
<select name="user_vhost" id="user_vhost">
|
||||
<option value=""></option>
|
||||
% for username in usernames:
|
||||
|
||||
<option value="${username['username']}">${username['username']}</option>
|
||||
|
||||
% endfor
|
||||
</select>
|
||||
</p>
|
||||
<p><a href="${url_for('admin_app.webservers')}">${_('Webservers list')}</a> >> ${_('Websites')}</p>
|
||||
|
|
@ -70,6 +75,15 @@ $('#form_change_password').sendPost(options_post);
|
|||
|
||||
//$.fn.popUp = function (popup, width, pre_callback, post_callback, options)
|
||||
|
||||
$('#user_vhost').change( function (e) {
|
||||
|
||||
options.url="${url_for('.get_virtualhosts', webserver_id=webserver_id)}&username="+$('#user_vhost').val();
|
||||
|
||||
alist.updateAjax('table_list', options, 0);
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</%block>
|
||||
</%block>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue