pyc-website

main website for pyc inc.

git clone https://9o.is/git/pyc-website.git

commit 739847424227751209d79529a8818c455997edc1
parent 0acaba88beca381e2d60df85c840ca318972d861
Author: Jul <jul@9o.is>
Date:   Fri, 22 Aug 2014 18:45:34 -0400

changed atm to btm

Diffstat:
Msrc/main/scala/inc/pyc/config/Site.scala | 22+++++++++++-----------
Msrc/main/scala/inc/pyc/snippet/AdminSnip.scala | 2+-
Msrc/main/scala/inc/pyc/snippet/AtmSnip.scala | 16++++++++--------
Msrc/main/webapp/app/App.js | 5++---
Rsrc/main/webapp/atm.html -> src/main/webapp/btm.html | 0
Msrc/main/webapp/faqs.html | 16++++++++--------
Dsrc/main/webapp/find-atm.html | 4----
Asrc/main/webapp/find-btm.html | 4++++
Dsrc/main/webapp/host-atm.html | 39---------------------------------------
Asrc/main/webapp/host-btm.html | 39+++++++++++++++++++++++++++++++++++++++
Rsrc/main/webapp/how-to-use-atm.html -> src/main/webapp/how-to-use-btm.html | 0
Msrc/main/webapp/index.html | 4++--
Msrc/main/webapp/robots.txt | 2+-
Msrc/main/webapp/templates-hidden/base-wrap.html | 2+-
Dsrc/main/webapp/templates-hidden/parts/apply-atm-form.html | 89-------------------------------------------------------------------------------
Asrc/main/webapp/templates-hidden/parts/apply-btm-form.html | 89+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dsrc/main/webapp/templates-hidden/parts/atm-map.html | 123-------------------------------------------------------------------------------
Asrc/main/webapp/templates-hidden/parts/btm-map.html | 123+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Msrc/main/webapp/templates-hidden/parts/contact-form.html | 2+-
Rsrc/main/webapp/templates-hidden/parts/notify-atm-form.html -> src/main/webapp/templates-hidden/parts/notify-btm-form.html | 0
20 files changed, 290 insertions(+), 291 deletions(-)

