mirror of https://github.com/MISP/MISP
Merge branch 'feature/attribute_references' into 2.4
commit
3848811b05
|
@ -3,7 +3,6 @@
|
|||
* Generic select picker
|
||||
*/
|
||||
/** Config **/
|
||||
$select_threshold = 7; // threshold above which pills will be replace by a select (unused if multiple is > 1)
|
||||
$defaults_options = array(
|
||||
'select_options' => array(
|
||||
// 'multiple' => '', // set to add possibility to pick multiple options in the select
|
||||
|
@ -19,6 +18,7 @@
|
|||
'allow_single_deselect' => true,
|
||||
),
|
||||
'multiple' => 0,
|
||||
'select_threshold' => 7, // threshold above which pills will be replace by a select (unused if multiple is > 1)
|
||||
'functionName' => '', // function to be called on submit
|
||||
'submitButtonText' => 'Submit',
|
||||
'disabledSubmitButton' => false, // wether to not draw the submit button
|
||||
|
@ -45,9 +45,9 @@
|
|||
} else { // multiple enabled
|
||||
$defaults['chosen_options']['max_selected_options'] = $defaults['multiple'] == -1 ? 'Infinity' : $defaults['multiple'];
|
||||
$defaults['select_options']['multiple'] = '';
|
||||
$select_threshold = 0;
|
||||
$defaults['select_threshold'] = 0;
|
||||
}
|
||||
$use_select = count($items) > $select_threshold;
|
||||
$use_select = count($items) > $defaults['select_threshold'];
|
||||
$countThresholdReached = count($items) > 1000;
|
||||
$option_templates = array();
|
||||
$options_additionalData = array();
|
||||
|
|
|
@ -88,16 +88,9 @@
|
|||
)
|
||||
)
|
||||
);
|
||||
echo $this->element('/genericElements/ListTopBar/scaffold', array('data' => $data));
|
||||
?>
|
||||
<div id="attributeList" class="attributeListContainer">
|
||||
<div class="tabMenu tabMenuFiltersBlock noPrint" style="padding-right:0px !important;">
|
||||
<span id="filter_header" class="attribute_filter_header"><?php echo __('Filters');?>: </span>
|
||||
<div id="filter_all" title="<?php echo __('Show all queues');?>" role="button" tabindex="0" aria-label="<?php echo __('Show all queues');?>" class="attribute_filter_text<?php if (!$queue) echo '_active';?>" onClick="window.location='/jobs/index';"><?php echo __('All');?></div>
|
||||
<div id="filter_default" title="<?php echo __('Show default queue');?>" role="button" tabindex="0" aria-label="<?php echo __('Show default queue');?>" class="attribute_filter_text<?php if ($queue === 'default') echo '_active';?>" onClick="window.location='/jobs/index/default';"><?php echo __('Default');?></div>
|
||||
<div id="filter_email" title="<?php echo __('Show email queue');?>" role="button" tabindex="0" aria-label="<?php echo __('Show email queue');?>" class="attribute_filter_text<?php if ($queue === 'email') echo '_active';?>" onClick="window.location='/jobs/index/email';"><?php echo __('Email');?></div>
|
||||
<div id="filter_cache" title="<?php echo __('Show cache queue');?>" role="button" tabindex="0" aria-label="<?php echo __('Show cache queue');?>" class="attribute_filter_text<?php if ($queue === 'cache') echo '_active';?>" onClick="window.location='/jobs/index/cache';"><?php echo __('Cache');?></div>
|
||||
</div>
|
||||
<?php echo $this->element('/genericElements/ListTopBar/scaffold', array('data' => $data)); ?>
|
||||
<table class="table table-striped table-hover table-condensed">
|
||||
<tr>
|
||||
<th><?php echo $this->Paginator->sort('id');?></th>
|
||||
|
|
|
@ -109,6 +109,7 @@
|
|||
}
|
||||
$options = array(
|
||||
'functionName' => 'changeObjectReferenceSelectOption',
|
||||
'select_threshold' => 0,
|
||||
'chosen_options' => array('width' => '334px'),
|
||||
'select_options' => array('data-targetselect' => 'targetSelect')
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue