Sha256: 74b29b1873117ab47e9f43ddd63e4ca56e09948068dbdbd3cd60a9b0bdcbfafc
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
<%# convert class variable to a local variable if the local hasn't been set %> <% generic_file ||= @generic_file %> <div id="descriptions_display" class="tab-pane active"> <%= form_for generic_file, :url => sufia.generic_file_path(@generic_file), :html => {:multipart => true, :class => 'form-horizontal'} do |f| %> <%= hidden_field_tag('redirect_tab', 'descriptions') %> <h2 class="non lower">Descriptions <small class="pull-right"><span class="error">*</span> indicates required fields</small> </h2> <div class="well"> <% (generic_file.terms_for_editing).each do |term| %> <%= render :partial => "generic_files/field_form", :locals => { generic_file: generic_file, f: f, render_req: true, key: term } %> <% end %> </div><!-- /well --> <div class="row"> <div class="form-actions"> <%= f.button '<i class="icon-save"></i> Save Descriptions'.html_safe, :type => 'submit', :class => 'btn-primary', :onclick => "confirmation_needed = false;", :id => "upload_submit", :name => "update_descriptions" %> </div> </div> <% end %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems