-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create twig template for the example and include a form to change loc…
…ation name
- Loading branch information
Showing
3 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<html> | ||
<head> | ||
<title>Google street view API PHP example</title> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
</head> | ||
<body> | ||
<nav class="light-blue lighten-1" role="navigation"> | ||
<div class="nav-wrapper container"> | ||
<a id="logo-container" href="#" class="brand-logo"> | ||
Google street view example | ||
</a> | ||
</div> | ||
</nav> | ||
|
||
<div class="section no-pad-bot" id="index-banner"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col s12"> | ||
<ul class="tabs" id="tabs"> | ||
<li class="tab col s3"> | ||
<a href="#tab-result">Result</a> | ||
</li> | ||
<li class="tab col s3"> | ||
<a href="#tab-form">Test a location</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div id="tab-result" class="col s12">{{ result|raw }}</div> | ||
<div id="tab-form" class="col s12"> | ||
<form class="col s12" action="#" method="get"> | ||
<div class="row"> | ||
<div class="input-field col s12"> | ||
<input placeholder="Forbidden City, Beijing, China" id="location_name" name="location_name" type="text" class="validate" value="{{ locationName }}"> | ||
<label for="location_name">Location name</label> | ||
</div> | ||
</div> | ||
<div class="center col s12"> | ||
<button class="btn waves-effect waves-light" type="submit"> | ||
Search | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> | ||
<script type="text/javascript"> | ||
var instance = M.Tabs.init(document.getElementById('tabs')); | ||
</script> | ||
</body> | ||
</html> |