Sha256: 48c10d1ea5b845b2d87344059fb175ac609fe2458c329be9976feb17e039a913
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
#{ form_for( @comment, :method => :post, :action => @form_save_url, :id => :comment_form ) do |f| f.input_hidden(:csrf_token, get_csrf_token) f.input_hidden(:id , @comment.id) if !@comment.user name = @comment.name website = @comment.website email = @comment.email else name = @comment.user.name website = @comment.user.website email = @comment.user.email end f.input_text( lang('comments.labels.name'), :name, :value => name, :disabled => :disabled ) f.input_text( lang('comments.labels.website'), :website, :value => website ) f.input_text( lang('comments.labels.email'), :email, :value => email ) f.select( lang('comments.labels.status'), :status, :values => Comments::Model::Comment.status_hash, :selected => @comment.status, :size => 1 ) f.textarea( lang('comments.labels.comment'), :comment, :rows => 10 ) f.g.div(:class => 'clearfix') do f.g.div(:class => 'button') do f.g.input(:type => 'submit', :value => lang('comments.buttons.save')) end end end }
Version data entries
4 entries across 4 versions & 1 rubygems