Browse Source

Changing default text for form entry, using urlize filter to create clickable url

David Leonard 10 years ago
parent
commit
ce6c2db839
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hackathon_starter/hackathon/templates/hackathon/yelp.html

+ 2 - 2
hackathon_starter/hackathon/templates/hackathon/yelp.html

@@ -16,7 +16,7 @@
           {% csrf_token %}
           {% load bootstrap %}
           <br>
-          <input type="text" name="location" class="form-control" placeholder="Enter a location" value="" required autofocus>
+          <input type="text" name="location" class="form-control" placeholder="Enter a location, e.g: yelp-san-francisco?" value="" required autofocus>
           <br>
           <button class="btn btn-lg btn-primary btn-block" type="submit">Search</button>
           <input type="hidden" name="submit" value="submit" />
@@ -44,7 +44,7 @@
 	                    <td>{{ key.snippet_text }}</td>
 	                    <td>{{ key.is_closed }}</td>
 	                    <td>{{ key.review_count }}</td>
-	                    <td>{{ key.url }}</td>
+	                    <td>{{ key.url |urlize }}</td>
 	    			</tr>
 	            {% endfor %}