- value = input.get_value_from_submit(@submit, self) - attrs = {name: "formily_inputs[#{input.id}]", id: "textarea_#{input.id}"} - attrs['data-location'] = 'location' if value == 'device_location' - attrs['data-location'] = 'address' if input.default_value == 'device_location_address' - attrs['disabled'] = 'disabled' if @submit.is_complete? - unless input.is_deleted? && value.nil? .row.formily-input .columns.large-12.clearfix %label.left{for: "textarea_#{input.id}"}= input.label   - if input.description.present? %span.has-tip.tip-bottom{'data-tooltip'=> '', 'aria-haspopup'=>true, title: input.description}  ?  %textarea{input.render_attributes_hash, attrs} = value.to_s.sub(/\s*\z/, '')