Sha256: 82eecf70fbed01ff373b3fc1afebee8f65b027974b498cd2e55c0131bc66c072

Contents?: true

Size: 1.46 KB

Versions: 22

Compression:

Stored size: 1.46 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] && can?(:update, document) %>
  <%= javascript_tag do %>
    $(document).ready(function(){
      SocialStream.Repository.toggleDocumentMenu('edit');
    });
  <% end %>
<% end %>

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
social_stream-1.1.12 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-1.1.4 app/views/common_documents/_edit_form.html.erb
social_stream-1.1.11 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-1.1.3 app/views/common_documents/_edit_form.html.erb
social_stream-1.1.10 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-1.1.2 app/views/common_documents/_edit_form.html.erb
social_stream-1.1.9 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.8 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.7 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.6 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.5 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.4 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-1.1.1 app/views/common_documents/_edit_form.html.erb
social_stream-1.1.3 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.2 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.1 documents/app/views/common_documents/_edit_form.html.erb
social_stream-1.1.0 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-1.1.0 app/views/common_documents/_edit_form.html.erb
social_stream-1.0.1 documents/app/views/common_documents/_edit_form.html.erb
social_stream-documents-1.0.0 app/views/common_documents/_edit_form.html.erb