diff options
| author | Greg Roach <fisharebest@gmail.com> | 2018-01-27 16:55:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2018-01-27 17:15:50 +0000 |
| commit | 299d100d2d85cd31f10efd927570655dd165b510 (patch) | |
| tree | bca1a16eef5b1d5fbe5655fd998cbcb0133734d4 /resources | |
| parent | 1c4e843d2f93e9d33db51f032fed37e47f140c1c (diff) | |
| download | webtrees-299d100d2d85cd31f10efd927570655dd165b510.tar.gz webtrees-299d100d2d85cd31f10efd927570655dd165b510.tar.bz2 webtrees-299d100d2d85cd31f10efd927570655dd165b510.zip | |
Use views for reports
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/views/layouts/report.php | 20 | ||||
| -rw-r--r-- | resources/views/report-page.php | 1 | ||||
| -rw-r--r-- | resources/views/report-select-page.php | 7 | ||||
| -rw-r--r-- | resources/views/report-setup-page.php | 4 |
4 files changed, 27 insertions, 5 deletions
diff --git a/resources/views/layouts/report.php b/resources/views/layouts/report.php new file mode 100644 index 0000000000..c9f4eab0df --- /dev/null +++ b/resources/views/layouts/report.php @@ -0,0 +1,20 @@ +<?php use Fisharebest\Webtrees\DebugBar; ?> +<?php use Fisharebest\Webtrees\I18N; ?> +<!DOCTYPE html> +<html <?= I18N::htmlAttributes() ?>> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + <title><?= $title ?></title> + + <link rel="icon" href="favicon.ico" type="image/x-icon"> + + <?= DebugBar::renderHead() ?> + </head> + <body class="container wt-global wt-report-page"> + <?= $content ?> + + <?= DebugBar::render() ?> + </body> +</html> diff --git a/resources/views/report-page.php b/resources/views/report-page.php new file mode 100644 index 0000000000..4f02edabdb --- /dev/null +++ b/resources/views/report-page.php @@ -0,0 +1 @@ +<?= $content ?> diff --git a/resources/views/report-select-page.php b/resources/views/report-select-page.php index 08253efb24..67ef2ed3c0 100644 --- a/resources/views/report-select-page.php +++ b/resources/views/report-select-page.php @@ -1,11 +1,12 @@ <?php use Fisharebest\Webtrees\I18N; ?> <h2 class="wt-page-title"> - <?= I18N::translate('Choose a report to run') ?> + <?= $title ?> </h2> -<form action="reportengine.php" class="wt-page-options wt-page-options-report-select"> - <input type="hidden" name="action" value="setup"> +<form class="wt-page-options wt-page-options-report-select"> + <input type="hidden" name="route" value="report-setup"> + <input type="hidden" name="ged" value="<?= e($tree->getName()) ?>"> <div class="row form-group"> <label class="col-sm-3 col-form-label wt-page-options-label" for="report"> <?= I18N::translate('Report') ?> diff --git a/resources/views/report-setup-page.php b/resources/views/report-setup-page.php index c4d38fca3a..294625ab2c 100644 --- a/resources/views/report-setup-page.php +++ b/resources/views/report-setup-page.php @@ -4,8 +4,8 @@ <?= $title ?> </h2> -<form action="reportengine.php" class="wt-page-options wt-page-options-report-setup"> - <input type="hidden" name="action" value="run"> +<form class="wt-page-options wt-page-options-report-setup"> + <input type="hidden" name="route" value="report-run"> <input type="hidden" name="report" value="<?= e($report) ?>"> <div class="row form-group"> |
