Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b6665e9411
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 31 lines (31 sloc) 1.392 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<html>
<head>
<link rel="stylesheet" type="text/css" href="../funcunit/qunit/qunit.css" />
<title>form_binder FuncUnit Test</title>
<script type='text/javascript' src='../steal/steal.js?form_binder/form_binder_test.js'></script>
</head>
<body>
<h1 id="qunit-header">form_binder Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-test-area"></div>
<script type='text/ejs' id='form'>
<% var f = form_builder(m) %>
<form <%= f.bindForm() %>>
<%== f.inputs('title', 'body', 'lead', 'is_published') %>
<%== f.input('password', {as: 'password', label: 'Insert password', hint: 'Your password'}) %>
<%== f.input('status', {as: 'select'}) %>
<%== f.input('tags') %>
<%== f.input('author', {as: 'radioGroup'}) %>
<%== f.input('non_existing_attribute') %>
<%== f.input('non_existing_attribute2') %>
<%== f.input('select_field', {as: 'select', values: [['published', 'Published'], ['draft', 'Draft']]}) %>
        <%== f.input('radio_group_field', {as: 'radioGroup', values: [['published', 'Published'], ['draft', 'Draft']]}) %>
        <%== f.input('checkbox_group_field', {as: 'checkboxGroup', values: [['published', 'Published'], ['draft', 'Draft']]}) %>
<input type="submit" />
</form>
</script>
</body>
</html>
Something went wrong with that request. Please try again.