diff options
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r-- | templates/repo/wiki/new.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index cdf5225d3b..ede6a46757 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -7,8 +7,9 @@ {{.i18n.Tr "repo.wiki.new_page"}} </div> <form class="ui form" action="{{.Link}}" method="post"> + {{.CsrfTokenHtml}} <div class="field"> - <input name="title" value="{{.title}}" autofocus> + <input name="title" value="{{.title}}" autofocus required> </div> <div class="field"> <textarea id="edit-area" name="content" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "repo.wiki.welcome"}}</textarea> |