Sha256: b3e825148660fafe640fba13caef530901f6fb571c791967bdb4a0d20424004a

Contents?: true

Size: 1.43 KB

Versions: 17

Compression:

Stored size: 1.43 KB

Contents

<%= node ||= @node; if @edit
  form_remote_tag(:url=>{:controller=>'comments', :action=>"update", :rnd=>rnd})
else
  form_remote_tag(:url=>{:controller=>'comments', :action=>"create", :rnd=>rnd})
end %>
<div class='header'>
  <% if @edit -%>
    <p class="btn_x"><%= link_to_remote(_('btn_x'), :url=>{:controller=>'discussions', :action=>'show', :id=>@comment[:discussion_id]} ) %></p>
  <% elsif @comment && @comment.reply_to -%>
    <p class="btn_x"><%= link_to_function _('btn_x'), "Element.remove('add_comment_form#{@comment.reply_to}');" %></p>
  <% else -%>
    <p class="btn_x"><%= link_to_function _('btn_x'), "['add_comment#{node.zip}', 'add_comment_form#{node.zip}'].each(Element.toggle);" %></p>
  <% end  -%>
  <label for="author_name"><%= _("author")  %></label> <%= visitor.is_anon? ? text_field('comment', 'author_name', :size=>25) : visitor.login %>
  <label for="title"><%= _("title")  %></label> <%= text_field('comment', 'title', :size=>25) %>
</div>
<div class='body'>
  <div id='comment_errors<%= @comment && @comment.reply_to ? @comment.reply_to : '' %>' class='errors'></div>
  <div class='zazen'><%= text_area('comment', 'text', :cols=>nil, :rows=>12 ) %></div>
  <%= hidden_field('comment', 'id') %>
  <%= hidden_field('node', 'id', :value=>(node ? node[:id] : "")) %>
  <%= hidden_field('comment', 'reply_to') %>
  <p class='btn_validate'><input type='submit' value='<%= _('validate') %>'/></p>
</div>
</form>
<%= '</div>' if @edit %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
zena-1.2.8 app/views/comments/_form.rhtml
zena-1.2.7 app/views/comments/_form.rhtml
zena-1.2.6 app/views/comments/_form.rhtml
zena-1.2.5 app/views/comments/_form.rhtml
zena-1.2.4 app/views/comments/_form.rhtml
zena-1.2.3 app/views/comments/_form.rhtml
zena-1.2.2 app/views/comments/_form.rhtml
zena-1.2.1 app/views/comments/_form.rhtml
zena-1.2.0 app/views/comments/_form.rhtml
zena-1.1.3 app/views/comments/_form.rhtml
zena-1.1.2 app/views/comments/_form.rhtml
zena-1.1.1 app/views/comments/_form.rhtml
zena-1.1.0 app/views/comments/_form.rhtml
zena-1.0.0 app/views/comments/_form.rhtml
zena-1.0.0.rc3 app/views/comments/_form.rhtml
zena-1.0.0.rc2 app/views/comments/_form.rhtml
zena-1.0.0.rc1 app/views/comments/_form.rhtml