socialforge/app/views/versions/_form.html.erb

42 lines
1.7 KiB
Plaintext
Raw Normal View History

<%= back_url_hidden_field_tag %>
<%= error_messages_for 'version' %>
<div id="pro_st_edit_ban" class="pro_st_edit_ban_display">
<ul>
<li >
2015-04-17 12:55:07 +08:00
<label class="label02"><span class="c_red">*</span><%=l(:field_name)%></label>
<%= f.text_field :name, :maxlength => 60,:class=>" w280", :label => ""%>
</li>
<li >
2015-04-17 12:55:07 +08:00
<label class="label02"><%=l(:label_version_description)%></label>
<%= f.text_field :description, :maxlength => 60,:class=>" w280", :label => "" %>
</li>
<li >
2015-04-17 12:55:07 +08:00
<label class="label02"><%=l(:field_status)%></label>
<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]}, :label => "" %>
</li>
2015-08-01 11:35:48 +08:00
<!--<li >-->
<!--<label class="label02"><%#=l(:label_wiki_page)%></label>-->
<!--<%#= f.text_field :wiki_page_title, :size =>60, :label => "", :disabled => @project.wiki.nil? %>-->
<!--</li>-->
<li >
2015-04-17 12:55:07 +08:00
<label class="label02"><%=l(:label_date)%></label>
2015-04-17 10:48:40 +08:00
<%= f.text_field :effective_date, :size => 10, :readonly => true,:class=>"fl" ,:style=>"margin-left:7px;",:label=>""%>
<%= calendar_for('version_effective_date') %>
</li>
<div class="cl mb10"></div>
2015-08-01 11:35:48 +08:00
<!--<li >-->
<!--<label class="label02"><%#=l(:field_sharing)%></label>-->
<!--<%#= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]},:label=>"" %>-->
<!--</li>-->
</ul>
<% @version.custom_field_values.each do |value| %>
<p style="margin-left:-20px;">
<span style="margin-left:10px;">
<%= custom_field_tag_with_label :version, value %>
</span>
</p>
<% end %>
</div>