Skip to content

Commit

Permalink
Merge pull request #60 from SteveWooding/fix-cancel-buttons-v2
Browse files Browse the repository at this point in the history
fix: Add type "button" to cancel buttons
  • Loading branch information
karlud authored Nov 30, 2017
2 parents acd55d0 + 83b71df commit fc0cf20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Lesson4/step2/templates/deleteRestaurant.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ <h2> Are you sure you want to delete {{restaurant.name}}? </h2>
<button type="submit" class="btn btn-default delete" id="submit" type="submit">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>Delete</button>
<a href = '{{url_for('showRestaurants')}}'>
<button class="btn btn-default delete">
<button class="btn btn-default delete" type="button">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
</a>

</form>

{% endblock %}
{% endblock %}
4 changes: 2 additions & 2 deletions Lesson4/step2/templates/editmenuitem.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ <h1>Edit Menu Item</h1>
<button type="submit" class="btn btn-default" id="submit" type="submit">
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>Save</button>
<a href = '{{url_for('showRestaurants')}}'>
<button class="btn btn-default delete">
<button class="btn btn-default delete" type="button">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
</a>
</div>
</form>
</div>
</div>
{% endblock %}
{% endblock %}

0 comments on commit fc0cf20

Please sign in to comment.