edit.rhtml

teensyweb/app/views/wiki/edit.rhtml · 547 B

From the archive teensyweb.tar.gz

Download the archive   « Back to the archive contents

<%= render_partial "syntax" %>
<div class="edit">
<%= start_form_tag({:action => 'edit', :id => page_name }, {:method => 'post'}) %>
<%= text_area_tag('content', @revision.data, {:class => 'editbox'}) %> 
<br />
<label for="comment">Comment: </label>
<%= text_field_tag('comment', params['comment'] || '', {:size => '60'}) %> 
<br />
<%= submit_tag("Save") %>
<%= submit_tag("Preview") %>
<%= submit_tag("Cancel") %>
<%= end_form_tag %>
<% if @preview %>
  <hr />
  <div class="forum">
    <%= wikify @revision.data %>
  </div>  
<% end %>
</div>

Site Stats

Snippets: 1791
Codebases: 571