-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
139 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% extends 'base.html' %} | ||
{% load staticfiles %} | ||
|
||
{% block title %}Spell Checker{% endblock %} | ||
|
||
{% block page_header %} | ||
{% endblock %} | ||
|
||
{% block body_block %} | ||
|
||
<form id="search_form" role="form" method="get" action="{% url 'checker.bigram' %}"> | ||
|
||
<div class="input-group"> | ||
<input type="text" id="word" name="word" class="form-control" | ||
placeholder="Please input your words" value="{{ word }}" autocomplete="on" | ||
maxlength="64" tabindex="1" width="570px"/> | ||
|
||
<span class="input-group-btn"> | ||
<input type="submit" id="check_button" class="btn btn-default" value="Check"/> | ||
</span> | ||
</div> | ||
<br/> | ||
|
||
</form> | ||
|
||
<div id="search_result"> | ||
|
||
{% if word %} | ||
{% if corrections %} | ||
|
||
<div class="list-group"> | ||
|
||
<span class="list-group-item"> | ||
<strong><p class="list-group-item-text">{{ in_dict }}</p></strong> | ||
</span> | ||
|
||
{% for p in corrections %} | ||
<span class="list-group-item"> | ||
<p class="list-group-item-text">{{ p }}</p> | ||
</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
<div>No words found.</div> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters