{"action":"created","comment":{"url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/comments/41279629","id":41279629,"diff_hunk":"@@ -0,0 +1,90 @@\n+<?php\n+\n+\n+namespace Gcd\\UkAddressLookup;\n+\n+\n+use Rhubarb\\Leaf\\Presenters\\Controls\\Buttons\\Button;\n+use Rhubarb\\Leaf\\Presenters\\Controls\\ControlView;\n+use Rhubarb\\Leaf\\Presenters\\Controls\\Selection\\DropDown\\DropDown;\n+use Rhubarb\\Leaf\\Presenters\\Controls\\Text\\TextBox\\TextBox;\n+\n+class AddressUkPafLookupView extends ControlView\n+{\n+    protected $htmlType = \"address\";\n+\n+    public function __construct($htmlType = \"address\")\n+    {\n+        $this->htmlType = $htmlType;\n+\n+        $this->requiresContainer = true;\n+        $this->requiresStateInputs = true;\n+    }\n+\n+    public function getDeploymentPackage()\n+    {\n+        $package = parent::getDeploymentPackage();\n+        $package->resourcesToDeploy[] = __DIR__ . \"/AddressUkPafLookupViewBridge.js\";\n+\n+        return $package;\n+    }\n+\n+    protected function getClientSideViewBridgeName()\n+    {\n+        return \"AddressUkPafLookupViewBridge\";\n+    }\n+\n+    public function createPresenters()\n+    {\n+        $this->AddPresenters(\n+            $country = new DropDown(\"Country\"),\n+            new TextBox(\"HouseNumber\", 20),\n+            new TextBox(\"PostCodeSearch\", 10),\n+            $search = new Button(\"Search\", \"Search\", function() {}),\n+            new TextBox(\"Line1\", 50),\n+            new TextBox(\"Line2\", 30),\n+            new TextBox(\"Town\", 30),\n+            new TextBox(\"County\", 20),\n+            new TextBox(\"PostCode\", 10)\n+        );\n+\n+        $country->SetSelectionItems( [ [ \"\", \"Please select...\" ], Country::getCountriesList() ] );\n+    }\n+\n+    public function printViewContent()\n+    {\n+        $this->printFieldset( \"\", [ \"Country\" ] );","path":"src/AddressUkPafLookupView.php","position":56,"original_position":56,"commit_id":"c34f5ceb9a2ed2911143f061a23f8684a077e0ea","original_commit_id":"c34f5ceb9a2ed2911143f061a23f8684a077e0ea","user":{"login":"NiallSmyth","id":209378,"avatar_url":"https://avatars.githubusercontent.com/u/209378?v=3","gravatar_id":"","url":"https://api.github.com/users/NiallSmyth","html_url":"https://github.com/NiallSmyth","followers_url":"https://api.github.com/users/NiallSmyth/followers","following_url":"https://api.github.com/users/NiallSmyth/following{/other_user}","gists_url":"https://api.github.com/users/NiallSmyth/gists{/gist_id}","starred_url":"https://api.github.com/users/NiallSmyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiallSmyth/subscriptions","organizations_url":"https://api.github.com/users/NiallSmyth/orgs","repos_url":"https://api.github.com/users/NiallSmyth/repos","events_url":"https://api.github.com/users/NiallSmyth/events{/privacy}","received_events_url":"https://api.github.com/users/NiallSmyth/received_events","type":"User","site_admin":false},"body":"My point is that the postcode search is only relevant for UK addresses. If the address is outside the UK, it should switch to manual address entry.","created_at":"2015-10-06T15:29:34Z","updated_at":"2015-10-06T15:29:34Z","html_url":"https://github.com/GCDTech/Module.UkAddressLookup/pull/1#discussion_r41279629","pull_request_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/comments/41279629"},"html":{"href":"https://github.com/GCDTech/Module.UkAddressLookup/pull/1#discussion_r41279629"},"pull_request":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1","id":42720137,"html_url":"https://github.com/GCDTech/Module.UkAddressLookup/pull/1","diff_url":"https://github.com/GCDTech/Module.UkAddressLookup/pull/1.diff","patch_url":"https://github.com/GCDTech/Module.UkAddressLookup/pull/1.patch","issue_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/1","number":1,"state":"open","locked":false,"title":"Develop","user":{"login":"fpolanzanGCD","id":9929916,"avatar_url":"https://avatars.githubusercontent.com/u/9929916?v=3","gravatar_id":"","url":"https://api.github.com/users/fpolanzanGCD","html_url":"https://github.com/fpolanzanGCD","followers_url":"https://api.github.com/users/fpolanzanGCD/followers","following_url":"https://api.github.com/users/fpolanzanGCD/following{/other_user}","gists_url":"https://api.github.com/users/fpolanzanGCD/gists{/gist_id}","starred_url":"https://api.github.com/users/fpolanzanGCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpolanzanGCD/subscriptions","organizations_url":"https://api.github.com/users/fpolanzanGCD/orgs","repos_url":"https://api.github.com/users/fpolanzanGCD/repos","events_url":"https://api.github.com/users/fpolanzanGCD/events{/privacy}","received_events_url":"https://api.github.com/users/fpolanzanGCD/received_events","type":"User","site_admin":false},"body":"first version of src\r\n@acuthbert ","created_at":"2015-08-18T16:35:39Z","updated_at":"2015-10-06T15:29:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c7909dc86e32e2cffc49c47831865019ca9b76b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1/commits","review_comments_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1/comments","review_comment_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/1/comments","statuses_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/statuses/c34f5ceb9a2ed2911143f061a23f8684a077e0ea","head":{"label":"GCDTech:develop","ref":"develop","sha":"c34f5ceb9a2ed2911143f061a23f8684a077e0ea","user":{"login":"GCDTech","id":2235549,"avatar_url":"https://avatars.githubusercontent.com/u/2235549?v=3","gravatar_id":"","url":"https://api.github.com/users/GCDTech","html_url":"https://github.com/GCDTech","followers_url":"https://api.github.com/users/GCDTech/followers","following_url":"https://api.github.com/users/GCDTech/following{/other_user}","gists_url":"https://api.github.com/users/GCDTech/gists{/gist_id}","starred_url":"https://api.github.com/users/GCDTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GCDTech/subscriptions","organizations_url":"https://api.github.com/users/GCDTech/orgs","repos_url":"https://api.github.com/users/GCDTech/repos","events_url":"https://api.github.com/users/GCDTech/events{/privacy}","received_events_url":"https://api.github.com/users/GCDTech/received_events","type":"Organization","site_admin":false},"repo":{"id":40978775,"name":"Module.UkAddressLookup","full_name":"GCDTech/Module.UkAddressLookup","owner":{"login":"GCDTech","id":2235549,"avatar_url":"https://avatars.githubusercontent.com/u/2235549?v=3","gravatar_id":"","url":"https://api.github.com/users/GCDTech","html_url":"https://github.com/GCDTech","followers_url":"https://api.github.com/users/GCDTech/followers","following_url":"https://api.github.com/users/GCDTech/following{/other_user}","gists_url":"https://api.github.com/users/GCDTech/gists{/gist_id}","starred_url":"https://api.github.com/users/GCDTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GCDTech/subscriptions","organizations_url":"https://api.github.com/users/GCDTech/orgs","repos_url":"https://api.github.com/users/GCDTech/repos","events_url":"https://api.github.com/users/GCDTech/events{/privacy}","received_events_url":"https://api.github.com/users/GCDTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GCDTech/Module.UkAddressLookup","description":"A module that shows a form with the common address fields with a tool to search address according to post code","fork":false,"url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup","forks_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/forks","keys_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/teams","hooks_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/hooks","issue_events_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/events{/number}","events_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/events","assignees_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/assignees{/user}","branches_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/branches{/branch}","tags_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/tags","blobs_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/refs{/sha}","trees_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/statuses/{sha}","languages_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/languages","stargazers_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/stargazers","contributors_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/contributors","subscribers_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/subscribers","subscription_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/subscription","commits_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/commits{/sha}","git_commits_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/commits{/sha}","comments_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/comments{/number}","issue_comment_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/comments{/number}","contents_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/contents/{+path}","compare_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/merges","archive_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/downloads","issues_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues{/number}","pulls_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls{/number}","milestones_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/milestones{/number}","notifications_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/labels{/name}","releases_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/releases{/id}","created_at":"2015-08-18T15:05:12Z","updated_at":"2015-08-19T08:18:31Z","pushed_at":"2015-10-06T14:25:44Z","git_url":"git://github.com/GCDTech/Module.UkAddressLookup.git","ssh_url":"git@github.com:GCDTech/Module.UkAddressLookup.git","clone_url":"https://github.com/GCDTech/Module.UkAddressLookup.git","svn_url":"https://github.com/GCDTech/Module.UkAddressLookup","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GCDTech:master","ref":"master","sha":"c5d47a8fb49e6df07bb0df9ecd5cb65e5ef3bffd","user":{"login":"GCDTech","id":2235549,"avatar_url":"https://avatars.githubusercontent.com/u/2235549?v=3","gravatar_id":"","url":"https://api.github.com/users/GCDTech","html_url":"https://github.com/GCDTech","followers_url":"https://api.github.com/users/GCDTech/followers","following_url":"https://api.github.com/users/GCDTech/following{/other_user}","gists_url":"https://api.github.com/users/GCDTech/gists{/gist_id}","starred_url":"https://api.github.com/users/GCDTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GCDTech/subscriptions","organizations_url":"https://api.github.com/users/GCDTech/orgs","repos_url":"https://api.github.com/users/GCDTech/repos","events_url":"https://api.github.com/users/GCDTech/events{/privacy}","received_events_url":"https://api.github.com/users/GCDTech/received_events","type":"Organization","site_admin":false},"repo":{"id":40978775,"name":"Module.UkAddressLookup","full_name":"GCDTech/Module.UkAddressLookup","owner":{"login":"GCDTech","id":2235549,"avatar_url":"https://avatars.githubusercontent.com/u/2235549?v=3","gravatar_id":"","url":"https://api.github.com/users/GCDTech","html_url":"https://github.com/GCDTech","followers_url":"https://api.github.com/users/GCDTech/followers","following_url":"https://api.github.com/users/GCDTech/following{/other_user}","gists_url":"https://api.github.com/users/GCDTech/gists{/gist_id}","starred_url":"https://api.github.com/users/GCDTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GCDTech/subscriptions","organizations_url":"https://api.github.com/users/GCDTech/orgs","repos_url":"https://api.github.com/users/GCDTech/repos","events_url":"https://api.github.com/users/GCDTech/events{/privacy}","received_events_url":"https://api.github.com/users/GCDTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GCDTech/Module.UkAddressLookup","description":"A module that shows a form with the common address fields with a tool to search address according to post code","fork":false,"url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup","forks_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/forks","keys_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/teams","hooks_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/hooks","issue_events_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/events{/number}","events_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/events","assignees_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/assignees{/user}","branches_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/branches{/branch}","tags_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/tags","blobs_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/refs{/sha}","trees_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/statuses/{sha}","languages_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/languages","stargazers_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/stargazers","contributors_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/contributors","subscribers_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/subscribers","subscription_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/subscription","commits_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/commits{/sha}","git_commits_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/git/commits{/sha}","comments_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/comments{/number}","issue_comment_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/comments{/number}","contents_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/contents/{+path}","compare_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/merges","archive_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/downloads","issues_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues{/number}","pulls_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls{/number}","milestones_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/milestones{/number}","notifications_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/labels{/name}","releases_url":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/releases{/id}","created_at":"2015-08-18T15:05:12Z","updated_at":"2015-08-19T08:18:31Z","pushed_at":"2015-10-06T14:25:44Z","git_url":"git://github.com/GCDTech/Module.UkAddressLookup.git","ssh_url":"git@github.com:GCDTech/Module.UkAddressLookup.git","clone_url":"https://github.com/GCDTech/Module.UkAddressLookup.git","svn_url":"https://github.com/GCDTech/Module.UkAddressLookup","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1"},"html":{"href":"https://github.com/GCDTech/Module.UkAddressLookup/pull/1"},"issue":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/1"},"comments":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/GCDTech/Module.UkAddressLookup/statuses/c34f5ceb9a2ed2911143f061a23f8684a077e0ea"}}}}