Jul 20 - Update codes to comply with some framework (SOC 2 TYPE 2, ISO, etc)
This commit is contained in:
@@ -221,13 +221,20 @@
|
||||
<label class="form-label fw-semibold">Delete logs older than</label>
|
||||
<select name="older_than" class="form-select" id="purgeOlderThan" required>
|
||||
<option value="">— Select a threshold —</option>
|
||||
<option value="7">7 days</option>
|
||||
<option value="30">30 days</option>
|
||||
<option value="60">60 days</option>
|
||||
<option value="90">90 days</option>
|
||||
<option value="180">180 days</option>
|
||||
<option value="365">1 year</option>
|
||||
<option value="730">2 years</option>
|
||||
</select>
|
||||
<div class="form-text">
|
||||
Minimum retention is 1 year, so audit history stays available for
|
||||
a full compliance lookback window.
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">
|
||||
Type <code>PURGE</code> to confirm
|
||||
</label>
|
||||
<input type="text" name="confirm_phrase" class="form-control"
|
||||
id="purgeConfirmPhrase" autocomplete="off" required>
|
||||
</div>
|
||||
<p class="text-muted small mb-0">
|
||||
All audit log entries created before the selected threshold will be
|
||||
@@ -247,8 +254,12 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('purgeOlderThan').addEventListener('change', function () {
|
||||
document.getElementById('purgeSubmitBtn').disabled = !this.value;
|
||||
});
|
||||
function updatePurgeSubmitState() {
|
||||
var thresholdOk = !!document.getElementById('purgeOlderThan').value;
|
||||
var confirmOk = document.getElementById('purgeConfirmPhrase').value === 'PURGE';
|
||||
document.getElementById('purgeSubmitBtn').disabled = !(thresholdOk && confirmOk);
|
||||
}
|
||||
document.getElementById('purgeOlderThan').addEventListener('change', updatePurgeSubmitState);
|
||||
document.getElementById('purgeConfirmPhrase').addEventListener('input', updatePurgeSubmitState);
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user