home.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div id="smad-page-home" class="container-fluid">
  2. <a class="btn btn-primary" id="p5-bocian-btn-new-report" href="index.php?_route=UrlAction_Bocian#PRACOWNICY" title="Nowy raport">
  3. <div>NOWY RAPORT</div>
  4. <img class="p5-bocian-btn-new-report__img_default" src="<?= $this->asset("assets/images/button-red.png"); ?>"/>
  5. <img class="p5-bocian-btn-new-report__img_hover" src="<?= $this->asset("assets/images/button-red-border.png"); ?>"/>
  6. </a>
  7. </div>
  8. <style type="text/css">
  9. #smad-page-home { padding-bottom:128px; padding-top:128px; text-align:center }
  10. #p5-bocian-btn-new-report { padding: 18px 110px; font-size: 18px; font-weight: 900; border-width:2px; border-color:#d7142d }
  11. #p5-bocian-btn-new-report div { padding-bottom:8px; font-size:24px }
  12. #p5-bocian-btn-new-report,
  13. #p5-bocian-btn-new-report div { background-color:#fff; color:#d7142d }
  14. /* #p5-bocian-btn-new-report div { background-color:#d7142d; color:#fff; } */
  15. #p5-bocian-btn-new-report .p5-bocian-btn-new-report__img_default { display:inline }
  16. #p5-bocian-btn-new-report .p5-bocian-btn-new-report__img_hover { display:none }
  17. #p5-bocian-btn-new-report:hover,
  18. #p5-bocian-btn-new-report:hover div { background-color:#fff; color:#d7142d }
  19. #p5-bocian-btn-new-report:hover .p5-bocian-btn-new-report__img_default { display:none }
  20. #p5-bocian-btn-new-report:hover .p5-bocian-btn-new-report__img_hover { display:inline }
  21. </style>
  22. <?= UI::h('script', ['src'=>"static/vendor.js?v=71baa97d", 'type'=>"text/javascript"]); ?>
  23. <?php Router::getRoute('UrlAction_Bocian')->viewIncludeStoreJs($storeName = 'bocianRaportStore'); ?>
  24. <script type="text/javascript">
  25. var globalRaportStore;
  26. $(document).ready(function() {
  27. if (!window['bocianRaportStore']) throw "Missing store";
  28. var globalRaportStore = window['bocianRaportStore'];
  29. globalRaportStore.dispatch({ type: 'CLEAR_ALL' });
  30. <?php
  31. // var unsubscribe = globalRaportStore.subscribe(function () {
  32. // var state = globalRaportStore.getState();
  33. // })
  34. ?>
  35. });
  36. </script>