fix: #10 remove auto keyword generation choice

This commit is contained in:
Kilerd Chan 2019-05-20 10:58:36 +08:00
parent 0254601819
commit 618492435c
2 changed files with 0 additions and 7 deletions

View File

@ -49,7 +49,6 @@ pub mod form {
pub publish_at: NaiveDateTime,
pub url: Option<String>,
pub keywords: String,
pub auto_keywords: bool,
}
impl Into<NewArticle> for NewArticleForm {
fn into(self) -> NewArticle {

View File

@ -38,12 +38,6 @@
KEYWORDS:
<input type="text" name="keywords" value='{{ article.keywords | join(sep=",") }}'>
</div>
<div>
AUTO GENERATE KEYWORDS:
<input type="checkbox" id="auto_keywords_show" checked onclick="document.getElementById('auto_keywords').value = document.getElementById('auto_keywords_show').checked ? 'true' : 'false'">
<input type="hidden" name="auto_keywords" id="auto_keywords" value="true">
</div>
<button>submit</button>
</form>