fix: same ID for monitoring and notfication button, broke submission.

pull/664/head
Raphaël Vinot 2023-04-13 10:18:21 +02:00
parent c7d3e54edf
commit aa52e6176f
1 changed files with 4 additions and 4 deletions

View File

@ -788,12 +788,12 @@
{% endif %}
</div>
<div class="mb-3 form-check">
<input class="form-check-input" type="checkbox" name="confirm" onchange="document.getElementById('btn-notification').disabled = !this.checked;"></input>
<input class="form-check-input" type="checkbox" name="confirm" onchange="document.getElementById('btn-notification-monitoring').disabled = !this.checked;"></input>
<label for="force_push" class="form-check-label">{{ confirm_message }}</label>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success" id="btn-notification" disabled=true>Send to monitoring</button>
<button type="submit" class="btn btn-success" id="btn-notification-monitoring" disabled=true>Send to monitoring</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
@ -827,12 +827,12 @@
<textarea class="form-control" name="comment" id=comment rows="3"></textarea>
</div>
<div class="mb-3 form-check">
<input class="form-check-input" type="checkbox" name="confirm" onchange="document.getElementById('btn-notification').disabled = !this.checked;"></input>
<input class="form-check-input" type="checkbox" name="confirm" onchange="document.getElementById('btn-notification-report').disabled = !this.checked;"></input>
<label for="force_push" class="form-check-label">{{ confirm_message }}</label>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success" id="btn-notification" disabled=true>Send email</button>
<button type="submit" class="btn btn-success" id="btn-notification-report" disabled=true>Send email</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>