Sha256: cbc23709303b59c4ccdcfc0fc10fd0935c6cc2c09f920ed63e557ee6488ffc19

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 KB

Contents

<%#
Copyright © 2012 The Pennsylvania State University

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%>

<%= form_for @generic_file, :url => sufia.generic_file_path, :html => {:multipart => true, :class => 'form-horizontal'} do |f| %>
<%= hidden_field_tag('redirect_tab', 'descriptions') %>
<div id="descriptions_display">
  <h2 class="non lower">Descriptions <small class="pull-right"><span class="error">*</span> indicates required fields</small> </h2>
    <div class="well">

      <%= render :partial=>'generic_files/edit_fields/type', :locals => {f:f} %>
      <% @terms.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>
</div><!-- /row /span6 -->
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sufia-0.1.0 app/views/generic_files/_descriptions.html.erb
sufia-0.0.8 app/views/generic_files/_descriptions.html.erb
sufia-0.0.7 app/views/generic_files/_descriptions.html.erb
sufia-0.0.6 app/views/generic_files/_descriptions.html.erb