Fix: Add required attribute to pattern fields in CategoryMappings
Prevents form submission with empty pattern, keeping modal open for validation instead of closing and showing error after redirect. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -181,7 +181,7 @@ else
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="addPattern" class="form-label">Pattern</label>
|
||||
<input name="model.Pattern" id="addPattern" class="form-control" placeholder="e.g., TARGET.COM" />
|
||||
<input name="model.Pattern" id="addPattern" class="form-control" placeholder="e.g., TARGET.COM" required />
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
@@ -229,7 +229,7 @@ else
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="editPattern" class="form-label">Pattern</label>
|
||||
<input name="model.Pattern" id="editPattern" class="form-control" />
|
||||
<input name="model.Pattern" id="editPattern" class="form-control" required />
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
|
||||
Reference in New Issue
Block a user