Hide the 'send user email' section of the user add modal if SMTP isn't setup

This commit is contained in:
Marcus Hill
2023-02-01 21:43:20 +00:00
parent 124439e777
commit 8cf426d930

View File

@@ -91,7 +91,7 @@
<input type="file" class="form-control-file" accept="image/*;capture=camera" name="file"> <input type="file" class="form-control-file" accept="image/*;capture=camera" name="file">
</div> </div>
<div class="form-group"> <div class="form-group" <?php if(empty($config_smtp_host)) { echo "hidden"; } ?>>
<div class="custom-control custom-checkbox"> <div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" id="sendEmailCheckBox" name="send_email" value="" checked> <input class="custom-control-input" type="checkbox" id="sendEmailCheckBox" name="send_email" value="" checked>
<label for="sendEmailCheckBox" class="custom-control-label"> <label for="sendEmailCheckBox" class="custom-control-label">