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