| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- $checkMaintenance = core::isMaintenance();
- $checkDebug = core::isDebug();
- ?>
- <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
- <h2 class="bd-title" id="content">
- <span>Paramètres</span>
- </h2>
- </header>
- <?php
- echo core::filAriane(array(
- "current" => "Paramètres",
- "arbo" => array(
- "Maintenance" => NULL,
- "Paramètres" => "/host-parametres.html"
- )
- ));
- ?>
- <h4>Général</h4>
- <div class="form-check form-switch">
- <input class="form-check-input" type="checkbox" role="switch" id="checkMaintenance" <?php core::checkboxSelecter($checkMaintenance) ?>>
- <label class="form-check-label" for="checkMaintenance">Site en mode maintenance (les salariés ne pourront plus faire d'action sur le site)</label>
- </div>
- <div class="form-check form-switch">
- <input class="form-check-input" type="checkbox" role="switch" id="checkDebug" <?php core::checkboxSelecter($checkDebug) ?>>
- <label class="form-check-label" for="checkDebug">Afficher les erreurs (débug)</label>
- </div>
- <script>
- $(document).ready(function() {
- $('#checkMaintenance').on('change', function() {
- window.location.href = "/submit.php?from=dev-maintenance-activation&actif=" + $("#checkMaintenance").prop('checked');
- });
- $('#checkDebug').on('change', function() {
- window.location.href = "/submit.php?from=dev-debug-activation&actif=" + $("#checkDebug").prop('checked');
- });
- });
- </script>
|