Created
September 30, 2012 16:11
-
-
Save steida/3807295 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This file was automatically generated from dommerge.soy. | |
| // Please don't edit this file by hand. | |
| goog.provide('dommerge.templates'); | |
| goog.require('soy'); | |
| /** | |
| * @param {Object.<string, *>=} opt_data | |
| * @return {string} | |
| * @notypecheck | |
| */ | |
| dommerge.templates.form = function(opt_data) { | |
| return '<form id=\'form\'>' + ((opt_data.input) ? '<h1>Hi.</h1>' : '<h1>Input is required</h1>') + '<label>input<input name=\'input\' value=\'' + soy.$$escapeHtmlAttribute(opt_data.input) + '\'>' + soy.$$escapeHtml(opt_data.input) + '</label><br><label>textarea<textarea style=\'font-size: ' + soy.$$escapeHtmlAttribute(soy.$$filterCssValue(opt_data.textarea.length)) + 'px\' name=\'textarea\'>' + soy.$$escapeHtmlRcdata(opt_data.textarea) + '</textarea>' + soy.$$escapeHtml(opt_data.textarea) + '</label><br><label>select<select name=\'select\'><option>' + soy.$$escapeHtml(opt_data.input) + '</option><option>' + soy.$$escapeHtml(opt_data.textarea) + '</option></select></label><br><label>multiselect<select multiple name=\'multiple-select\'><option>' + soy.$$escapeHtml(opt_data.input) + '</option><option>' + soy.$$escapeHtml(opt_data.textarea) + '</option></select></label><br><label>Male<input type=\'radio\' name=\'radio\' value=\'male\'></label><label>Female<input type=\'radio\' name=\'radio\' value=\'female\'></label><br><label>I have a bike<input type=\'checkbox\' name=\'checkbox\' value=\'Bike\'></label><label>I have a car<input type=\'checkbox\' name=\'checkbox\' value=\'Car\'></label></form>'; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment