-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from carinedengler/220
added preferences view and allow for updating delimiter (#closes 220)
- Loading branch information
Showing
5 changed files
with
96 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "layouts/base.html" %} | ||
{% block content %} | ||
<form method="POST" action="{{ url_for("main.preferences", corpus_id=corpus_id) }}"> | ||
<h1> | ||
<i class="fa fa-cog"></i> Preferences | ||
</h1> | ||
<fieldset class="form-fieldset"> | ||
<legend>Metadata</legend> | ||
<div class="form-group"> | ||
<label for="sep_token">Delimiter token</label> | ||
<input | ||
name="sep_token" | ||
type="text" | ||
class="form-control" | ||
id="sep_token" | ||
aria-describedby="sep_tokenHelp" | ||
value="{{ sep_token }}" | ||
{% if read_only %} | ||
readOnly="true" | ||
{% endif %} | ||
/> | ||
<small id="sep_tokenHelp" class="form-text text-muted"> | ||
[Optional] A specific token that is used as a delimiter | ||
between passages. | ||
</small> | ||
</div> | ||
</fieldset> | ||
</div> | ||
<button type="submit" id="submit" class="btn btn-primary">Submit</button> | ||
</form> | ||
{% 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