diff --git a/application/controllers/ajax.php b/application/controllers/ajax.php index c89a3d3..037e3e0 100644 --- a/application/controllers/ajax.php +++ b/application/controllers/ajax.php @@ -26,6 +26,7 @@ * Controller for Ajax requests. * * @author Karsten Heiken + * @author Eike Foken */ class Ajax extends CI_Controller { @@ -64,4 +65,15 @@ class Ajax extends CI_Controller { $this->parameter->sort($this->input->post('parameters')); } -} \ No newline at end of file + /** + * Displays the description of parameters. + */ + public function parameter_help($parameterId) { + $this->load->model('parameter'); + $this->load->helper('typography'); + + $parameter = $this->parameter->getById($parameterId); + $this->output->set_output(auto_typography($parameter['description'])); + } + +} diff --git a/application/views/trial/new.php b/application/views/trial/new.php index 29efda4..78abd64 100644 --- a/application/views/trial/new.php +++ b/application/views/trial/new.php @@ -92,8 +92,20 @@ foreach($parameters[$program['id']] as $param): ?> - - + + + + + +   + + + +

- +

diff --git a/assets/css/style.css b/assets/css/style.css index b32fb5b..779057a 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -563,18 +563,8 @@ html ul.tabs li.active a:hover { .form_info a, .form_info a:active, .form_info a:visited { - background-color: #d2d2d2; - font-size: 12px; - font-weight: bold; - margin-left: -3px; - padding: 4px; - color: #fff; - text-decoration: none; -} - -.form_info a:hover { - color: #000; - text-decoration: none; + background: url(../images/icons/question.png) center center no-repeat; + padding: 4px 8px; } #JT_arrow_left { @@ -602,7 +592,7 @@ html ul.tabs li.active a:hover { border: 1px solid #ccc; background-color: #fff; margin-top: 5px; - font-size: 85%; + font-size: 10px; } #JT_copy { @@ -637,7 +627,8 @@ html ul.tabs li.active a:hover { } #JT_copy p { - margin: 3px 0; + margin: 0; + line-height: 12px; } #JT_copy img {