{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/29030661","id":29030661,"diff_hunk":"@@ -642,3 +642,83 @@\n   </div>{#-- /.container --#}\n </header>{#-- /#fxfamilynav-header --#}\n {%- endmacro %}\n+\n+{% macro send_to_device(platform, include_title=True, title_text='', include_logo=False) %}\n+  {% set ios_link = settings.IOS_APP_STORE_FIREFOX_LINK %}\n+  {% set android_link = settings.GOOGLE_PLAY_FIREFOX_LINK %}\n+  <section id=\"send-to-device\" class=\"{% if include_logo %}logo {% endif %}{% if include_title %}title{% else %}no-title{% endif %}\">\n+    <div class=\"form-container\">\n+      {% if include_title %}\n+        {% if title_text %}\n+          <h2 class=\"form-heading\">{{ title_text }}</h2>\n+        {% else %}\n+          <h2 class=\"form-heading\">{{ _('Send Firefox to your smartphone or tablet') }}</h2>\n+        {% endif %}\n+      {% endif %}\n+      <h2 class=\"thank-you hidden\">{{ _('Your download link was sent.') }}</h2>\n+      <form id=\"send-to-device-form\" action=\"{{ secure_url() }}\" method=\"post\" {% if platform == 'select' %}class=\"dropdown\"{% endif %}>\n+        <ul class=\"error-list hidden\">\n+          <li class=\"sms\">{{ _('Sorry. This number isn’t valid. Please enter a U.S. phone number.') }}</li>\n+          <li class=\"email\">{{ _('Please enter an email address.') }}</li>\n+          <li class=\"platformn\">{{ _('Please make a selection before proceeding.') }}</li>\n+          <li class=\"system\">{{ _('An error occurred in our system. Please try again later.') }}</li>\n+        </ul>\n+        <div class=\"input\">\n+          <div class=\"platform-container\">\n+            {% if platform == 'select' %}\n+            {# User selects OS they would like to receive link for. #}\n+              <label for=\"id-platform\">\n+                {{ _('Select iOS or Android') }}\n+              </label>\n+              <select id=\"id-platform\" autocomplete=\"off\" required>\n+                <option value=\"\" selected>{{ _('Choose OS') }}</option>\n+                <option value=\"ios\">iOS</option>\n+                <option value=\"android\">Android</option>\n+              </select>\n+            {% elif platform == 'ios' %}\n+            {# User receives link for iOS. #}\n+              <input type=\"hidden\" id=\"id-platform\" value=\"ios\">\n+            {% elif platform == 'android' %}\n+              {# User receives link for Android. #}\n+              <input type=\"hidden\" id=\"id-platform\" value=\"android\">\n+            {% else %}\n+              {# User receives links for both iOS and Android. #}\n+              <input type=\"hidden\" id=\"id-platform\" value=\"all\">\n+            {% endif %}\n+          </div>\n+          <div class=\"inline-field\">\n+            <label id=\"form-input-label\" for=\"id-input\" data-alt=\"{{ _('Enter your email or 10-digit phone number') }}\">{{ _('Enter your email') }}</label>","path":"bedrock/base/templates/macros.html","position":49,"original_position":49,"commit_id":"ec0acf2eb7388c078d15dc25b1fae3a94ec23e25","original_commit_id":"ec0acf2eb7388c078d15dc25b1fae3a94ec23e25","user":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars.githubusercontent.com/u/400117?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"body":"SMS messaging is shown to users in U.S. only.","created_at":"2015-04-24T07:56:49Z","updated_at":"2015-04-24T07:56:49Z","html_url":"https://github.com/mozilla/bedrock/pull/2919#discussion_r29030661","pull_request_url":"https://api.github.com/repos/mozilla/bedrock/pulls/2919","_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/29030661"},"html":{"href":"https://github.com/mozilla/bedrock/pull/2919#discussion_r29030661"},"pull_request":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2919"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/2919","id":33761236,"html_url":"https://github.com/mozilla/bedrock/pull/2919","diff_url":"https://github.com/mozilla/bedrock/pull/2919.diff","patch_url":"https://github.com/mozilla/bedrock/pull/2919.patch","issue_url":"https://api.github.com/repos/mozilla/bedrock/issues/2919","number":2919,"state":"open","locked":false,"title":"[bug 1146982] Add 'Send to Device' macro","user":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars.githubusercontent.com/u/400117?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"body":"This is still a work in progress, do DNM for now.","created_at":"2015-04-21T13:33:46Z","updated_at":"2015-04-24T07:56:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b522908af8afcbd7368e72d76131bb7d6bcc42b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/bedrock/pulls/2919/commits","review_comments_url":"https://api.github.com/repos/mozilla/bedrock/pulls/2919/comments","review_comment_url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/bedrock/issues/2919/comments","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/ec0acf2eb7388c078d15dc25b1fae3a94ec23e25","head":{"label":"mozilla:bug-1146982-send-to-device-desktop-widget","ref":"bug-1146982-send-to-device-desktop-widget","sha":"ec0acf2eb7388c078d15dc25b1fae3a94ec23e25","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1616665,"name":"bedrock","full_name":"mozilla/bedrock","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/bedrock","description":"Making mozilla.org awesome, one pebble at a time","fork":false,"url":"https://api.github.com/repos/mozilla/bedrock","forks_url":"https://api.github.com/repos/mozilla/bedrock/forks","keys_url":"https://api.github.com/repos/mozilla/bedrock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/bedrock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/bedrock/teams","hooks_url":"https://api.github.com/repos/mozilla/bedrock/hooks","issue_events_url":"https://api.github.com/repos/mozilla/bedrock/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/bedrock/events","assignees_url":"https://api.github.com/repos/mozilla/bedrock/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/bedrock/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/bedrock/tags","blobs_url":"https://api.github.com/repos/mozilla/bedrock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/bedrock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/bedrock/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/bedrock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/bedrock/languages","stargazers_url":"https://api.github.com/repos/mozilla/bedrock/stargazers","contributors_url":"https://api.github.com/repos/mozilla/bedrock/contributors","subscribers_url":"https://api.github.com/repos/mozilla/bedrock/subscribers","subscription_url":"https://api.github.com/repos/mozilla/bedrock/subscription","commits_url":"https://api.github.com/repos/mozilla/bedrock/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/bedrock/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/bedrock/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/bedrock/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/bedrock/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/bedrock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/bedrock/merges","archive_url":"https://api.github.com/repos/mozilla/bedrock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/bedrock/downloads","issues_url":"https://api.github.com/repos/mozilla/bedrock/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/bedrock/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/bedrock/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/bedrock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/bedrock/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/bedrock/releases{/id}","created_at":"2011-04-14T22:57:57Z","updated_at":"2015-04-23T14:53:46Z","pushed_at":"2015-04-23T19:39:58Z","git_url":"git://github.com/mozilla/bedrock.git","ssh_url":"git@github.com:mozilla/bedrock.git","clone_url":"https://github.com/mozilla/bedrock.git","svn_url":"https://github.com/mozilla/bedrock","homepage":"http://mozilla.org","size":346753,"stargazers_count":228,"watchers_count":228,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":323,"mirror_url":null,"open_issues_count":22,"forks":323,"open_issues":22,"watchers":228,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"fdea483593b73b8006b13908f38d20e55f9701db","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1616665,"name":"bedrock","full_name":"mozilla/bedrock","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/bedrock","description":"Making mozilla.org awesome, one pebble at a time","fork":false,"url":"https://api.github.com/repos/mozilla/bedrock","forks_url":"https://api.github.com/repos/mozilla/bedrock/forks","keys_url":"https://api.github.com/repos/mozilla/bedrock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/bedrock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/bedrock/teams","hooks_url":"https://api.github.com/repos/mozilla/bedrock/hooks","issue_events_url":"https://api.github.com/repos/mozilla/bedrock/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/bedrock/events","assignees_url":"https://api.github.com/repos/mozilla/bedrock/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/bedrock/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/bedrock/tags","blobs_url":"https://api.github.com/repos/mozilla/bedrock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/bedrock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/bedrock/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/bedrock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/bedrock/languages","stargazers_url":"https://api.github.com/repos/mozilla/bedrock/stargazers","contributors_url":"https://api.github.com/repos/mozilla/bedrock/contributors","subscribers_url":"https://api.github.com/repos/mozilla/bedrock/subscribers","subscription_url":"https://api.github.com/repos/mozilla/bedrock/subscription","commits_url":"https://api.github.com/repos/mozilla/bedrock/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/bedrock/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/bedrock/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/bedrock/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/bedrock/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/bedrock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/bedrock/merges","archive_url":"https://api.github.com/repos/mozilla/bedrock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/bedrock/downloads","issues_url":"https://api.github.com/repos/mozilla/bedrock/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/bedrock/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/bedrock/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/bedrock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/bedrock/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/bedrock/releases{/id}","created_at":"2011-04-14T22:57:57Z","updated_at":"2015-04-23T14:53:46Z","pushed_at":"2015-04-23T19:39:58Z","git_url":"git://github.com/mozilla/bedrock.git","ssh_url":"git@github.com:mozilla/bedrock.git","clone_url":"https://github.com/mozilla/bedrock.git","svn_url":"https://github.com/mozilla/bedrock","homepage":"http://mozilla.org","size":346753,"stargazers_count":228,"watchers_count":228,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":323,"mirror_url":null,"open_issues_count":22,"forks":323,"open_issues":22,"watchers":228,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2919"},"html":{"href":"https://github.com/mozilla/bedrock/pull/2919"},"issue":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/2919"},"comments":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/2919/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2919/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2919/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/bedrock/statuses/ec0acf2eb7388c078d15dc25b1fae3a94ec23e25"}}}}