Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding type="button" to cancel buttons #3

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 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 type="button" class="btn btn-default delete">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
</a>

</form>

{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion templates/deletemenuitem.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2> Are you sure you want to delete {{item.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 type="button" class="btn btn-default delete">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
</a>

Expand Down
4 changes: 2 additions & 2 deletions templates/editRestaurant.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ <h1>Edit {{restaurant.name}}</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 type="button" class="btn btn-default delete">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
</a>
</div>
</form>
</div>
</div>
{% endblock %}
{% endblock %}
4 changes: 2 additions & 2 deletions 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 type="button" class="btn btn-default delete">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cancel</button>
</a>
</div>
</form>
</div>
</div>
{% endblock %}
{% endblock %}