New forminfo tooltip and update to search attribute

- added tooltip to css

- small update to search attribute
pull/217/head
Andras 2013-06-01 20:21:10 +02:00
parent 03a9b2bcc2
commit b68994d11f
2 changed files with 16 additions and 4 deletions

View File

@ -3,8 +3,8 @@
<fieldset>
<legend>Search Attribute</legend>
<?php
echo $this->Form->input('keyword', array('type' => 'textarea', 'label' => 'Containing the following expressions'));
echo $this->Form->input('keyword2', array('type' => 'textarea', 'label' => 'Excluding the following events'));
echo $this->Form->input('keyword', array('type' => 'textarea', 'label' => 'Containing the following expressions', 'div' => 'clear', 'class' => 'input-xxlarge'));
echo $this->Form->input('keyword2', array('type' => 'textarea', 'label' => 'Excluding the following events', 'div' => 'clear', 'class' => 'input-xxlarge'));
?>
<?php
if ('true' == Configure::read('CyDefSIG.showorg') || $isAdmin)
@ -16,9 +16,9 @@
<?php
echo $this->Form->input('type', array(
'div' => 'input clear',
'between' => $this->Html->div('forminfo', '', array('id' => 'AttributeTypeDiv'))
'after' => $this->Html->div('forminfo', '', array('id' => 'AttributeTypeDiv'))
));
echo $this->Form->input('category', array('between' => $this->Html->div('forminfo', '', array('id' => 'AttributeCategoryDiv'))));
echo $this->Form->input('category', array('after' => $this->Html->div('forminfo', '', array('id' => 'AttributeCategoryDiv'))));
?>
</fieldset>
<?php

View File

@ -101,6 +101,18 @@ div.input{
width: 230px;
}
div.forminfo{
font-size: 80%;
width: 220px;
opacity: 50;
margin-top: 0px;
margin-bottom: 10px;
float: top;
background-color: #F2F2F2;
-webkit-border-radius: 5px;
-webkit-box-shadow: 0px 0px 6px #B2B2B2;
}
.clear{
clear:both;
}