summaryrefslogtreecommitdiffstats
path: root/examples/view/master/topp.view.php
blob: 9a0b0fe973152a5b18817f3d147c2583c6530b15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php

/*
 * SCROTT Copyright (C) 2016 Malf Furious
 *
 * Scrott is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * Scrott is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
 * License for more details.
 */

?>

<?php if ($mod->isError() || $mod->isWarning() || $mod->isNotice()) { ?>
    <div id="noticeModal" class="modal fade" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">

                <div class="modal-body alert <?=$mod->getNoticeModalAlertClass()?>" style="margin: 0;">
                    <h1 class="text-center"><span class="<?=$mod->getNoticeModalGlyphicon()?>"></span></h1>
                    <h5 class="text-center">Something Happened</h5>

                    <?php if ($mod->isError()) { ?>
                        <p>
                            <?php foreach ($mod->errorlist as $err) { ?>
                                <span class="label label-danger">Error</span> <?=$err?><br />
                            <?php } ?>
                        </p>
                    <?php } ?>

                    <?php if ($mod->isWarning()) { ?>
                        <p>
                            <?php foreach ($mod->warninglist as $warn) { ?>
                                <span class="label label-warning">Warning</span> <?=$warn?><br />
                            <?php } ?>
                        </p>
                    <?php } ?>

                    <?php if ($mod->isNotice()) { ?>
                        <p>
                            <?php foreach ($mod->noticelist as $note) { ?>
                                <span class="label label-info">Notice</span> <?=$note?><br />
                            <?php } ?>
                        </p>
                    <?php } ?>

                    <div class="text-center">
                        <button type="button" class="btn btn-default" data-dismiss="modal">
                            <span class="glyphicon glyphicon-ok"></span> Got it
                        </button>
                    </div>
                </div>

            </div>
        </div>
    </div>
<?php } ?>