<input type="text" required>
<input type="text" id="text" name="text" minlength="2" maxlength="10">
<input type="text" name="end" id="end" class="form-control" value="{$content.end}" placeholder="到期日 YYYY-MM-DD" pattern="{literal}(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31)){/literal}" required>
<input type="number" min="10" max="100">
<div class="form-group">
<label for="title">待辦事項</label>
<input type="text" name="title" id="title" class="form-control" placeholder="待辦事項" value="{$content.title}" minlength="1" maxlength="10" required>
</div>
<!-- 省略 -->
<div class="form-group">
<label for="title">到期日</label>
<input type="text" name="end" id="end" class="form-control" value="{$content.end}" placeholder="到期日 YYYY-MM-DD" pattern="{literal}(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31)){/literal}" required>
</div>
<link rel="stylesheet" href="../class/formValidator/css/validationEngine.jquery.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../class/formValidator/css/template.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script src="../class/formValidator/js/languages/jquery.validationEngine-zh_TW.js" type="text/javascript"></script>
<script src="../class/formValidator/js/jquery.validationEngine.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#myForm").validationEngine({
inlineValidation: true,
success : false,
failure : function() {}
});
});
</script>
<input type="text" name="num" id="num" class="validate[required, min[1], max[10]]">
<input type="text" name="mail" id="mail" class="validate[required , custom[email]]">
<div class="form-group">
<label for="title">待辦事項</label>
<input type="text" name="title" id="title" class="form-control validate[required,, min[1], max[10]]" placeholder="待辦事項" value="{$content.title}">
</div>
<!-- 省略 -->
<div class="form-group">
<label for="title">到期日</label>
<input type="text" name="end" id="end" class="form-control validate[required , custom[date]]" value="{$content.end}" onClick="WdatePicker({literal}{dateFmt:'yyyy-MM-dd',startDate:'%y-%M-%d',minDate:'%y-%M-%d'}{/literal})" placeholder="到期日YYYY-MM-DD">
</div>
<!--省略 -->
<div class="form-group">
<label for="assign">指派對象</label>
<!-- b4-form-check-inline-->
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input validate[minCheckbox[1]]" type="checkbox" name="assign[]" id="assign_0" value="爸爸" {if "爸爸"|in_array:$content.assign_arr}checked="checked"{/if}>爸爸
</label>
<label class="form-check-label">
<input class="form-check-input validate[minCheckbox[1]" type="checkbox" name="assign[]" id="assign_1" value="媽媽" {if "媽媽"|in_array:$content.assign_arr}checked="checked"{/if}>媽媽
</label>
<label class="form-check-label">
<input class="form-check-input validate[minCheckbox[1]" type="checkbox" name="assign[]" id="assign_2" value="哥哥" {if "哥哥"|in_array:$content.assign_arr}checked="checked"{/if}>哥哥
</label>
<label class="form-check-label">
<input class="form-check-input validate[minCheckbox[1]" type="checkbox" name="assign[]" id="assign_3" value="妹妹" {if "妹妹"|in_array:$content.assign_arr}checked="checked"{/if}>妹妹
</label>
<label class="form-check-label">
<input class="form-check-input validate[minCheckbox[1]" type="checkbox" name="assign[]" id="assign_4" value="我" {if "我"|in_array:$content.assign_arr}checked="checked"{/if}>我
</label>
</div>
</div>