2016-10-26 18:04:12 +08:00
|
|
|
<div id="muban_popup_box" style="width:820px;">
|
|
|
|
<div class="muban_popup_top">
|
|
|
|
<h3 class="fl">新建里程碑</h3>
|
|
|
|
<a href="javascript:void(0);" class="muban_icons_close fr" onclick="hideModal()"></a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="muban_popup_con " >
|
|
|
|
<div class="clear mt30 ml20 " >
|
|
|
|
<%#= form_tag( url_for(:controller => 'versions', :action => 'update', :is_setting => true, :is_index => @is_index), :remote => true, :id => 'project_applied_form') do %>
|
2016-10-27 16:33:00 +08:00
|
|
|
<%= form_for :version, :url => project_versions_path(@project, :is_setting => @is_setting, :is_issue => @is_issue, :is_create => @is_create, :issue_project_id => @issue_project_id),:html => {:id=>"popub_new_project_version_form", :remote => @is_setting ? true : false} do |f| %>
|
2016-10-26 18:04:12 +08:00
|
|
|
<%#= labelled_form_for @version, :html => {:id => "popub_new_project_version_form", :remote => true, :is_setting => true, :is_index => params[:is_index] } do |f| %>
|
|
|
|
<ul class="pro_newsetting_con mb15 ">
|
|
|
|
<li class="mb10 clear">
|
2016-10-31 15:22:46 +08:00
|
|
|
<label><span class="c_red f12">*</span> 名称 : </label>
|
|
|
|
<%= f.text_field :name, :maxlength => 60, :class=>"w650", :style=>"height: 28px;", :id => "popub_setting_version_name", :no_label => true %>
|
2016-10-26 18:04:12 +08:00
|
|
|
<p class="c_orange ml100" style="display: none" id="pupub_project_setting_version_title">标题不能为空</p>
|
|
|
|
</li>
|
|
|
|
<li class="mb10 clear">
|
2016-10-31 15:22:46 +08:00
|
|
|
<label> 描述 : </label>
|
|
|
|
<%= f.text_field :description, :maxlength => 60, :class=>"w650", :style=>"height:28px;", :no_label => true %>
|
2016-10-26 18:04:12 +08:00
|
|
|
</li>
|
2016-10-27 16:33:00 +08:00
|
|
|
<!--<li class="mb10 clear">-->
|
|
|
|
<!--<label class=" fl"> 结束日期 : </label>-->
|
|
|
|
<!--<%#= f.text_field :effective_date, :size => 10, :readonly => true, :class => "issues_calendar_input fl", :id => "version_effective_date_create", :placeholder=>"结束日期", :style=>"height:28px;", :no_label => true %>-->
|
|
|
|
<!--<%#= calendar_for('version_effective_date_create') %>-->
|
|
|
|
<!--<!–<input type="text" placeholder="结束日期" class="issues_calendar_input fl ">–>-->
|
|
|
|
<!--<!–<a href="" class="issues_data_img fl"></a>–>-->
|
|
|
|
<!--</li>-->
|
2016-10-26 18:04:12 +08:00
|
|
|
<li class="mb10 clear">
|
2016-10-31 15:22:46 +08:00
|
|
|
<label> 状态 : </label>
|
2016-10-26 18:04:12 +08:00
|
|
|
<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]},{:no_label => true },{:style=>"height:28px;"} %>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<a href="javascript:void(0);" class="fr sy_btn_grey mr45" onclick="hideModal()">取消</a>
|
|
|
|
<a href="javascript:void(0);" class="fr sy_btn_blue mr5" onclick="popub_project_version_commit();">保存</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
// 新建版本
|
|
|
|
function popub_project_version_commit()
|
|
|
|
{
|
|
|
|
if(popub_regex_version_name())
|
|
|
|
{
|
|
|
|
hideModal();
|
|
|
|
$("#popub_new_project_version_form").submit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function popub_regex_version_name()
|
|
|
|
{
|
|
|
|
var name = $.trim($("#popub_setting_version_name").val());
|
|
|
|
if(name.length == 0)
|
|
|
|
{
|
|
|
|
$("#pupub_project_setting_version_title").show();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#pupub_project_setting_version_title").hide();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|