fieldlist-array.stub 1.1 KB

123456789101112131415161718192021
  1. <dl class="list-unstyled fieldlist" data-name="{%fieldName%}" data-template="{%fieldName%}tpl">
  2. <dd>
  3. <ins>{:__('{%itemValue%}')}</ins>
  4. </dd>
  5. <dd>
  6. <ins><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></ins>
  7. </dd>
  8. </dl>
  9. <textarea name="{%fieldName%}" class="form-control hide" cols="30" rows="5">{%fieldValue%}</textarea>
  10. <script id="{%fieldName%}tpl" type="text/html">
  11. <dd class="form-inline">
  12. <ins><input type="text" name="<%=name%>[<%=index%>][value]" class="form-control" size="15" value="<%=row%>"/></ins>
  13. <ins>
  14. <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
  15. <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
  16. </ins>
  17. </dd>
  18. </script>