Skip to content

Commit

Permalink
Add tracker_name to developer form; change pivotal tracker controller…
Browse files Browse the repository at this point in the history
… to work with actual test xml
  • Loading branch information
qxjit committed Feb 21, 2012
1 parent 3b4b2d5 commit af62ebd
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 45 deletions.
2 changes: 1 addition & 1 deletion app/controllers/pivotal_activity_controller.rb
Expand Up @@ -7,7 +7,7 @@ def activity

params[:activity][:stories].each do |story_info|
Story.story_update params[:activity][:project_id],
story_info[:story]
story_info
end
end

Expand Down
24 changes: 24 additions & 0 deletions app/views/developers/_form.html.haml
@@ -0,0 +1,24 @@
= form_for @developer do |f|
= f.error_messages
%p
= f.label :name
= f.text_field :name

%p
= f.label :tracker_name
= f.text_field :tracker_name

%p
= f.label :points
= f.text_field :points_accepted, size: 12

%p
= f.label :last_question
= f.datetime_select :last_question, ampm: true

%p
= f.label :last_broke_production
= f.date_select :last_broke_production

%p
= submit_tag "MAKE GO!!!"
21 changes: 1 addition & 20 deletions app/views/developers/edit.html.haml
Expand Up @@ -4,25 +4,6 @@

place for edit of details about dev to track is go here.

= form_for @developer do |f|
= f.error_messages
%p
= f.label :name
= f.text_field :name

%p
= f.label :points
= f.text_field :points_accepted, size: 12

%p
= f.label :last_question
= f.datetime_select :last_question, ampm: true

%p
= f.label :last_broke_production
= f.date_select :last_broke_production

%p
= submit_tag "MAKE GO!!!"
= render "form"

= link_to 'CANCEL AND GO HOME', developers_path
21 changes: 1 addition & 20 deletions app/views/developers/new.html.haml
Expand Up @@ -4,25 +4,6 @@

place for of make new dev to track is go here.

= form_for @developer do |f|
= f.error_messages
%p
= f.label :name
= f.text_field :name

%p
= f.label :points
= f.text_field :points_accepted, size: 12

%p
= f.label :last_question
= f.datetime_select :last_question, ampm: true

%p
= f.label :last_broke_production
= f.date_select :last_broke_production

%p
= submit_tag "MAKE GO!!!"
= render "form"

= link_to 'CANCEL AND GO HOME', developers_path
7 changes: 3 additions & 4 deletions spec/controllers/pivotal_activity_controller_spec.rb
Expand Up @@ -23,10 +23,9 @@
project_id: "890890",
event_type: "story_update",
stories: [
{ story:
{ id: "123123",
accepted_at: "2012/02/20 21:21:46 UTC",
current_state: "accepted" } }
{ id: "123123",
accepted_at: "2012/02/20 21:21:46 UTC",
current_state: "accepted" }
]
}

Expand Down

0 comments on commit af62ebd

Please sign in to comment.