{"action":"created","comment":{"url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/24081155","id":24081155,"diff_hunk":"@@ -0,0 +1,369 @@\n+ <openerp><data>\n+\n+\n+  <template id=\"assets_frontend\" inherit_id=\"website.assets_frontend\" name=\"chd_product_configurator\">\n+  <xpath expr=\".\" position=\"inside\">\n+      <script type=\"text/javascript\" src=\"/website_chd_product_configurator/static/src/js/website_chd_product_configurator.js\"></script>\n+      <link rel='stylesheet' href='/website_chd_product_configurator/static/src/css/website_chd_product_configurator.css'/>\n+  </xpath>\n+  </template>\n+\n+\n+  <template id=\"conf_start\">\n+    <t t-call=\"website.layout\">\n+      <t t-set=\"title\">Product Configurator</t>\n+      <div class=\"oe_structure\"/>\n+      <div class=\"oe_structure\">\n+        <div class=\"container\">\n+        <h3>configurable products available</h3>\n+         <form t-attf-action=\"/chd_init/\" method=\"post\" >\n+            <select t-attf-name=\"selected_id\" class= \"form-control product_selection\" id=\"prod_select_id\">\n+                <option></option>\n+                <t t-foreach=\"conf_products\" t-as=\"conf_product\">\n+                    <option t-att-value=\"conf_product.id\" class= \"form-control product_selection\">\n+                         <t t-esc=\"conf_product.name\"/>\n+                    </option>\n+                </t>\n+           </select>\n+        <button type=\"submit\" class=\"btn btn-primary btn-lg pull-center\" >Select Configurable Product</button>\n+        </form>\n+        <div class=\"clearfix\"/>\n+        </div>\n+      </div>\n+      <div class=\"oe_structure\"/>\n+    </t>\n+  </template>\n+\n+ <template id=\"configurator\">\n+    <t t-call=\"website.layout\">\n+       <t t-set=\"title\">Product Configurator</t>\n+          <div class=\"oe_structure\"/>\n+          <div class=\"oe_structure\">\n+          <div class=\"container\">\n+            <h3 id=\"c_title\">Configuration options for <t t-esc=\"curr_product_id.name\" /></h3>\n+            <form id=\"mainf\" t-attf-action=\"/chd_init/#{ curr_product_id.id }/\" method=\"post\"  enctype=\"multipart/form-data\"  class=\"form-horizontal\">\n+            <div class=\"row\">\n+                <div class=\"col-sm-9\">\n+                    <div class=\"row\">\n+                         <div class=\"col-sm-1\" >\n+                            <label for=\"quantity\" >Quantity</label>\n+                         </div>\n+                         <div class=\"col-sm-2\" >\n+                            <input required=\"true\" type=\"number\"  min=\"0\" name=\"quantity\" class=\"form-control input-sm\"/>\n+                        </div>\n+                    </div>\n+                    <div t-if=\"curr_product_id.chd_size_type in ('fixed')\" class=\"row\">\n+                        <div class=\"col-sm-8\" >\n+                            <label for=\"size\">Size (fixed choices available):\n+                                <select required=\"true\" t-attf-name=\"size\" class=\"form-control input-sm size_selection\" id=\"size_select_id\">\n+                                <option></option>","path":"website_chd_product_configurator/templates/templates.xml","position":59,"original_position":59,"commit_id":"e0d0345bf650f13af91d268524a0d171bcddea35","original_commit_id":"34cd6fefb1e78bba8ee0661a0b0bc21be13d621b","user":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"body":"to have an empty option on load. we do not want the form to be prepopulated with the first option, especially because sometimes onchange events are triggered when selecting an option.","created_at":"2015-02-04T13:05:10Z","updated_at":"2015-02-04T13:05:10Z","html_url":"https://github.com/gfcapalbo/website_chd/pull/1#discussion_r24081155","pull_request_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/24081155"},"html":{"href":"https://github.com/gfcapalbo/website_chd/pull/1#discussion_r24081155"},"pull_request":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1","id":28625428,"html_url":"https://github.com/gfcapalbo/website_chd/pull/1","diff_url":"https://github.com/gfcapalbo/website_chd/pull/1.diff","patch_url":"https://github.com/gfcapalbo/website_chd/pull/1.patch","issue_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1","number":1,"state":"open","locked":false,"title":"[ADD] first commit","user":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-04T09:56:58Z","updated_at":"2015-02-04T13:05:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"809808f1020370a768f5103142f27973e33ef61f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1/comments","statuses_url":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/e0d0345bf650f13af91d268524a0d171bcddea35","head":{"label":"gfcapalbo:8.0_chd_website","ref":"8.0_chd_website","sha":"e0d0345bf650f13af91d268524a0d171bcddea35","user":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"repo":{"id":30291924,"name":"website_chd","full_name":"gfcapalbo/website_chd","owner":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gfcapalbo/website_chd","description":"Website modules ","fork":false,"url":"https://api.github.com/repos/gfcapalbo/website_chd","forks_url":"https://api.github.com/repos/gfcapalbo/website_chd/forks","keys_url":"https://api.github.com/repos/gfcapalbo/website_chd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gfcapalbo/website_chd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gfcapalbo/website_chd/teams","hooks_url":"https://api.github.com/repos/gfcapalbo/website_chd/hooks","issue_events_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/events{/number}","events_url":"https://api.github.com/repos/gfcapalbo/website_chd/events","assignees_url":"https://api.github.com/repos/gfcapalbo/website_chd/assignees{/user}","branches_url":"https://api.github.com/repos/gfcapalbo/website_chd/branches{/branch}","tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/tags","blobs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/refs{/sha}","trees_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/{sha}","languages_url":"https://api.github.com/repos/gfcapalbo/website_chd/languages","stargazers_url":"https://api.github.com/repos/gfcapalbo/website_chd/stargazers","contributors_url":"https://api.github.com/repos/gfcapalbo/website_chd/contributors","subscribers_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscribers","subscription_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscription","commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/commits{/sha}","git_commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/commits{/sha}","comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/comments{/number}","issue_comment_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/comments/{number}","contents_url":"https://api.github.com/repos/gfcapalbo/website_chd/contents/{+path}","compare_url":"https://api.github.com/repos/gfcapalbo/website_chd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gfcapalbo/website_chd/merges","archive_url":"https://api.github.com/repos/gfcapalbo/website_chd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gfcapalbo/website_chd/downloads","issues_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues{/number}","pulls_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls{/number}","milestones_url":"https://api.github.com/repos/gfcapalbo/website_chd/milestones{/number}","notifications_url":"https://api.github.com/repos/gfcapalbo/website_chd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gfcapalbo/website_chd/labels{/name}","releases_url":"https://api.github.com/repos/gfcapalbo/website_chd/releases{/id}","created_at":"2015-02-04T09:44:56Z","updated_at":"2015-02-04T09:44:56Z","pushed_at":"2015-02-04T12:19:59Z","git_url":"git://github.com/gfcapalbo/website_chd.git","ssh_url":"git@github.com:gfcapalbo/website_chd.git","clone_url":"https://github.com/gfcapalbo/website_chd.git","svn_url":"https://github.com/gfcapalbo/website_chd","homepage":null,"size":0,"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":"8.0"}},"base":{"label":"gfcapalbo:8.0","ref":"8.0","sha":"1e4157c6246d2b843fbcfb250d274c742cd0a226","user":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"repo":{"id":30291924,"name":"website_chd","full_name":"gfcapalbo/website_chd","owner":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gfcapalbo/website_chd","description":"Website modules ","fork":false,"url":"https://api.github.com/repos/gfcapalbo/website_chd","forks_url":"https://api.github.com/repos/gfcapalbo/website_chd/forks","keys_url":"https://api.github.com/repos/gfcapalbo/website_chd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gfcapalbo/website_chd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gfcapalbo/website_chd/teams","hooks_url":"https://api.github.com/repos/gfcapalbo/website_chd/hooks","issue_events_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/events{/number}","events_url":"https://api.github.com/repos/gfcapalbo/website_chd/events","assignees_url":"https://api.github.com/repos/gfcapalbo/website_chd/assignees{/user}","branches_url":"https://api.github.com/repos/gfcapalbo/website_chd/branches{/branch}","tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/tags","blobs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/refs{/sha}","trees_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/{sha}","languages_url":"https://api.github.com/repos/gfcapalbo/website_chd/languages","stargazers_url":"https://api.github.com/repos/gfcapalbo/website_chd/stargazers","contributors_url":"https://api.github.com/repos/gfcapalbo/website_chd/contributors","subscribers_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscribers","subscription_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscription","commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/commits{/sha}","git_commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/commits{/sha}","comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/comments{/number}","issue_comment_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/comments/{number}","contents_url":"https://api.github.com/repos/gfcapalbo/website_chd/contents/{+path}","compare_url":"https://api.github.com/repos/gfcapalbo/website_chd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gfcapalbo/website_chd/merges","archive_url":"https://api.github.com/repos/gfcapalbo/website_chd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gfcapalbo/website_chd/downloads","issues_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues{/number}","pulls_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls{/number}","milestones_url":"https://api.github.com/repos/gfcapalbo/website_chd/milestones{/number}","notifications_url":"https://api.github.com/repos/gfcapalbo/website_chd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gfcapalbo/website_chd/labels{/name}","releases_url":"https://api.github.com/repos/gfcapalbo/website_chd/releases{/id}","created_at":"2015-02-04T09:44:56Z","updated_at":"2015-02-04T09:44:56Z","pushed_at":"2015-02-04T12:19:59Z","git_url":"git://github.com/gfcapalbo/website_chd.git","ssh_url":"git@github.com:gfcapalbo/website_chd.git","clone_url":"https://github.com/gfcapalbo/website_chd.git","svn_url":"https://github.com/gfcapalbo/website_chd","homepage":null,"size":0,"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":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1"},"html":{"href":"https://github.com/gfcapalbo/website_chd/pull/1"},"issue":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1"},"comments":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/e0d0345bf650f13af91d268524a0d171bcddea35"}}}}