Sha256: 2d298ffb1878cfde9880e06cda17e8880d3263d441063c45a522dc8e56166cc3

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

<section>
    <header>
        <h1>#{get_breadcrumbs}</h1>
    </header>

    #{form_for(
        @comment,
        :method => :post,
        :action => Comments::Controller::Comments.r(:save),
        :id     => :comment_form
      ) do |f|
        f.input_hidden(:csrf_token, get_csrf_token)
        f.input_hidden(:id        , @comment.id)

        f.input_text(
          lang('comments.labels.name'),
          :name,
          :value    => @comment.user_name,
          :disabled => :disabled
        )

        if @comment.user.nil?

        f.input_text(
          lang('comments.labels.website'),
          :website,
          :value     => @comment.website,
          :maxlength => 255
        )

        f.input_text(
          lang('comments.labels.email'),
          :email,
          :value     => @comment.email,
          :required  => :required,
          :maxlength => 255
        )

        end

        f.select(
          lang('comments.labels.status'),
          :comment_status_id,
          :values   => Comments::Model::Comment.status_hash,
          :selected => @comment.comment_status_id,
          :size     => 1,
          :required => :required
        )

        f.textarea(
          lang('comments.labels.comment'),
          :comment,
          :rows     => 10,
          :required => :required
        )

        f.g.div(:class => 'button') do
          f.g.input(:type => 'submit', :value => lang('comments.buttons.save'))
        end
      end}
</section>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zen-0.3 lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml
zen-0.3b1 lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml
zen-0.3b lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml