Sha256: dc7c0271a95bd72215b8e3c9cb9fdba4d83f9dbdaa523d5aa7c5936dc4ace612

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 KB

Contents

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

    <div class="body">
        #{form_for(
            @comment,
            :method              => :post,
            :action              => Comments::Controller::Comments.r(:save),
            :id                  => :comment_form,
            :'data-autosave-url' => Comments::Controller::Comments.r(:autosave)
          ) 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.input(
              :type  => 'submit',
              :value => lang('comments.buttons.save'),
              :class => 'button'
            )
          end}
    </div>
</section>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zen-0.4.3 lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml
zen-0.4.2 lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml
zen-0.4.1 lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml