summaryrefslogtreecommitdiff
path: root/js_tests/tests.html
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2019-10-24 16:37:55 +0200
committerCarlton Gibson <carlton@noumenal.es>2019-10-25 13:28:08 +0200
commit24e540fbd71bd2b0843e751bde61ad0052a811b3 (patch)
tree0ad75be6f7adb7cc0eedb83af2dacd8a252455c1 /js_tests/tests.html
parent6ea3aadd17f937e69d121e3ae1a415a435e3267d (diff)
Fixed #29087 -- Added delete buttons for unsaved admin inlines on validation error.
Diffstat (limited to 'js_tests/tests.html')
-rw-r--r--js_tests/tests.html46
1 files changed, 42 insertions, 4 deletions
diff --git a/js_tests/tests.html b/js_tests/tests.html
index a2342883ec..988b7e3a4c 100644
--- a/js_tests/tests.html
+++ b/js_tests/tests.html
@@ -28,18 +28,56 @@
<input id="id_first-TOTAL_FORMS" value="1">
<input id="id_first-MAX_NUM_FORMS" value="">
<table class="inline">
- <tr id="first-0" class="form-row">
+ <tr id="first-0" class="form-row row1">
<td class="field-test_field">
- <input id="id_first-test_field">
+ <input id="id_first-0-test_field">
</td>
</tr>
- <tr id="first-empty" class="empty-row">
+ <tr id="first-empty" class="form-row empty-form">
<td class="field-test_field">
- <input id="id_first-test_field">
+ <input id="id_first-__prefix__-test_field">
</td>
</tr>
</table>
</script>
+ <script type="text/html" id="tabular-formset-with-validation-error">
+ <div class="inline-group">
+ <div class="tabular inline-related">
+ <input id="id_second-TOTAL_FORMS" value="2">
+ <input id="id_second-MAX_NUM_FORMS" value="">
+ <input id="id_second-MIN_NUM_FORMS" value="">
+ <table class="inline">
+ <tr id="second-0" class="form-row has_original row1">
+ <td class="field-test_field">
+ <input id="id_second-0-test_field">
+ </td>
+ <td class="delete">
+ <input type="checkbox" />
+ </td>
+ </tr>
+ <tr class="row-form-errors">
+ <td colspan="2">
+ <ul class="errorlist nonfield">
+ <li>This next form has non-field errors.</li>
+ </ul>
+ </td>
+ </tr>
+ <tr id="second-1" class="form-row row2">
+ <td class="field-test_field">
+ <input id="id_second-1-test_field">
+ </td>
+ <td class="delete"></td>
+ </tr>
+ <tr id="second-empty" class="form-row empty-form">
+ <td class="field-test_field">
+ <input id="id_second-__prefix__-test_field">
+ </td>
+ <td class="delete"></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ </script>
<script src="./qunit/qunit.js"></script>