tab.environment.domain.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!-- NDD -->
  2. <div id="domain-tab" >
  3. <label for="domain">Domaine (sans http/https)</label>
  4. <input id="domain" name="domain" class="form-control" placeholder="" value="<?php echo $environment->domain; ?>" type="text" required>
  5. <div class="row">
  6. <div class="col-md-6">
  7. <label for="ssl"><br>
  8. <input id="ssl" name="ssl" data-type="checkbox" onclick="docker_environment_change_ssl()" placeholder="" type="checkbox" <?php echo $environment->ssl?'checked="checked"':''; ?>>Certificat SSL ?</label>
  9. </div>
  10. <div class="col-md-6">
  11. <div id="certificate-block" class="hidden">
  12. <label for="certificate">Certificat</label>
  13. <select id="certificate" name="certificate" class="form-control" placeholder="" data-value="<?php echo $environment->certificate; ?>"></select>
  14. </div>
  15. </div>
  16. </div>
  17. <?php if(!empty($environment->port)):
  18. $externalUrl = 'http://'.$environment->domain;
  19. ?>
  20. <br>Url externe : <a href="<?php echo $externalUrl; ?>"><?php echo $externalUrl; ?></a>
  21. <?php endif; ?>
  22. <hr>
  23. <a class="btn btn-dark btn-domain-create my-2" onclick="docker_environment_domain_create(event);" href="#"><i class="fas fa-plus"></i> Relier le DNS OVH</a>
  24. </div>