Revision a18b9450
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/Chart.pm | ||
---|---|---|
54 | 54 |
} |
55 | 55 |
|
56 | 56 |
sub action_test_page { |
57 |
$_[0]->render('chart/test_page'); |
|
57 |
$_[0]->render('chart/test_page', pre_filled_chart => SL::DB::Manager::Chart->get_first);
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
sub action_chart_picker_search { |
templates/webpages/chart/test_page.html | ||
---|---|---|
45 | 45 |
[% END %] |
46 | 46 |
</p> |
47 | 47 |
|
48 |
<p> |
|
49 |
Pre-filled chart object: [% L.chart_picker('pre_filled_chart_object', pre_filled_chart, style=style) %]<br> |
|
50 |
Pre-filled chart ID: [% L.chart_picker('pre_filled_chart_id', pre_filled_chart.id, style=style) %]<br> |
|
51 |
</p> |
|
52 |
|
|
48 | 53 |
</div> |
49 | 54 |
|
50 | 55 |
<script type='text/javascript'> |
... | ... | |
57 | 62 |
}); |
58 | 63 |
|
59 | 64 |
</script> |
60 |
|
Auch abrufbar als: Unified diff
ChartPicker: Test-Seite um vorausgefüllte Picker ergänzt