Sha256: 403926bf6d3ff85e17f3f691a795ec8313ba152fe8b836b7a831bed8efd1416f
Contents?: true
Size: 1.75 KB
Versions: 14
Compression:
Stored size: 1.75 KB
Contents
<% if params[:zazen] == 'true' -%> <% remote_form_for(:node, @node, :url => node_path(@node[:zip]), :html => {:method => :put, :class => 'ajax_edit'}) do |f| -%> <div class='hidden'> <input type='hidden' class='hidden' name='dom_id' value='<%= params[:dom_id] %>'/> <input type='hidden' class='hidden' name='zazen' value='true'/> <% if params[:publish] == 'force' || (params[:publish] == 'true' && @node.v_status == Zena::Status::Pub) -%> <input type='hidden' name='node[v_status]' value='<%= Zena::Status::Pub %>'/> <% end -%> <% if params[:publish] -%> <input type='hidden' class='hidden' name='publish' value='<%= params[:publish] %>'/> <% end -%> </div> <div class='wrapper'> <%= f.text_area(params[:attribute], :cols => nil, :rows => nil, :class=>'ajax_edit', :id => "#{params[:dom_id]}_") %> <input type='submit' text='<%= _('validate') %>'/> </div> <% end -%> <% else value = Node.zafu_attribute(@node, params[:attribute]) -%> <%= form_remote_tag(:url => node_path(@node[:zip]), :method => :put, :html => {:class => 'ajax_edit'}) %> <div class='hidden'> <input type='hidden' name='dom_id' value='<%= params[:dom_id] %>'/> <% if params[:publish] == 'force' || (params[:publish] == 'true' && @node.v_status == Zena::Status::Pub) -%> <input type='hidden' name='node[v_status]' value='<%= Zena::Status::Pub %>'/> <% end -%> <% if params[:publish] -%> <input type='hidden' class='hidden' name='publish' value='<%= params[:publish] %>'/> <% end -%> </div> <div class='wrapper'><input type='text' id='<%= params[:dom_id] %>_' name='node[<%= params[:attribute] %>]' value='<%= value %>' size='<%= [value.to_s.size, 4].max %>'/></div> </form> <% end -%>
Version data entries
14 entries across 14 versions & 1 rubygems