app/views/people/new.html.haml in artfully_ose-1.2.0 vs app/views/people/new.html.haml in artfully_ose-1.3.0.pre1

- old
+ new

@@ -1,10 +1,24 @@ - in_section :people - content_for :title do New Contact -- content_for :header do - %h1 Create a New Contact - + +%h1 Create a New Contact .row{"ng-controller" => "NewPersonCtrl"} - .span6.offset3 + .span4.offset1 + = render :partial => "shared/error_messages", :locals => { :target => @person } = render :partial => 'form', :locals => { :person => @person } + .span4.people-menu + +- content_for :custom_js do + + :javascript + $(document).ready(function(){ + new UserFinder('form#new_person', '.people-menu'); + + $(document).on('click', '.people-menu > .person-link', function() { + var person = $(this); + window.location = '/people/' + person.attr('data-person-id') + }); + }); +