Skip to content

Commit af67c4f

Browse files
committed
Some styling (selection list to the right)
1 parent 2a12f90 commit af67c4f

File tree

1 file changed

+40
-18
lines changed

1 file changed

+40
-18
lines changed

bika/lims/browser/dashboard/templates/dashboard.pt

+40-18
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,33 @@
2525
.dashboard-section {
2626
padding: 20px 0 0;
2727
}
28-
29-
.dashboard-section h2 {
28+
.dashboard-section-head {
3029
background-color: #ccc;
3130
border-radius: 5px 5px 0 0;
31+
padding: 3px 15px;
32+
}
33+
.dashboard-section-head div.actions {
34+
float:right;
35+
text-align:right;
36+
width:30%;
37+
}
38+
.dashboard-section-head div.actions select {
39+
padding: 0 5px;
40+
vertical-align: top;
41+
}
42+
.dashboard-section-head:after {
43+
clear: both;
44+
content: " ";
45+
display: block;
46+
font-size: 0;
47+
height: 0;
48+
visibility: hidden;
49+
}
50+
.dashboard-section h2 {
51+
float:left;
3252
font-size: 1.4em;
3353
font-weight: bold;
34-
padding: 3px 15px;
54+
width:70%;
3555
}
3656
.dashboard-section .h2-legend {
3757
font-size: 0.9em;
@@ -432,22 +452,24 @@
432452

433453
<tal:section repeat="section python:view.get_sections()">
434454
<div class='dashboard-section'>
435-
<div>
455+
<div class='dashboard-section-head'>
436456
<h2 tal:content="section/title" class='dashboard-section-title'></h2>
437-
<select class="dashboard_filters"
438-
tal:attributes="section_id section/id"
439-
tal:define="section_id section/id">
440-
<tal:dashboard_filter_opts
441-
define="options python: view.get_filter_options()"
442-
repeat="option options">
443-
<option
444-
tal:attributes="
445-
value python:option;
446-
selected python: 'selected' if view.is_filter_selected(section_id, option) else '';"
447-
tal:content="python:options.getValue(option)">
448-
</option>
449-
</tal:dashboard_filter_opts>
450-
</select>
457+
<div class="actions">
458+
<select class="dashboard_filters"
459+
tal:attributes="section_id section/id"
460+
tal:define="section_id section/id">
461+
<tal:dashboard_filter_opts
462+
define="options python: view.get_filter_options()"
463+
repeat="option options">
464+
<option
465+
tal:attributes="
466+
value python:option;
467+
selected python: 'selected' if view.is_filter_selected(section_id, option) else '';"
468+
tal:content="python:options.getValue(option)">
469+
</option>
470+
</tal:dashboard_filter_opts>
471+
</select>
472+
</div>
451473
</div>
452474
<div class='dashboard-panels'>
453475

0 commit comments

Comments
 (0)