|
|
@ -8,7 +8,7 @@
|
|
|
|
link_to(' '.html_safe, attachment_path(attachment, :attachment_id => "p#{i}", :format => 'js'), :method => 'delete', :remote => true, :class => 'remove-upload') %>
|
|
|
|
link_to(' '.html_safe, attachment_path(attachment, :attachment_id => "p#{i}", :format => 'js'), :method => 'delete', :remote => true, :class => 'remove-upload') %>
|
|
|
|
<%#= render :partial => 'tags/tag', :locals => {:obj => attachment, :object_flag => "6"} %>
|
|
|
|
<%#= render :partial => 'tags/tag', :locals => {:obj => attachment, :object_flag => "6"} %>
|
|
|
|
<span class="ispublic-label"><%= l(:field_is_public)%>:</span>
|
|
|
|
<span class="ispublic-label"><%= l(:field_is_public)%>:</span>
|
|
|
|
<%= check_box_tag("attachments[p#{i}][is_public_checkbox]", attachment.is_public, :class => 'is_public')%>
|
|
|
|
<%= check_box_tag("attachments[p#{i}][is_public_checkbox]", attachment.is_public,attachment.is_public == 1 ? true : false, :class => 'is_public')%>
|
|
|
|
<%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.token}" %>
|
|
|
|
<%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.token}" %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
@ -20,7 +20,7 @@
|
|
|
|
link_to(' '.html_safe, attachment_path(attachment, :attachment_id => "p#{i}", :format => 'js'), :method => 'delete', :remote => true, :class => 'remove-upload') %>
|
|
|
|
link_to(' '.html_safe, attachment_path(attachment, :attachment_id => "p#{i}", :format => 'js'), :method => 'delete', :remote => true, :class => 'remove-upload') %>
|
|
|
|
<%#= render :partial => 'tags/tag', :locals => {:obj => attachment, :object_flag => "6"} %>
|
|
|
|
<%#= render :partial => 'tags/tag', :locals => {:obj => attachment, :object_flag => "6"} %>
|
|
|
|
<span class="ispublic-label"><%= l(:field_is_public)%>:</span>
|
|
|
|
<span class="ispublic-label"><%= l(:field_is_public)%>:</span>
|
|
|
|
<%= check_box_tag("attachments[p#{i}][is_public_checkbox]", attachment.is_public, :class => 'is_public')%>
|
|
|
|
<%= check_box_tag("attachments[p#{i}][is_public_checkbox]", attachment.is_public,attachment.is_public == 1 ? true : false, :class => 'is_public')%>
|
|
|
|
<%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.token}" %>
|
|
|
|
<%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.token}" %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|