Commit ff1cbbc5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Issue restyle

parent 7b4f5452
%div.issue-form-holder %div.issue-form-holder
.issue-show-holder.ui-box = form_for [@project, @issue], :remote => request.xhr? do |f|
%h3 %div
= @issue.new_record? ? "New issue" : "Edit Issue ##{@issue.id}" %span.entity-info
- unless @issue.new_record? - if request.xhr?
.right = link_to "#back", :onclick => "backToIssues();" do
- if @issue.closed .entity-button
%span.tag.high Resolved Back
%i
- else
- if @issue.new_record?
= link_to project_issues_path(@project) do
.entity-button
Back
%i
- else - else
%span.tag.today Open = link_to project_issue_path(@project, @issue) do
= form_for [@project, @issue], :remote => "true" do |f| .entity-button
.data Back
%i
%h2= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}"
%hr
%table.no-borders %table.no-borders
-if @issue.errors.any? -if @issue.errors.any?
%tr %tr
%td Errors %td{:colspan => 2}
%td
#error_explanation #error_explanation
- @issue.errors.full_messages.each do |msg| - @issue.errors.full_messages.each do |msg|
%span= msg %span= msg
%br %br
%tr
%td= f.label :title
%td= f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255
%tr %tr
%td= f.label :assignee_id %td= f.label :assignee_id
...@@ -36,10 +44,13 @@ ...@@ -36,10 +44,13 @@
%tr %tr
%td= f.label :closed %td= f.label :closed
%td= f.check_box :closed %td= f.check_box :closed
.buttons
= f.text_area :title, :style => "width:718px; height:100px", :maxlength => 255
%br
%br
.merge-tabs
= f.submit 'Save', :class => "grey-button" = f.submit 'Save', :class => "grey-button"
 
- unless @issue.new_record?
.right .right
- if request.xhr? = link_to 'Remove', [@project, @issue], :confirm => 'Are you sure?', :method => :delete, :class => "red-button"
= link_to_function "Back", "backToIssues();", :class => "grey-button"
- else
= link_to "Back", [@project, @issue], :class => "grey-button"
...@@ -96,7 +96,7 @@ describe "Issues" do ...@@ -96,7 +96,7 @@ describe "Issues" do
end end
it "should open new issue form" do it "should open new issue form" do
page.should have_content("New issue") page.should have_content("New Issue")
end end
describe "fill in" do describe "fill in" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment