Sha256: ff40eff4663a702880b857b8855a087a9f480e487acba6018579720b4bfbfeb0
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
<div class="block" id="document_edit" style="display:none;"> <%= form_for(document, :html => { :method => :put }) do |f| %> <% if document and document.errors.any? %> <%= javascript_tag do %> $(document).ready(function(){ toggleDocumentEdit(); }); <% end %> <div class="error"> <ul> <% document.errors.full_messages.each do |msg| %> <li> <%= msg %> </li> <% end %> </ul> </div> <% end %> <div class="form_row"> <div class="form_label"> <%= f.label t('document.info.title.title') %> </div> <div class="form_field"> <%= f.text_field :title, :class => "form_tag" %> </div> </div> <div class="form_row"> <div class="form_label"> <%= f.label t('document.info.description.title') %> </div> <div class="form_field"> <%= f.text_area :description, :class => "form_tag" %> </div> </div> <!-- <div class="form_row"> <div class="form_label"> <%#= f.label t('document.info.file.title') %> </div> <div class="form_field"> <%#= f.file_field :file, :class => "form_tag" %> </div> </div> --> <div class="actions center"> <%= f.submit t('document.actions.edit'), :class => "button" %> </div> <% end %> </div> <% if params[:editing].present? and params[:editing].eql?"true" and document.post_activity.edit_object_by?(current_subject) %> <%= javascript_tag do %> $(document).ready(function(){ toggleDocumentEdit(); }); <% end %> <% end %>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
social_stream-0.12.4 | documents/app/views/common/_edit_form.html.erb |
social_stream-documents-0.4.3 | app/views/common/_edit_form.html.erb |