postedit.rhtml

teensyweb/app/views/forum/postedit.rhtml · 553 B

From the archive teensyweb.tar.gz

Download the archive   « Back to the archive contents

<div class="app">
  <%= start_form_tag({:action => 'postedit', :id => @post.id }, {:method => 'post'}) %>
    <label>Subject: <%= text_field_tag('subject', @topic.subject || '', {:size => '60'}) %></label>
    <br /> 
    <%= text_area_tag('content', @post.data || '', {:class => 'editbox'}) %> 
    <br /><br />
    <%= submit_tag("Save") %>
    <%= submit_tag("Preview") %>
    <%= submit_tag("Cancel") %>
  <%= end_form_tag %>
  <% if @preview %>
    <hr />
    <div class="forum">
      <%= format_post @post.data %>
    </div>  
  <% end %>
</div>

Site Stats

Snippets: 1791
Codebases: 571