{"action":"created","comment":{"url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/comments/27774358","id":27774358,"diff_hunk":"@@ -81,14 +81,16 @@\n                   <%= f.text_field :state, 'class' => 'form-control short', 'placeholder' => 'State', 'style' => 'display: inline' %>\n                 </div>\n                 <div class=\"form-group student\">\n-                  <label>Your date of birth</label>\n-                  <%= f.text_field :birthdate, 'class' => 'form-control short', 'placeholder' => '2/28/1994' %>\n+                  <label>Your date of birth (MM/DD/YYYY)</label>\n+                  <%= f.text_field :birthdate, 'class' => 'form-control short', 'placeholder' => '2/28/1994', 'pattern' => '[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}' %>\n                 </div>\n \n+                <% if @student_id_required %>\n                 <div class=\"form-group student\">\n                   <label>Your <%= @program_site %> Student ID</label>\n-                  <%= f.text_field :student_id, 'class' => 'form-control short', 'title' => 'Student ID' %>\n+                  <%= f.text_field :student_id, 'class' => 'form-control short', 'title' => 'Student ID', 'required' => 'required' %>","path":"app/views/enrollments/_form.html.erb","position":14,"original_position":14,"commit_id":"e027cf13b80c27c14ef1d305c0f68cc12acae92e","original_commit_id":"e027cf13b80c27c14ef1d305c0f68cc12acae92e","user":{"login":"adamdruppe","id":600799,"avatar_url":"https://avatars.githubusercontent.com/u/600799?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdruppe","html_url":"https://github.com/adamdruppe","followers_url":"https://api.github.com/users/adamdruppe/followers","following_url":"https://api.github.com/users/adamdruppe/following{/other_user}","gists_url":"https://api.github.com/users/adamdruppe/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdruppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdruppe/subscriptions","organizations_url":"https://api.github.com/users/adamdruppe/orgs","repos_url":"https://api.github.com/users/adamdruppe/repos","events_url":"https://api.github.com/users/adamdruppe/events{/privacy}","received_events_url":"https://api.github.com/users/adamdruppe/received_events","type":"User","site_admin":false},"body":"On Sat, Apr 04, 2015 at 08:03:56PM -0700, Brian Sadler wrote:\n> what happens if this is hidden, but still required?  it wouldn't be rendered so it wouldn't cause an error, right?\n\ncorrect, it doesn't get put out in the HTML at all so it\nworks. (You can confirm this by signing up as a coach, those\ncampaigns don't ask for student id yet you can still go through\nthe process. We'll want to actually do this on staging to confirm\nbut it works on my box now.)\n\n","created_at":"2015-04-05T03:05:20Z","updated_at":"2015-04-05T03:05:20Z","html_url":"https://github.com/beyond-z/beyondz-platform/pull/323#discussion_r27774358","pull_request_url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323","_links":{"self":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/comments/27774358"},"html":{"href":"https://github.com/beyond-z/beyondz-platform/pull/323#discussion_r27774358"},"pull_request":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323"}}},"pull_request":{"url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323","id":32641468,"html_url":"https://github.com/beyond-z/beyondz-platform/pull/323","diff_url":"https://github.com/beyond-z/beyondz-platform/pull/323.diff","patch_url":"https://github.com/beyond-z/beyondz-platform/pull/323.patch","issue_url":"https://api.github.com/repos/beyond-z/beyondz-platform/issues/323","number":323,"state":"open","locked":false,"title":"lots more fixes and tweaks","user":{"login":"adamdruppe","id":600799,"avatar_url":"https://avatars.githubusercontent.com/u/600799?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdruppe","html_url":"https://github.com/adamdruppe","followers_url":"https://api.github.com/users/adamdruppe/followers","following_url":"https://api.github.com/users/adamdruppe/following{/other_user}","gists_url":"https://api.github.com/users/adamdruppe/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdruppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdruppe/subscriptions","organizations_url":"https://api.github.com/users/adamdruppe/orgs","repos_url":"https://api.github.com/users/adamdruppe/repos","events_url":"https://api.github.com/users/adamdruppe/events{/privacy}","received_events_url":"https://api.github.com/users/adamdruppe/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-04T23:43:05Z","updated_at":"2015-04-05T03:05:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f7acafb3042634d9462972e660bbf93cabcb8a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323/commits","review_comments_url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323/comments","review_comment_url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beyond-z/beyondz-platform/issues/323/comments","statuses_url":"https://api.github.com/repos/beyond-z/beyondz-platform/statuses/e027cf13b80c27c14ef1d305c0f68cc12acae92e","head":{"label":"adamdruppe:fixes","ref":"fixes","sha":"e027cf13b80c27c14ef1d305c0f68cc12acae92e","user":{"login":"adamdruppe","id":600799,"avatar_url":"https://avatars.githubusercontent.com/u/600799?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdruppe","html_url":"https://github.com/adamdruppe","followers_url":"https://api.github.com/users/adamdruppe/followers","following_url":"https://api.github.com/users/adamdruppe/following{/other_user}","gists_url":"https://api.github.com/users/adamdruppe/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdruppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdruppe/subscriptions","organizations_url":"https://api.github.com/users/adamdruppe/orgs","repos_url":"https://api.github.com/users/adamdruppe/repos","events_url":"https://api.github.com/users/adamdruppe/events{/privacy}","received_events_url":"https://api.github.com/users/adamdruppe/received_events","type":"User","site_admin":false},"repo":{"id":18373804,"name":"beyondz-platform","full_name":"adamdruppe/beyondz-platform","owner":{"login":"adamdruppe","id":600799,"avatar_url":"https://avatars.githubusercontent.com/u/600799?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdruppe","html_url":"https://github.com/adamdruppe","followers_url":"https://api.github.com/users/adamdruppe/followers","following_url":"https://api.github.com/users/adamdruppe/following{/other_user}","gists_url":"https://api.github.com/users/adamdruppe/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdruppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdruppe/subscriptions","organizations_url":"https://api.github.com/users/adamdruppe/orgs","repos_url":"https://api.github.com/users/adamdruppe/repos","events_url":"https://api.github.com/users/adamdruppe/events{/privacy}","received_events_url":"https://api.github.com/users/adamdruppe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamdruppe/beyondz-platform","description":"This is where Beyond Z participants login and access their leadership development portal.","fork":true,"url":"https://api.github.com/repos/adamdruppe/beyondz-platform","forks_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/forks","keys_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/teams","hooks_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/hooks","issue_events_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/issues/events{/number}","events_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/events","assignees_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/assignees{/user}","branches_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/branches{/branch}","tags_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/tags","blobs_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/languages","stargazers_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/stargazers","contributors_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/contributors","subscribers_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/subscribers","subscription_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/subscription","commits_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/contents/{+path}","compare_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/merges","archive_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/downloads","issues_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/issues{/number}","pulls_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/labels{/name}","releases_url":"https://api.github.com/repos/adamdruppe/beyondz-platform/releases{/id}","created_at":"2014-04-02T16:49:57Z","updated_at":"2015-04-02T18:47:29Z","pushed_at":"2015-04-05T02:53:55Z","git_url":"git://github.com/adamdruppe/beyondz-platform.git","ssh_url":"git@github.com:adamdruppe/beyondz-platform.git","clone_url":"https://github.com/adamdruppe/beyondz-platform.git","svn_url":"https://github.com/adamdruppe/beyondz-platform","homepage":null,"size":29622,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"beyond-z:staging","ref":"staging","sha":"db29b761df32e54885a5fceedd2e786a8aaa32cd","user":{"login":"beyond-z","id":6362885,"avatar_url":"https://avatars.githubusercontent.com/u/6362885?v=3","gravatar_id":"","url":"https://api.github.com/users/beyond-z","html_url":"https://github.com/beyond-z","followers_url":"https://api.github.com/users/beyond-z/followers","following_url":"https://api.github.com/users/beyond-z/following{/other_user}","gists_url":"https://api.github.com/users/beyond-z/gists{/gist_id}","starred_url":"https://api.github.com/users/beyond-z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beyond-z/subscriptions","organizations_url":"https://api.github.com/users/beyond-z/orgs","repos_url":"https://api.github.com/users/beyond-z/repos","events_url":"https://api.github.com/users/beyond-z/events{/privacy}","received_events_url":"https://api.github.com/users/beyond-z/received_events","type":"Organization","site_admin":false},"repo":{"id":16553644,"name":"beyondz-platform","full_name":"beyond-z/beyondz-platform","owner":{"login":"beyond-z","id":6362885,"avatar_url":"https://avatars.githubusercontent.com/u/6362885?v=3","gravatar_id":"","url":"https://api.github.com/users/beyond-z","html_url":"https://github.com/beyond-z","followers_url":"https://api.github.com/users/beyond-z/followers","following_url":"https://api.github.com/users/beyond-z/following{/other_user}","gists_url":"https://api.github.com/users/beyond-z/gists{/gist_id}","starred_url":"https://api.github.com/users/beyond-z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beyond-z/subscriptions","organizations_url":"https://api.github.com/users/beyond-z/orgs","repos_url":"https://api.github.com/users/beyond-z/repos","events_url":"https://api.github.com/users/beyond-z/events{/privacy}","received_events_url":"https://api.github.com/users/beyond-z/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/beyond-z/beyondz-platform","description":"This is where Beyond Z participants login and access their leadership development portal.","fork":false,"url":"https://api.github.com/repos/beyond-z/beyondz-platform","forks_url":"https://api.github.com/repos/beyond-z/beyondz-platform/forks","keys_url":"https://api.github.com/repos/beyond-z/beyondz-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beyond-z/beyondz-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beyond-z/beyondz-platform/teams","hooks_url":"https://api.github.com/repos/beyond-z/beyondz-platform/hooks","issue_events_url":"https://api.github.com/repos/beyond-z/beyondz-platform/issues/events{/number}","events_url":"https://api.github.com/repos/beyond-z/beyondz-platform/events","assignees_url":"https://api.github.com/repos/beyond-z/beyondz-platform/assignees{/user}","branches_url":"https://api.github.com/repos/beyond-z/beyondz-platform/branches{/branch}","tags_url":"https://api.github.com/repos/beyond-z/beyondz-platform/tags","blobs_url":"https://api.github.com/repos/beyond-z/beyondz-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beyond-z/beyondz-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beyond-z/beyondz-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/beyond-z/beyondz-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beyond-z/beyondz-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/beyond-z/beyondz-platform/languages","stargazers_url":"https://api.github.com/repos/beyond-z/beyondz-platform/stargazers","contributors_url":"https://api.github.com/repos/beyond-z/beyondz-platform/contributors","subscribers_url":"https://api.github.com/repos/beyond-z/beyondz-platform/subscribers","subscription_url":"https://api.github.com/repos/beyond-z/beyondz-platform/subscription","commits_url":"https://api.github.com/repos/beyond-z/beyondz-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/beyond-z/beyondz-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/beyond-z/beyondz-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/beyond-z/beyondz-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/beyond-z/beyondz-platform/contents/{+path}","compare_url":"https://api.github.com/repos/beyond-z/beyondz-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beyond-z/beyondz-platform/merges","archive_url":"https://api.github.com/repos/beyond-z/beyondz-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beyond-z/beyondz-platform/downloads","issues_url":"https://api.github.com/repos/beyond-z/beyondz-platform/issues{/number}","pulls_url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/beyond-z/beyondz-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/beyond-z/beyondz-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beyond-z/beyondz-platform/labels{/name}","releases_url":"https://api.github.com/repos/beyond-z/beyondz-platform/releases{/id}","created_at":"2014-02-05T18:22:52Z","updated_at":"2015-04-04T01:53:13Z","pushed_at":"2015-04-04T23:43:06Z","git_url":"git://github.com/beyond-z/beyondz-platform.git","ssh_url":"git@github.com:beyond-z/beyondz-platform.git","clone_url":"https://github.com/beyond-z/beyondz-platform.git","svn_url":"https://github.com/beyond-z/beyondz-platform","homepage":null,"size":26822,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":12,"forks":13,"open_issues":12,"watchers":3,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323"},"html":{"href":"https://github.com/beyond-z/beyondz-platform/pull/323"},"issue":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/issues/323"},"comments":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/issues/323/comments"},"review_comments":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323/comments"},"review_comment":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/323/commits"},"statuses":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/statuses/e027cf13b80c27c14ef1d305c0f68cc12acae92e"}}}}