Sha256: ff028a65a9258ea1e893b1584a0d76be4c4fccad580103c515bee03be0db1212

Contents?: true

Size: 1.53 KB

Versions: 34

Compression:

Stored size: 1.53 KB

Contents

<div class="block document_menu" 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(){
      SocialStream.Repository.toggleDocumentMenu('edit');
    });
  <% end %>
<% end %>

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
social_stream-0.30.1 documents/app/views/common_documents/_edit_form.html.erb
social_stream-0.30.0 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-0.18.0 app/views/common_documents/_edit_form.html.erb
social_stream-0.29.0 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-0.17.0 app/views/common_documents/_edit_form.html.erb
social_stream-0.28.4 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-0.16.1 app/views/common_documents/_edit_form.html.erb
social_stream-0.28.1 documents/app/views/common_documents/_edit_form.html.erb
social_stream-0.28.0 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-0.16.0 app/views/common_documents/_edit_form.html.erb
social_stream-0.27.3 documents/app/views/common_documents/_edit_form.html.erb
social_stream-0.27.2 documents/app/views/common_documents/_edit_form.html.erb
social_stream-0.27.1 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-0.15.1 app/views/common_documents/_edit_form.html.erb
social_stream-0.27.0 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-0.15.0 app/views/common_documents/_edit_form.html.erb
social_stream-0.26.2 documents/app/views/common_documents/_edit_form.html.erb
social_stream-0.26.1 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-0.14.1 app/views/common_documents/_edit_form.html.erb
social_stream-0.26.0 documents/app/views/common_documents/_edit_form.html.erb