53 lines
2.1 KiB
Plaintext
53 lines
2.1 KiB
Plaintext
<div class="project_r_h" xmlns="http://www.w3.org/1999/html">
|
||
<h2 class="project_h2">问题跟踪</h2>
|
||
</div>
|
||
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
|
||
|
||
<%= labelled_form_for @issue, :url => project_issues_path(@project),
|
||
:html => {:id => 'issue-form', :multipart => true} do |f| %>
|
||
<%= error_messages_for 'issue' %>
|
||
<%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
|
||
<div class="newpro_box">
|
||
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
||
</div>
|
||
<div class="newpro_box02 ">
|
||
<% if @issue.safe_attribute? 'watcher_user_ids' -%>
|
||
<div>
|
||
<label class="label" > <%= l(:label_issue_watchers) %>:</label>
|
||
<input id="" name="" size="22" class="fl mb10 h26" type="text" value="搜索添加跟踪者" >
|
||
<span class="search_for_watchers">
|
||
<%= link_to "",
|
||
{:controller => 'watchers', :action => 'new', :project_id => @issue.project},
|
||
:remote => true,
|
||
:method => 'get',
|
||
:class=>"pic_sch mt5 ml5" %>
|
||
</span>
|
||
</div>
|
||
<%= javascript_tag "observeSearchfield('user_search', 'users_for_watcher', '#{ escape_javascript watchers_autocomplete_for_user_path(:user=> @available_watchers, :format => 'js',:flag => 'ture') }')" %>
|
||
<div class="cl"></div>
|
||
<span id="watchers_inputs">
|
||
<%= watchers_checkboxes(@issue, @available_watchers) %>
|
||
</span>
|
||
<div class="cl"></div>
|
||
<div id="watchers_inputs">
|
||
|
||
</div>
|
||
<div class="cl"></div>
|
||
|
||
</ul>
|
||
<div class="cl"></div>
|
||
<% end %>
|
||
<a href="#" class="blue_btn fl ml80" onclick="$('#issue-form').submit();">
|
||
<%= l(:button_create)%>
|
||
</a>
|
||
<%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form','preview',{:class => "blue_btn fl ml10"}%>
|
||
</div>
|
||
<%= javascript_tag "$('#issue_subject').focus();" %>
|
||
<% end %>
|
||
|
||
<div id="preview" class="wiki"></div>
|
||
|
||
<% content_for :header_tags do %>
|
||
<%= robot_exclusion_tag %>
|
||
<% end %>
|