2013-04-24 Miguel de Dios <miguel.dedios@artica.es>

* godmode/events/event_responses.editor.php: set the sizes of
	the widgets for the form in the metaconsole.
	
	Fixes: #3611423
	
	* godmode/users/configure_user.php




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8048 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-04-24 14:27:24 +00:00
parent dff1dd0cb5
commit 5ea16a287d
3 changed files with 38 additions and 13 deletions

View File

@ -1,3 +1,12 @@
2013-04-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/events/event_responses.editor.php: set the sizes of
the widgets for the form in the metaconsole.
Fixes: #3611423
* godmode/users/configure_user.php
2013-04-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/tag/edit_tag.php: change the input text for textarea for

View File

@ -25,6 +25,17 @@ if (! check_acl($config['id_user'], 0, "PM")) {
return;
}
$meta = false;
if(enterprise_installed() && defined("METACONSOLE")) {
$meta = true;
}
$class_description = 'response_description';
if ($meta) {
$class_description = 'response_description_metaconsole';
}
$event_response_id = get_parameter('id_response',0);
if ($event_response_id > 0) {
@ -55,7 +66,8 @@ $table->data = array();
$data = array();
$data[0] = __('Name');
$data[1] = html_print_input_text('name',$event_response['name'],'',100,255,true);
$data[1] = html_print_input_text('name', $event_response['name'], '',
50, 255, true);
$data[1] .= html_print_input_hidden('id_response',$event_response['id'],true);
$data[2] = __('Group');
@ -65,7 +77,8 @@ $table->data[0] = $data;
$data = array();
$table->colspan[1][1] = 3;
$data[0] = __('Description');
$data[1] = html_print_textarea('description',5,40,$event_response['description'],'',true);
$data[1] = html_print_textarea('description', 5, 40,
$event_response['description'], 'class="' . $class_description . '"', true);
$table->data[1] = $data;
$data = array();
@ -88,7 +101,8 @@ $table->data[2] = $data;
$data = array();
$data[0] = __('Parameters').ui_print_help_icon ("response_parameters", true);
$data[1] = html_print_input_text('params',$event_response['params'],'',100,255,true);
$data[1] = html_print_input_text('params', $event_response['params'],
'', 50, 255, true);
$types = array('url' => __('URL'), 'command' => __('Command'));
$data[2] = __('Type');
$data[3] = html_print_select($types,'type',$event_response['type'],'','','',true);
@ -97,7 +111,8 @@ $table->data[3] = $data;
$data = array();
$table->colspan[4][1] = 3;
$data[0] = '<span id="command_label" class="labels">'.__('Command').'</span><span id="url_label" style="display:none;" class="labels">'.__('URL').'</span>'.ui_print_help_icon ("response_macros", true);
$data[1] = html_print_input_text('target',$event_response['target'],'',150,255,true);
$data[1] = html_print_input_text('target', $event_response['target'],
'', 100, 255, true);
$types = array('url' => __('URL'), 'command' => __('Command'));
$table->data[4] = $data;
@ -126,7 +141,8 @@ $('#type').change(function() {
switch ($(this).val()) {
case 'command':
$('#new_window option[value="0"]').attr('selected','selected');
$('#new_window option[value="0"]')
.attr('selected','selected');
$('#new_window').attr('disabled','disabled');
break;
case 'url':