fix: #10 remove auto keyword generation choice
This commit is contained in:
parent
0254601819
commit
618492435c
@ -49,7 +49,6 @@ pub mod form {
|
|||||||
pub publish_at: NaiveDateTime,
|
pub publish_at: NaiveDateTime,
|
||||||
pub url: Option<String>,
|
pub url: Option<String>,
|
||||||
pub keywords: String,
|
pub keywords: String,
|
||||||
pub auto_keywords: bool,
|
|
||||||
}
|
}
|
||||||
impl Into<NewArticle> for NewArticleForm {
|
impl Into<NewArticle> for NewArticleForm {
|
||||||
fn into(self) -> NewArticle {
|
fn into(self) -> NewArticle {
|
||||||
|
@ -38,12 +38,6 @@
|
|||||||
KEYWORDS:
|
KEYWORDS:
|
||||||
<input type="text" name="keywords" value='{{ article.keywords | join(sep=",") }}'>
|
<input type="text" name="keywords" value='{{ article.keywords | join(sep=",") }}'>
|
||||||
</div>
|
</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>
|
<button>submit</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user