Simplify timer: checkbox + delay days, execute at 10:00
Timer is now a simple checkbox + days field. When enabled, rule actions are scheduled for X days after ticket creation at 10:00 AM instead of applying immediately. Removed no_activity condition in favor of simple time-based scheduling stored on the ticket (delay_rule_id + delay_execute_at). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
21
index.html
21
index.html
@@ -1293,18 +1293,17 @@
|
||||
<input type="number" id="rule-form-autoclose" min="0" max="365" placeholder="esim. 7" style="max-width:120px;">
|
||||
</div>
|
||||
<div class="form-group full-width" style="margin-top:0.5rem;">
|
||||
<label style="font-weight:600;color:#0f3460;">Ajastin (vapaaehtoinen)</label>
|
||||
<label style="font-weight:600;color:#0f3460;">Ajastin</label>
|
||||
<p style="color:#888;font-size:0.8rem;margin:2px 0 0;">Kun ajastin on päällä, toimenpiteet suoritetaan vasta X päivän päästä klo 10:00</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Viive (päivää)</label>
|
||||
<input type="number" id="rule-form-delay-days" min="0" max="365" placeholder="esim. 3" style="max-width:120px;">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Ehto</label>
|
||||
<select id="rule-form-delay-condition">
|
||||
<option value="">Ei ajastinta</option>
|
||||
<option value="no_activity">Ei aktiviteettia</option>
|
||||
</select>
|
||||
<div class="form-group" style="display:flex;align-items:center;gap:1rem;">
|
||||
<label style="display:flex;align-items:center;gap:0.4rem;cursor:pointer;">
|
||||
<input type="checkbox" id="rule-form-delay-enabled"> Ajastin päällä
|
||||
</label>
|
||||
<div style="display:flex;align-items:center;gap:0.4rem;">
|
||||
<input type="number" id="rule-form-delay-days" min="1" max="365" placeholder="2" style="max-width:80px;" disabled>
|
||||
<span style="font-size:0.85rem;color:#666;">päivää</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;gap:0.5rem;margin-top:1rem;">
|
||||
|
||||
Reference in New Issue
Block a user