Skip to content

Commit fc0cf20

Browse files
authored
Merge pull request udacity#60 from SteveWooding/fix-cancel-buttons-v2
fix: Add type "button" to cancel buttons
2 parents acd55d0 + 83b71df commit fc0cf20

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lesson4/step2/templates/deleteRestaurant.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ <h2> Are you sure you want to delete {{restaurant.name}}? </h2>
88
<button type="submit" class="btn btn-default delete" id="submit" type="submit">
99
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>Delete</button>
1010
<a href = '{{url_for('showRestaurants')}}'>
11-
<button class="btn btn-default delete">
11+
<button class="btn btn-default delete" type="button">
1212
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
1313
</a>
1414

1515
</form>
1616

17-
{% endblock %}
17+
{% endblock %}

Lesson4/step2/templates/editmenuitem.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ <h1>Edit Menu Item</h1>
4848
<button type="submit" class="btn btn-default" id="submit" type="submit">
4949
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>Save</button>
5050
<a href = '{{url_for('showRestaurants')}}'>
51-
<button class="btn btn-default delete">
51+
<button class="btn btn-default delete" type="button">
5252
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
5353
</a>
5454
</div>
5555
</form>
5656
</div>
5757
</div>
58-
{% endblock %}
58+
{% endblock %}

0 commit comments

Comments
 (0)