You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.1 KiB
125 lines
4.1 KiB
1 year ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Repeater</title>
|
||
|
<link rel="stylesheet" href="qunit-1.14.0.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="qunit"></div>
|
||
|
<div id="qunit-fixture"></div>
|
||
|
|
||
|
<script type="text/x-template" id="template">
|
||
|
<form action="echo.php" class="repeater" enctype="multipart/form-data">
|
||
|
<div data-repeater-list="group-a">
|
||
|
<div data-repeater-item>
|
||
|
<input name="untyped-input" value="A"/>
|
||
|
|
||
|
<input type="text" name="text-input" value="A"/>
|
||
|
|
||
|
<input type="date" name="date-input"/>
|
||
|
|
||
|
<textarea name="textarea-input">A</textarea>
|
||
|
|
||
|
<input type="radio" name="radio-input" value="A" checked/>
|
||
|
<input type="radio" name="radio-input" value="B"/>
|
||
|
|
||
|
<input type="checkbox" name="checkbox-input" value="A" checked/>
|
||
|
<input type="checkbox" name="checkbox-input" value="B"/>
|
||
|
|
||
|
<select name="select-input">
|
||
|
<option value="A" selected>A</option>
|
||
|
<option value="B">B</option>
|
||
|
</select>
|
||
|
|
||
|
<select name="multiple-select-input" multiple>
|
||
|
<option value="A" selected>A</option>
|
||
|
<option value="B" selected>B</option>
|
||
|
</select>
|
||
|
|
||
|
<input data-repeater-delete type="button" value="Delete"/>
|
||
|
</div>
|
||
|
<div data-repeater-item>
|
||
|
<input name="untyped-input" value="A"/>
|
||
|
|
||
|
<input type="text" name="text-input" value="B"/>
|
||
|
|
||
|
<input type="date" name="date-input"/>
|
||
|
|
||
|
<textarea name="textarea-input">B</textarea>
|
||
|
|
||
|
<input type="radio" name="radio-input" value="A" />
|
||
|
<input type="radio" name="radio-input" value="B" checked/>
|
||
|
|
||
|
<input type="checkbox" name="checkbox-input" value="A"/>
|
||
|
<input type="checkbox" name="checkbox-input" value="B" checked/>
|
||
|
|
||
|
<select name="select-input">
|
||
|
<option value="A">A</option>
|
||
|
<option value="B" selected>B</option>
|
||
|
</select>
|
||
|
|
||
|
<select name="multiple-select-input" multiple>
|
||
|
<option value="A" selected>A</option>
|
||
|
<option value="B" selected>B</option>
|
||
|
</select>
|
||
|
|
||
|
<input data-repeater-delete type="button" value="Delete"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
<input data-repeater-create type="button" value="Add"/>
|
||
|
</form>
|
||
|
|
||
|
<form action="echo.php" class="outer-repeater">
|
||
|
<div data-repeater-list="outer-group" class="outer">
|
||
|
<div data-repeater-item class="outer">
|
||
|
<input type="text" name="text-input" value="A" class="outer"/>
|
||
|
<input data-repeater-delete type="button" value="Delete" class="outer"/>
|
||
|
<div class="inner-repeater">
|
||
|
<div data-repeater-list="inner-group" class="inner">
|
||
|
<div data-repeater-item class="inner">
|
||
|
<input type="text" name="inner-text-input" value="B" class="inner"/>
|
||
|
<input data-repeater-delete type="button" value="Delete" class="inner"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
<input data-repeater-create type="button" value="Add" class="inner"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<input data-repeater-create type="button" value="Add" class="outer"/>
|
||
|
</form>
|
||
|
|
||
|
<div class="complex-repeater">
|
||
|
<div>
|
||
|
<div>
|
||
|
<button data-repeater-create>create</button>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div data-repeater-list="complex-repeater">
|
||
|
<div data-repeater-item>
|
||
|
<div>
|
||
|
<input type="text" name="text-input" value="A"/>
|
||
|
</div>
|
||
|
<div>
|
||
|
<button data-repeater-delete></button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<script src="../jquery-1.11.1.js"></script>
|
||
|
<script src="../src/jquery.input.js"></script>
|
||
|
<script src="../src/lib.js"></script>
|
||
|
<script src="../src/repeater.js"></script>
|
||
|
<script src="qunit-1.14.0.js"></script>
|
||
|
<script src="test-lib.js"></script>
|
||
|
<script src="test.js"></script>
|
||
|
<script src="nested.js"></script>
|
||
|
<script src="complex.js"></script>
|
||
|
</body>
|
||
|
</html>
|