Mercurial > hg > soundsoftware-site
diff app/views/issues/.svn/text-base/_form.rhtml.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 40f7cfd4df19 |
children | cbce1fd3b1b7 |
line wrap: on
line diff
--- a/app/views/issues/.svn/text-base/_form.rhtml.svn-base Fri Sep 24 14:06:04 2010 +0100 +++ b/app/views/issues/.svn/text-base/_form.rhtml.svn-base Fri Nov 19 13:24:41 2010 +0000 @@ -8,8 +8,8 @@ <p><%= f.text_field :subject, :size => 80, :required => true %></p> -<% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %> -<p><%= f.text_field :parent_issue_id, :size => 10 %></p> +<% if User.current.allowed_to?(:manage_subtasks, @project) %> +<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p> <div id="parent_issue_candidates" class="autocomplete"></div> <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> <% end %> @@ -26,11 +26,11 @@ </div> <% if @issue.new_record? %> -<p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> +<p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> <% end %> <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> -<p><label><%= l(:label_issue_watchers) %></label> +<p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> <% @issue.project.users.sort.each do |user| -%> <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> <% end -%>