Sha256: 231d56b565ca8c7410f44df68a5180c800e8fcd84f83ee6ce867e9e8fdf8f0e0

Contents?: true

Size: 942 Bytes

Versions: 2

Compression:

Stored size: 942 Bytes

Contents

- with_error_report(@topic.errors.on(:name)) do
  = form.label :name, 'Discussion title', :class => 'required'
  %br
  = form.text_field :name, :class => 'titular'
  - if admin?
    %br
    %span.quiet
      = form.check_box :sticky
      %label{:for => 'topic_sticky', :class => 'admin'} Sticky
      = form.check_box :locked
      %label{:for => 'topic_locked', :class => 'admin'} Locked

- with_error_report(@topic.errors.on(:body)) do
  = form.label :name, 'Opening message'
  %br
  = form.text_area :body, :class=> 'standard', :rows => 12

- unless @topic.page && !Radiant::Config['forum.comments_have_attachments']
  = render :partial => 'posts/uploader', :locals => {:post => @topic.first_post}

- if @topic.new_record? || admin?
  - with_error_report(@topic.errors.on(:forum)) do
    = form.label :forum_id, 'File in category:'
    %br
    = form.select :forum_id, Forum.visible.collect {|f| [ f.name, f.id ] }, :class=> 'standard'
  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-forum-extension-0.6.1 app/views/topics/_form.html.haml
radiant-forum-extension-0.6.0 app/views/topics/_form.html.haml