Spaces:
Runtime error
Runtime error
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Lookup</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<header> | |
<h1>Lookup Players/Teams/Umpires</h1> | |
<nav> | |
<ul> | |
<li><a href="/">Home</a></li> | |
<li><a href="/live_scoring">Live Scoring</a></li> | |
<li><a href="/scorecard">Scorecard</a></li> | |
<li><a href="/leaderboards">Leaderboards</a></li> | |
<li><a href="/tournament">Organize Tournament</a></li> | |
</ul> | |
</nav> | |
</header> | |
<main> | |
<section> | |
<h2>Search</h2> | |
<form action="/lookup" method="GET"> | |
<input type="text" name="query" placeholder="Enter player/team/umpire name" required> | |
<button type="submit">Search</button> | |
</form> | |
<div> | |
{% if result %} | |
<h3>Results:</h3> | |
<ul> | |
{% for item in result['players'] %} | |
<li>Player: {{ item.name }} (Team: {{ item.team }})</li> | |
{% endfor %} | |
{% for item in result['umpires'] %} | |
<li>Umpire: {{ item.name }} (Experience: {{ item.experience }})</li> | |
{% endfor %} | |
</ul> | |
{% endif %} | |
</div> | |
</section> | |
</main> | |
<footer> | |
<p>© 2025 Cricket Tournament. All rights reserved.</p> | |
</footer> | |
</body> | |
</html> | |