|
1 | 1 | <%# required params: title, body_class, masthead_img_src %> |
| 2 | +<!doctype html> |
2 | 3 | <html> |
3 | 4 | <head> |
4 | 5 | <meta charset="utf-8"> |
|
31 | 32 | padding-left: 0px; |
32 | 33 | } |
33 | 34 | </style> |
34 | | - <script type="module"> |
35 | | - $(document).ready(function() { |
36 | | - <% if Rails.env.staging? %> |
| 35 | + <% if Rails.env.staging? %> |
| 36 | + <script type="module"> |
| 37 | + $(document).ready(function() { |
37 | 38 | // Prevents users from closing the modal by clicking outside of it or pressing the esc key |
38 | 39 | new bootstrap.Modal('#warningModal', { |
39 | 40 | backdrop: 'static', |
|
48 | 49 | $('.continue-btn').attr("disabled", true); |
49 | 50 | } |
50 | 51 | }); |
51 | | - <% end %> |
52 | | - }); |
53 | | - </script> |
| 52 | + }); |
| 53 | + </script> |
| 54 | + <% end %> |
54 | 55 | </head> |
55 | 56 |
|
56 | 57 | <body id="devise" class="hold-transition login-page <%= body_class %> <%= Rails.env.staging? ? 'login-page-test' : '' %>"> |
57 | 58 | <div class="login-box"> |
58 | 59 | <% if masthead_img_src %> |
59 | | - <div class="login-logo text-center"> |
60 | | - <img id="MastheadLogo" src="<%= masthead_img_src %>" alt="Human Essentials" title="Human Essentials" class="serv_icon"> |
| 60 | + <div class="login-logo"> |
| 61 | + <img id="MastheadLogo" src="<%= masthead_img_src %>" alt="Human Essentials" title="Human Essentials" class="serv_icon mw-100"> |
61 | 62 | </div> |
62 | 63 | <% end %> |
63 | 64 |
|
|
72 | 73 | <!-- /.login-box --> |
73 | 74 |
|
74 | 75 | <!-- Modal --> |
75 | | - <div class="modal fade" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="warningModalLabel" aria-hidden="true"> |
76 | | - <div class="modal-dialog" role="document"> |
77 | | - <div class="modal-content"> |
78 | | - <div class="modal-header"> |
79 | | - <h3 class="modal-title" id="warningModalLabel"><b>This site is for TEST purposes only!</b></h3> |
80 | | - </div> |
81 | | - <div class="modal-body"> |
82 | | - You're visiting staging.humanessentials.app, a demo/test site for the full site at <a href="https://humanessentials.app">humanessentials.app</a>.<br> |
83 | | - It is not safe to upload, enter or save any sensitive data here.<br> |
84 | | - <div class="modal-body-warning-text"> |
85 | | - If you meant to login to your live account, go to <a href="https://humanessentials.app/users/sign_in">humanessentials.app</a> |
| 76 | + <% if Rails.env.staging? %> |
| 77 | + <div class="modal fade" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="warningModalLabel" aria-hidden="true"> |
| 78 | + <div class="modal-dialog" role="document"> |
| 79 | + <div class="modal-content"> |
| 80 | + <div class="modal-header"> |
| 81 | + <h3 class="modal-title" id="warningModalLabel"><b>This site is for TEST purposes only!</b></h3> |
86 | 82 | </div> |
87 | | - <br> |
88 | | - <div class="form-check"> |
89 | | - <input class="form-check-input" type="checkbox" value="" id="defaultCheck1"> |
90 | | - <label class="form-check-label" for="defaultCheck1"> |
91 | | - I Understand |
92 | | - </label> |
| 83 | + <div class="modal-body"> |
| 84 | + You're visiting staging.humanessentials.app, a demo/test site for the full site at <a href="https://humanessentials.app">humanessentials.app</a>.<br> |
| 85 | + It is not safe to upload, enter or save any sensitive data here.<br> |
| 86 | + <div class="modal-body-warning-text"> |
| 87 | + If you meant to login to your live account, go to <a href="https://humanessentials.app/users/sign_in">humanessentials.app</a> |
| 88 | + </div> |
| 89 | + <br> |
| 90 | + <div class="form-check"> |
| 91 | + <input class="form-check-input" type="checkbox" value="" id="defaultCheck1"> |
| 92 | + <label class="form-check-label" for="defaultCheck1"> |
| 93 | + I Understand |
| 94 | + </label> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | + <div class="modal-footer"> |
| 98 | + <button type="button" class="btn btn-warning continue-btn" data-bs-dismiss="modal" disabled>Continue To The Test Site</button> |
93 | 99 | </div> |
94 | | - </div> |
95 | | - <div class="modal-footer"> |
96 | | - <button type="button" class="btn btn-warning continue-btn" data-bs-dismiss="modal" disabled>Continue To The Test Site</button> |
97 | 100 | </div> |
98 | 101 | </div> |
99 | 102 | </div> |
100 | | - </div> |
| 103 | + <% end %> |
101 | 104 | </body> |
102 | 105 | </html> |
0 commit comments