diff --git a/src/main/scala/inc/pyc/config/Site.scala b/src/main/scala/inc/pyc/config/Site.scala @@ -44,9 +44,9 @@ object Site extends Locs { def host = if(Props.devMode || Props.testMode) "127.0.0.1" else domain // Regular links - val home = MenuLoc(Menu.i("Bitcoin ATM Services") / "index") - val findAtm = MenuLoc(Menu.i("Find An ATM") / "find-atm" >> TopBarGroup) - val hostAtm = MenuLoc(Menu.i("Host An ATM") / "host-atm" >> TopBarGroup) + val home = MenuLoc(Menu.i("Bitcoin Teller Machine Services") / "index") + val findBtm = MenuLoc(Menu.i("Find A BTM") / "find-btm" >> TopBarGroup) + val hostBtm = MenuLoc(Menu.i("Host A BTM") / "host-btm" >> TopBarGroup) val team = MenuLoc(Menu.i("Team") / "about" / "team" >> SiteMapGroup) val press = MenuLoc(Menu.i("Press") / "about" / "press" >> RedirectBlog >> SiteMapGroup) @@ -61,7 +61,7 @@ object Site extends Locs { // TODO implement val whatsBitcoin = MenuLoc(Menu.i("What Is Bitcoin") / "what-is-bitcoin") - val atmHowTo = MenuLoc(Menu.i("How To Use ATM") / "how-to-use-atm") + val btmHowTo = MenuLoc(Menu.i("How To Use BTM") / "how-to-use-btm") // Regular Links for Users @@ -96,23 +96,23 @@ object Site extends Locs { // ATM pages - private val atmProfileParamMenu = Menu.param[Atm]( - "ATM", "ATM Information", Atm.findByName _, _.name.get) / "atm" - lazy val atmProfileLoc = atmProfileParamMenu.toLoc + private val btmProfileParamMenu = Menu.param[Atm]( + "BTM", "BTM Information", Atm.findByName _, _.name.get) / "btm" + lazy val btmProfileLoc = btmProfileParamMenu.toLoc private def menus = List( home.menu, - findAtm.menu, - hostAtm.menu, + findBtm.menu, + hostBtm.menu, whatsBitcoin.menu, aboutMenus, faqs.menu, login.menu, register.menu, - atmHowTo.menu, + btmHowTo.menu, tos.menu, privacy.menu, loginToken.menu, @@ -124,7 +124,7 @@ object Site extends Locs { verifyID.menu, viewPurchaseLimits.menu, emailResetToken.menu, - atmProfileParamMenu, + btmProfileParamMenu, Menu.i("Error") / "error" >> Hidden, Menu.i("404") / "404" >> Hidden, Menu.i("Status") / "ping" >> Hidden >> CalcStateless(() => true ) >> EarlyResponse(() => Full(OkResponse())), diff --git a/src/main/scala/inc/pyc/snippet/AdminSnip.scala b/src/main/scala/inc/pyc/snippet/AdminSnip.scala @@ -61,7 +61,7 @@ class VerifyId extends AdminSnip { <br/> <h2>Your new bitcoin purchase limit is {user.purchaseLimit.get}</h2> <br/> - To purchase bitcoin from a store ATM, you may need to authenticate face-to-face + To purchase bitcoin from a store BTM, you may need to authenticate face-to-face with the store manager or an authorized employee using a one-time password available in the <a href={settingsUrl}>settings page of your PYC account</a>. Note, this password is not related to the bitcoin you possess; it's only a way to diff --git a/src/main/scala/inc/pyc/snippet/AtmSnip.scala b/src/main/scala/inc/pyc/snippet/AtmSnip.scala @@ -37,7 +37,7 @@ class AtmApplication extends AngularSnippet { NgAlert.success( <i class="fa-fw fa fa-thumbs-o-up"></i> ++ - <span>Bitcoin ATM application for {rec.name.get} has been received.</span> ++ + <span>BTM application for {rec.name.get} has been received.</span> ++ <p> We will contact you when we are ready. Thank you for applying.</p> ) case errors => @@ -57,7 +57,7 @@ class AtmApplication extends AngularSnippet { import Mailer._ val msgTxt = s""" - |Business Asking for an ATM! + |Business Asking for a BTM! |Name: ${rec.name.get} |Website: ${rec.website.get} |Address: @@ -70,7 +70,7 @@ class AtmApplication extends AngularSnippet { sendMail( From(MongoAuth.systemFancyEmail), - Subject("PYC: Business wants an ATM"), + Subject("PYC: Business wants a BTM"), To(Emails.atmBusiness), PlainMailBodyType(msgTxt) ) @@ -87,7 +87,7 @@ class FindAtm extends AngularSnippet with Logger { "notifyEmail" -> notifyEmail _, "init" -> init _) - /** Distance to check for nearby ATM's */ + /** Distance to check for nearby BTM's */ val distance = 100 // kilometers (~62 miles) def submit(model: JValue): JValue = @@ -134,12 +134,12 @@ class FindAtm extends AngularSnippet with Logger { NgAlert.success( <i class="fa-fw fa fa-thumbs-o-up"></i> ++ <span>Your notification has been received.</span> ++ - <p>We will notify you when there is an ATM nearby.</p> + <p>We will notify you when there is a BTM nearby.</p> ) } getOrElse JNull - /* Set featured ATM on map */ + /* Set featured BTM on map */ def init(o: JValue): JValue = { /* FeaturedAtm.atm.asJValue merge @@ -173,12 +173,12 @@ sealed trait AtmSnip extends SnippetHelper with Logger { protected def atm: Box[Atm] protected def serve(snip: Atm => JValue): JValue = - for (atm <- atm ?~ "Atm not found") yield snip(atm) + for (atm <- atm ?~ "Btm not found") yield snip(atm) } class AtmProfile extends AtmSnip with AngularSnippet { - override def atm = Site.atmProfileLoc.currentValue + override def atm = Site.btmProfileLoc.currentValue def roundTrips: List[RoundTripInfo] = List("init" -> init _) diff --git a/src/main/webapp/app/App.js b/src/main/webapp/app/App.js @@ -16,7 +16,6 @@ var app = angular.module("app", [ 'ngAnimate', 'ngReallyClick']); - var PASSWORD_REGEXP = /^(?=.*[^a-zA-Z])\S{8,}$/; var UNSAFE_URL_REGEXP = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/; @@ -469,7 +468,7 @@ app.controller('VerifyIdCtrl', ['$scope', '$controller', '$rootScope', function( }]); -/** Functions used for info about ATM */ +/** Functions used for info about BTM */ app.controller('AtmHelperFuncs', ['$scope', function($scope) { $scope.timeRange = function(open, clos) { var openv = open.split(":"); @@ -512,7 +511,7 @@ app.controller('AtmHelperFuncs', ['$scope', function($scope) { $scope.pageAtm = function(marker) { if(marker) { - return "/atm/"+marker.name; + return "/btm/"+marker.name; } }; diff --git a/src/main/webapp/atm.html b/src/main/webapp/btm.html diff --git a/src/main/webapp/faqs.html b/src/main/webapp/faqs.html @@ -8,7 +8,7 @@ <li> <h3 class="bold">What is PYC?</h3> <p> - PYC is an ATM service operator for the bitcoin currency. + PYC is a BTM (Bitcoin Teller Machine) Service Operator. We enable customers to retrieve bitcoin instantly, just as they retrieve cash from a bank ATM. </p> @@ -19,38 +19,38 @@ <p> We established our first machine in Albany, NY on the 27th of June, 2014. Now we're expanding to other locations such as Manhattan, New Hampshire and New Jersey. - ATMs may soon be available near your hometown -- stay tuned. + BTMs may soon be available near your hometown -- stay tuned. </p> </li> <li class="padding-top-10"> - <h3 class="bold">How can I find a Bitcoin ATM?</h3> + <h3 class="bold">How can I find a BTM (Bitcoin Teller Machine)?</h3> <p> - You can easily <a href="/##locations">search for an ATM near your area</a>. + You can easily <a href="/##locations">search for a BTM near your area</a>. </p> </li> <li class="padding-top-10"> <h3 class="bold">I'm a merchant. How can I put a machine in my store?</h3> <p> - If you're a merchant and interested in having us host an ATM in your establishment, + If you're a merchant and interested in having us host a BTM in your establishment, <a href="/about/contact">contact us and we'll respond as soon as possible</a>. Please note, there is a selection process and we cannot guarantee all requests. </p> </li> <li class="padding-top-10"> - <h3 class="bold">How long does the ATM take to transfer the + <h3 class="bold">How long does the BTM take to transfer the bitcoin to my wallet?</h3> <p> - The ATM takes a few seconds -- no more than a minute -- + The BTM takes a few seconds -- no more than a minute -- it is the fastest and easiest way to retrieve bitcoin, hence our slogan. </p> </li> <li class="padding-top-10"> - <h3 class="bold">How much money can I take out from the ATM?</h3> + <h3 class="bold">How much money can I take out from the BTM?</h3> <p> At the moment, the maximum amount of money that can be taken out per transaction is 1,000 USD. We will soon be able to sell over a thousand shortly. diff --git a/src/main/webapp/find-atm.html b/src/main/webapp/find-atm.html @@ -1,3 +0,0 @@ -<div data-lift="surround?with=base-wrap&at=content"> - <span data-lift="embed?what=/templates-hidden/parts/atm-map"></span> -</div> -\ No newline at end of file diff --git a/src/main/webapp/find-btm.html b/src/main/webapp/find-btm.html @@ -0,0 +1,3 @@ +<div data-lift="surround?with=base-wrap&at=content"> + <span data-lift="embed?what=/templates-hidden/parts/btm-map"></span> +</div> +\ No newline at end of file diff --git a/src/main/webapp/host-atm.html b/src/main/webapp/host-atm.html @@ -1,38 +0,0 @@ -<div data-lift="surround?with=base-wrap&at=content"> - <div class="container"> - <h1 id="atm-app-title" class="text-primary text-center">Are you a merchant? Apply for a Bitcoin ATM!</h1> - - <p class="lead padding-20">Are you interested in a Bitcoin ATM in - your shop to increase foot traffic and spread the acceptance of - Bitcoin? We are currently accepting merchant interest for our next - NYC and greater-NY area. Contact us for more information.</p> - - <div class="row padding-bottom-20"> - <div id="atm-benefits" class="col-xs-6 text-primary"> - <table> - <tr> - <td><i class="fa fa-wrench fa-4x"></i></td> - <td><h5>Free installation and maintenance</h5></td> - </tr> - <tr> - <td><i class="fa fa-bitcoin fa-4x pull-left"></i></td> - <td><h5>Hot and new emerging technology</h5></td> - </tr> - <tr> - <td><i class="fa fa-thumbs-up fa-4x pull-left"></i></td> - <td><h5>Increase business exposure</h5></td> - </tr> - <tr> - <td><i class="fa fa-shield fa-4x pull-left"></i></td> - <td><h5>Safe and reliable way for customers to purchase - Bitcoin</h5></td> - </tr> - </table> - </div> - - <div class="col-xs-6 simple-form"> - <span data-lift="embed?what=/templates-hidden/parts/apply-atm-form"></span> - </div> - </div> - </div> -</div> -\ No newline at end of file diff --git a/src/main/webapp/host-btm.html b/src/main/webapp/host-btm.html @@ -0,0 +1,38 @@ +<div data-lift="surround?with=base-wrap&at=content"> + <div class="container"> + <h1 id="atm-app-title" class="text-primary text-center">Are you a merchant? Apply for a BTM!</h1> + + <p class="lead padding-20">Are you interested in hosting a Bitcoin Teller Machine + to increase foot traffic and spread the acceptance of + Bitcoin? We are currently accepting merchant interest for our next + NYC and greater-NY area. Contact us for more information.</p> + + <div class="row padding-bottom-20"> + <div id="atm-benefits" class="col-xs-6 text-primary"> + <table> + <tr> + <td><i class="fa fa-wrench fa-4x"></i></td> + <td><h5>Free installation and maintenance</h5></td> + </tr> + <tr> + <td><i class="fa fa-bitcoin fa-4x pull-left"></i></td> + <td><h5>Hot and new emerging technology</h5></td> + </tr> + <tr> + <td><i class="fa fa-thumbs-up fa-4x pull-left"></i></td> + <td><h5>Increase business exposure</h5></td> + </tr> + <tr> + <td><i class="fa fa-shield fa-4x pull-left"></i></td> + <td><h5>Safe and reliable way for customers to purchase + Bitcoin</h5></td> + </tr> + </table> + </div> + + <div class="col-xs-6 simple-form"> + <span data-lift="embed?what=/templates-hidden/parts/apply-btm-form"></span> + </div> + </div> + </div> +</div> +\ No newline at end of file diff --git a/src/main/webapp/how-to-use-atm.html b/src/main/webapp/how-to-use-btm.html diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html @@ -32,7 +32,7 @@ <h1 class="fade-in">BUY BITCOIN NOW</h1> <p class="lead fade-in"> <a id="view-locations-btn" href="##locations" - class="btn btn-lg btn-primary">View ATM Locations</a> + class="btn btn-lg btn-primary">View BTM Locations</a> </p> </div> </div> @@ -42,6 +42,6 @@ </div> <div id="locations" class="row"><div class="col-xs-12"></div></div> -<span data-lift="embed?what=/templates-hidden/parts/atm-map"></span> +<span data-lift="embed?what=/templates-hidden/parts/btm-map"></span> </div> diff --git a/src/main/webapp/robots.txt b/src/main/webapp/robots.txt @@ -5,7 +5,7 @@ User-agent: * # not yet implemented Disallow: /what-is-bitcoin -Disallow: /how-to-use-atm +Disallow: /how-to-use-btm # we want them to follow through main page Disallow: /login diff --git a/src/main/webapp/templates-hidden/base-wrap.html b/src/main/webapp/templates-hidden/base-wrap.html @@ -3,7 +3,7 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> -<meta name="description" content="PYC is an ATM service operator for the bitcoin currency. We enable customers to retrieve bitcoin instantly, just as they retrieve cash from a bank ATM."> +<meta name="description" content="PYC is a BTM or Bitcoin Teller Machine Service Operator. We enable customers to retrieve bitcoin instantly, just as they retrieve cash from a bank ATM."> <meta name="author" content="PYC"> <meta name="Copyright" content="Copyright PYC Inc 2014. All Rights Reserved."> <meta name="fragment" content="!" /> diff --git a/src/main/webapp/templates-hidden/parts/apply-atm-form.html b/src/main/webapp/templates-hidden/parts/apply-atm-form.html @@ -1,88 +0,0 @@ -<div data-lift="AtmApplication" ng-controller="AtmApplicationCtrl" ng-cloak> - <form name="form" class="smart-form client-form" ng-submit="save()" novalidate> - <fieldset> - <section> - <label class="input" ng-class="{{ stateSuccessError('name') }}"> - <i class="icon-append fa fa-briefcase"></i> - <input name="name" ng-model="model.name" placeholder="Business Name" type="text" required> - <b class="tooltip tooltip-top-left">Please provide your unique business name.</b> - </label> - </section> - - <section> - <label class="input" ng-class="{{ stateSuccessError('email') }}"> - <i class="icon-append fa fa-envelope-o"></i> - <input name="email" ng-model="model.email" placeholder="E-Mail" type="email" required> - <b class="tooltip tooltip-top-left">Please provide your business email for further information.</b> - <span ng-show="form.email.$invalid && form.email.$dirty" class="text-danger small"> - Invalid email address - </span> - </label> - </section> - - <section> - <label class="input" ng-class="{{ stateSuccessError('phone') }}"> - <i class="icon-append fa fa-phone"></i> - <input name="phone" ng-model="model.phone" ui-mask="(999) 999-9999" placeholder="(xxx) xxx-xxxx" type="text" required> - <b class="tooltip tooltip-top-left">Please provide phone number for this contact.</b> - <span ng-show="form.phone.$invalid && form.phone.$dirty" class="text-danger small"> - Incomplete phone number - </span> - </label> - </section> - - <section> - <label class="input" ng-class="{{ stateSuccessError('address') }}"> - <input name="address" ng-model="model.address" placeholder="Address" type="text" required> - <b class="tooltip tooltip-top-left">Please provide the address of your business.</b> - </label> - </section> - - <div class="row"> - <section class="col col-6"> - <label class="input" ng-class="{{ stateSuccessError('city') }}"> - <input name="city" ng-model="model.city" placeholder="City" type="text" required> - <b class="tooltip tooltip-top-left">The city your business is located.</b> - </label> - </section> - <section class="col col-6" ng-class="{{ stateSuccessError('state') }}"> - <label data-lift="Selector.states" class="select"> - <select name="state" ng-model="model.state" required></select> - <i></i> - <b class="tooltip tooltip-top-left">The state your business is located.</b> - </label> - </section> - </div> - - <section> - <label class="input" ng-class="{{ stateSuccessError('website') }}"> - <i class="icon-append fa fa-globe"></i> - <input name="website" ng-model="model.website" placeholder="Website URL" type="text" ng-pattern="url_regex"> - <b class="tooltip tooltip-top-left">The website URL of your business.</b> - <span ng-show="form.website.$error.pattern" class="text-danger small"> - Invalid website url - </span> - </label> - </section> - - <section> - <label class="textarea" ng-class="{{ stateSuccess('bestTime') }}"> - <i class="icon-append fa fa-comment"></i> - <textarea name="bestTime" ng-model="model.bestTime" - placeholder="When is the best time to contact you?" rows="2"></textarea> - <b class="tooltip tooltip-top-left">Enter time of day and/or week you would like to be contacted.</b> - </label> - <em>Example: Saturday, 11am. Prefer phone call.</em> - </section> - - </fieldset> - - <footer> - <div ng-controller="AtmApplicationAlert" ng-cloak> - <span data-lift="embed?what=/templates-hidden/parts/alert"></span> - </div> - - <button type="submit" class="btn btn-primary" ng-disabled="form.$invalid" disabler ng-model="loading">Apply for Bitcoin ATM</button> - </footer> - </form> -</div> -\ No newline at end of file diff --git a/src/main/webapp/templates-hidden/parts/apply-btm-form.html b/src/main/webapp/templates-hidden/parts/apply-btm-form.html @@ -0,0 +1,88 @@ +<div data-lift="AtmApplication" ng-controller="AtmApplicationCtrl" ng-cloak> + <form name="form" class="smart-form client-form" ng-submit="save()" novalidate> + <fieldset> + <section> + <label class="input" ng-class="{{ stateSuccessError('name') }}"> + <i class="icon-append fa fa-briefcase"></i> + <input name="name" ng-model="model.name" placeholder="Business Name" type="text" required> + <b class="tooltip tooltip-top-left">Please provide your unique business name.</b> + </label> + </section> + + <section> + <label class="input" ng-class="{{ stateSuccessError('email') }}"> + <i class="icon-append fa fa-envelope-o"></i> + <input name="email" ng-model="model.email" placeholder="E-Mail" type="email" required> + <b class="tooltip tooltip-top-left">Please provide your business email for further information.</b> + <span ng-show="form.email.$invalid && form.email.$dirty" class="text-danger small"> + Invalid email address + </span> + </label> + </section> + + <section> + <label class="input" ng-class="{{ stateSuccessError('phone') }}"> + <i class="icon-append fa fa-phone"></i> + <input name="phone" ng-model="model.phone" ui-mask="(999) 999-9999" placeholder="(xxx) xxx-xxxx" type="text" required> + <b class="tooltip tooltip-top-left">Please provide phone number for this contact.</b> + <span ng-show="form.phone.$invalid && form.phone.$dirty" class="text-danger small"> + Incomplete phone number + </span> + </label> + </section> + + <section> + <label class="input" ng-class="{{ stateSuccessError('address') }}"> + <input name="address" ng-model="model.address" placeholder="Address" type="text" required> + <b class="tooltip tooltip-top-left">Please provide the address of your business.</b> + </label> + </section> + + <div class="row"> + <section class="col col-6"> + <label class="input" ng-class="{{ stateSuccessError('city') }}"> + <input name="city" ng-model="model.city" placeholder="City" type="text" required> + <b class="tooltip tooltip-top-left">The city your business is located.</b> + </label> + </section> + <section class="col col-6" ng-class="{{ stateSuccessError('state') }}"> + <label data-lift="Selector.states" class="select"> + <select name="state" ng-model="model.state" required></select> + <i></i> + <b class="tooltip tooltip-top-left">The state your business is located.</b> + </label> + </section> + </div> + + <section> + <label class="input" ng-class="{{ stateSuccessError('website') }}"> + <i class="icon-append fa fa-globe"></i> + <input name="website" ng-model="model.website" placeholder="Website URL" type="text" ng-pattern="url_regex"> + <b class="tooltip tooltip-top-left">The website URL of your business.</b> + <span ng-show="form.website.$error.pattern" class="text-danger small"> + Invalid website url + </span> + </label> + </section> + + <section> + <label class="textarea" ng-class="{{ stateSuccess('bestTime') }}"> + <i class="icon-append fa fa-comment"></i> + <textarea name="bestTime" ng-model="model.bestTime" + placeholder="When is the best time to contact you?" rows="2"></textarea> + <b class="tooltip tooltip-top-left">Enter time of day and/or week you would like to be contacted.</b> + </label> + <em>Example: Saturday, 11am. Prefer phone call.</em> + </section> + + </fieldset> + + <footer> + <div ng-controller="AtmApplicationAlert" ng-cloak> + <span data-lift="embed?what=/templates-hidden/parts/alert"></span> + </div> + + <button type="submit" class="btn btn-primary" ng-disabled="form.$invalid" disabler ng-model="loading">Apply for A BTM</button> + </footer> + </form> +</div> +\ No newline at end of file diff --git a/src/main/webapp/templates-hidden/parts/atm-map.html b/src/main/webapp/templates-hidden/parts/atm-map.html @@ -1,122 +0,0 @@ - <div id="atm-map" data-lift="FindAtm" ng-controller="FindAtmCtrl" ng-class="{'nonfound': nonfound}" class="row fade-in two"> - <div class="col-xs-12"> - <div class="margin-xs-fix"> - - <div ng-show="nonfound" class="layer-info" ng-cloak> - <div class="row"> - <div class="col-xs-10 col-md-6 col-xs-offset-1 col-md-offset-0"> - <div id="coming-soon-msg" class="fade-in"> - <h1 class="text-white">We're Not There Yet ....</h1> - <p class="message text-white"> - But if you want us there, fill out your email address and - we'll be there. - </p> - </div> - </div> - <div class="col-md-12 visible-md visible-lg"></div> - <div class="col-xs-10 col-sm-4 col-md-6 col-xs-offset-1 col-sm-offset-4 col-md-offset-0"> - <span data-lift="embed?what=/templates-hidden/parts/notify-atm-form"></span> - </div> - </div> - </div> - - <div class="layer-overlay"> - <div ng-show="nonfound || !mapExpanded" class="layer-inner animate-showhide"></div> - </div> - - <div id="zoom-buttons"> - <button type="button" ng-click="zoomIn()" class="btn btn-default btn-sm btn-block">+</button> - <button type="button" ng-click="zoomOut()" class="btn btn-default btn-sm btn-block">-</button> - </div> - - <div class="map-panel" ng-cloak> - - <div class="well preview-box" ng-hide="!currentMarker || nonfound"> - <div class="row"> - <div class="col-xs-4 col-md-12 col-lg-4"> - - <div class="row"> - <div class="col-md-5 col-lg-12"> - <a href="{{ pageAtm(currentMarker) }}" target="_blank"> - <img class="img-thumbnail atm-profile" ng-src="{{ imageAtm(currentMarker,0) }}" /> - </a> - </div> - <div class="col-md-7 col-lg-12"> - <a href="{{ pageAtm(currentMarker) }}" target="_blank" class="atm-profile-name break-word nounderline"> - {{currentMarker.name}} - </a> - </div> - </div> - </div> - <div class="col-xs-8 col-md-12 col-lg-8 business-times padding-0"> - <table class="small"> - <tbody> - <tr ng-repeat="time in currentMarker.times" - ng-class="{'today': today() == $index}"> - <td>{{ day($index) }}</td> - <td>{{ timeRange(time.open, time.close) }}</td> - </tr> - </tbody> - </table> - <div class="note margin-top-10">Only showing local time.</div> - </div> - - </div> - </div> - - <div class="well search-box"> - - <form name="form" ng-submit="search()" novalidate ng-cloak> - <div class="input-group"> - <input - required - class="form-control" - autofocus="true" - type="text" - name="address" - placeholder="{{ searchPlaceholder() }}" - ng-model="model.address" - ng-maxlength="100"></input> - - <div class="input-group-btn"> - <button class="btn btn-default btn-primary" type="submit" - ng-disabled="form.$invalid" disabler ng-model="loading"> - <i class="fa fa-search"></i> Search ATM - </button> - </div> - </div> - </form> - - </div> - </div> - - <google-map - ng-cloak - center="map.center" - pan="true" - zoom="map.zoom" - draggable="true" - refresh="'true'" - events="map.events" - options="{disableDefaultUI: true, scrollwheel: false}"> - - <marker ng-repeat="m in map.dynamicMarkers" coords="m.loc" click="m.onClicked()" icon="map.icon" options="{title: m.name}"> - <window show="m.showWindow" closeClick="m.closeClick()" options="map.infoWindow.options" ng-cloak> - <div> - <address> - <strong>{{m.name}}</strong> <a href="{{ pageAtm(m) }}" target="_blank">more info</a><br> - {{m.address}}<br> - {{m.city}}, {{m.state}} {{m.postal}}<br> - <abbr title="Phone">P:</abbr> {{m.phone}}<br> - <a href="{{m.website}}" target="_blank">{{m.website}}</a> - <h6 class="store-status text-{{m.statusLevel}}">{{m.status}}</h6> - </address> - </div> - </window> - </marker> - - </google-map> - - </div> - </div> - </div> -\ No newline at end of file diff --git a/src/main/webapp/templates-hidden/parts/btm-map.html b/src/main/webapp/templates-hidden/parts/btm-map.html @@ -0,0 +1,122 @@ + <div id="atm-map" data-lift="FindAtm" ng-controller="FindAtmCtrl" ng-class="{'nonfound': nonfound}" class="row fade-in two"> + <div class="col-xs-12"> + <div class="margin-xs-fix"> + + <div ng-show="nonfound" class="layer-info" ng-cloak> + <div class="row"> + <div class="col-xs-10 col-md-6 col-xs-offset-1 col-md-offset-0"> + <div id="coming-soon-msg" class="fade-in"> + <h1 class="text-white">We're Not There Yet ....</h1> + <p class="message text-white"> + But if you want us there, fill out your email address and + we'll be there. + </p> + </div> + </div> + <div class="col-md-12 visible-md visible-lg"></div> + <div class="col-xs-10 col-sm-4 col-md-6 col-xs-offset-1 col-sm-offset-4 col-md-offset-0"> + <span data-lift="embed?what=/templates-hidden/parts/notify-btm-form"></span> + </div> + </div> + </div> + + <div class="layer-overlay"> + <div ng-show="nonfound || !mapExpanded" class="layer-inner animate-showhide"></div> + </div> + + <div id="zoom-buttons"> + <button type="button" ng-click="zoomIn()" class="btn btn-default btn-sm btn-block">+</button> + <button type="button" ng-click="zoomOut()" class="btn btn-default btn-sm btn-block">-</button> + </div> + + <div class="map-panel" ng-cloak> + + <div class="well preview-box" ng-hide="!currentMarker || nonfound"> + <div class="row"> + <div class="col-xs-4 col-md-12 col-lg-4"> + + <div class="row"> + <div class="col-md-5 col-lg-12"> + <a href="{{ pageAtm(currentMarker) }}" target="_blank"> + <img class="img-thumbnail atm-profile" ng-src="{{ imageAtm(currentMarker,0) }}" /> + </a> + </div> + <div class="col-md-7 col-lg-12"> + <a href="{{ pageAtm(currentMarker) }}" target="_blank" class="atm-profile-name break-word nounderline"> + {{currentMarker.name}} + </a> + </div> + </div> + </div> + <div class="col-xs-8 col-md-12 col-lg-8 business-times padding-0"> + <table class="small"> + <tbody> + <tr ng-repeat="time in currentMarker.times" + ng-class="{'today': today() == $index}"> + <td>{{ day($index) }}</td> + <td>{{ timeRange(time.open, time.close) }}</td> + </tr> + </tbody> + </table> + <div class="note margin-top-10">Only showing local time.</div> + </div> + + </div> + </div> + + <div class="well search-box"> + + <form name="form" ng-submit="search()" novalidate ng-cloak> + <div class="input-group"> + <input + required + class="form-control" + autofocus="true" + type="text" + name="address" + placeholder="{{ searchPlaceholder() }}" + ng-model="model.address" + ng-maxlength="100"></input> + + <div class="input-group-btn"> + <button class="btn btn-default btn-primary" type="submit" + ng-disabled="form.$invalid" disabler ng-model="loading"> + <i class="fa fa-search"></i> Search BTM + </button> + </div> + </div> + </form> + + </div> + </div> + + <google-map + ng-cloak + center="map.center" + pan="true" + zoom="map.zoom" + draggable="true" + refresh="'true'" + events="map.events" + options="{disableDefaultUI: true, scrollwheel: false}"> + + <marker ng-repeat="m in map.dynamicMarkers" coords="m.loc" click="m.onClicked()" icon="map.icon" options="{title: m.name}"> + <window show="m.showWindow" closeClick="m.closeClick()" options="map.infoWindow.options" ng-cloak> + <div> + <address> + <strong>{{m.name}}</strong> <a href="{{ pageAtm(m) }}" target="_blank">more info</a><br> + {{m.address}}<br> + {{m.city}}, {{m.state}} {{m.postal}}<br> + <abbr title="Phone">P:</abbr> {{m.phone}}<br> + <a href="{{m.website}}" target="_blank">{{m.website}}</a> + <h6 class="store-status text-{{m.statusLevel}}">{{m.status}}</h6> + </address> + </div> + </window> + </marker> + + </google-map> + + </div> + </div> + </div> +\ No newline at end of file diff --git a/src/main/webapp/templates-hidden/parts/contact-form.html b/src/main/webapp/templates-hidden/parts/contact-form.html @@ -36,7 +36,7 @@ <select name="reason" ng-model="model.reason"> <option value="General Question">General Question</option> <option value="Press Inquiry">Press Inquiry</option> - <option value="Interested in hosting a Bitcoin ATM">Interested in hosting a Bitcoin ATM</option> + <option value="Interested in hosting a BTM">Interested in hosting a BTM</option> </select> <i></i> <b class="tooltip tooltip-top-left">Reason you're contacting us today.</b> diff --git a/src/main/webapp/templates-hidden/parts/notify-atm-form.html b/src/main/webapp/templates-hidden/parts/notify-btm-form.html