boiler/attachments/sammy/plugins/sammy.form.js
function(keypath, value, attributes) {
      var selected;
      attributes = $.extend(this._attributesForKeyPath(keypath), attributes);
      selected = attributes.value;
      attributes.value = getStringContent(this.object, value);
      if (selected == attributes.value) {
        attributes.checked = 'checked';
      }
      return simple_element('input', $.extend({type:'radio'}, attributes));
    }
function(keypath, value, attributes) {
      var selected;
      attributes = $.extend(this._attributesForKeyPath(keypath), attributes);
      selected = attributes.value;
      attributes.value = getStringContent(this.object, value);
      if (selected == attributes.value) {
        attributes.checked = 'checked';
      }
      return simple_element('input', $.extend({type:'radio'}, attributes));
    }
function ( keypath , value , attributes ) { var selected ; attributes = $ . extend ( this . _attributesForKeyPath ( keypath ) , attributes ) ; selected = attributes . value ; attributes . value = getStringContent ( this . object , value ) ; if ( selected == attributes . value ) { attributes . checked = 'checked' ; } return simple_element ( 'input' , $ . extend ( { type : 'radio' } , attributes ) ) ; }
creates a radio input for keypath with the value `value`. Multiple radios can be created with different value, if `value` equals the current value of the key of the form builder's object the attribute checked='checked' will be added.
creates a radio input for keypath with the value value . Multiple radios can be created with different value if value equals the current value of the key of the form builder s object the attribute checked = checked will be added .