Implementing Mobile Store Locator

These are Mobile Web Storefront cartridge files used to implement the store locator feature:

Forms

mobilestorelocator.xml (new)

storelocator.xml (deleted)

Templates

mobile/components/header/Htmlhead.isml (changed to include meta tag for viewport)

mobile/content/home/homepage.isml (changed to include link to store locator)

mobile/storelocator/storelocator.isml (new)

mobile/storelocator/storelocatorresults.isml (new)

mobile/storelocator/storesjson.isml (new)

Pipelines

mStores (changed)

CSS

mobile.css

 /* STORE LOCATOR --------------------------------------------------------------------------------------- */
 .storesearch { padding:4px;}
 .storelocator h1 {border-bottom: 1px solid #CCC;color: #666;font-size: 12px;font-weight: bold;}
 .storeresults h5 {background:none;font-size:10pt;}
 .storeresults
 .storedistance {color:red;font-size:10pt;font-weight:bold;}
 .storeresults a {border-bottom: 1px solid #CCC;display:block;font-size:9pt !important;padding:4px;text-decoration:none;}
 .storeresults a:hover {background:#ededed;}
 .storeresults a div{font-size:9pt !important;}
 .storeevents,.storehours {padding:4px}
 .storedistance {padding:0 0 0 8px;vertical-align:top;}
 .storemap {height:100%;width:90%;margin:auto;}

Resources

templates/resourceform.properties (changed properties)

 ##############################################
 # Template name: forms/mobilestorelocator
 ##############################################
 forms.mobilestorelocator.zip.label=Zip Code
 forms.mobilestorelocator.zip.value-error=Enter a zip.
 forms.mobilestorelocator.zip.missing-error=Enter a zip.
 forms.mobilestorelocator.zip.parse-error=The format of the zip is invalid.
 forms.mobilestorelocator.zipinvalid=The format of the zip is invalid.
 forms.mobilestorelocator.maxdistance.label=Radius
 forms.mobilestorelocator.maxdistance.option.1=15 Miles
 forms.mobilestorelocator.maxdistance.option.2=30 Miles
 forms.mobilestorelocator.maxdistance.option.3=100 Miles
 forms.mobilestorelocator.maxdistance.option.4=300 Miles
 forms.mobilestorelocator.maxdistance.option.5=USA
 forms.mobilestorelocator.find.label=Find
 forms.mobilestorelocator.005=15 Miles
 forms.mobilestorelocator.006=30 Miles
 forms.mobilestorelocator.007=100 Miles
 forms.mobilestorelocator.008=300 Miles
 forms.mobilestorelocator.010=Go
 forms.mobilestorelocator.state.label=State/Province: 

templates/resource/locale.properties (changed to add new properties)

 global.storelocator=Store Locator 

template/resource/storelocator.properties (new)