|
25 | 25 | .dashboard-section {
|
26 | 26 | padding: 20px 0 0;
|
27 | 27 | }
|
28 |
| - |
29 |
| - .dashboard-section h2 { |
| 28 | + .dashboard-section-head { |
30 | 29 | background-color: #ccc;
|
31 | 30 | 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; |
32 | 52 | font-size: 1.4em;
|
33 | 53 | font-weight: bold;
|
34 |
| - padding: 3px 15px; |
| 54 | + width:70%; |
35 | 55 | }
|
36 | 56 | .dashboard-section .h2-legend {
|
37 | 57 | font-size: 0.9em;
|
|
432 | 452 |
|
433 | 453 | <tal:section repeat="section python:view.get_sections()">
|
434 | 454 | <div class='dashboard-section'>
|
435 |
| - <div> |
| 455 | + <div class='dashboard-section-head'> |
436 | 456 | <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> |
451 | 473 | </div>
|
452 | 474 | <div class='dashboard-panels'>
|
453 | 475 |
|
|
0 commit comments