You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB

  1. {{template "base/head" .}}
  2. <div class="repository wiki new">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <div class="ui header">
  7. {{.i18n.Tr "repo.wiki.new_page"}}
  8. {{if .PageIsWikiEdit}}
  9. <div class="ui right">
  10. <a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
  11. </div>
  12. {{end}}
  13. </div>
  14. <form class="ui form" action="{{.Link}}" method="post">
  15. {{.CsrfTokenHtml}}
  16. <div class="field {{if .Err_Title}}error{{end}}">
  17. <input name="title" value="{{.title}}" autofocus required>
  18. </div>
  19. <div class="ui top attached tabular menu previewtabs">
  20. <a class="active item" data-tab="write">{{.i18n.Tr "write"}}</a>
  21. <a class="item" data-tab="preview">{{.i18n.Tr "preview"}}</a>
  22. </div>
  23. <div class="field">
  24. <textarea class="js-quick-submit" id="edit_area" name="content" data-id="wiki-{{.title}}" data-url="{{.Repository.APIURL}}/markdown" data-context="{{.RepoLink}}/wiki" required>{{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}</textarea>
  25. </div>
  26. <div class="field">
  27. <input name="message" placeholder="{{.i18n.Tr "repo.wiki.default_commit_message"}}">
  28. </div>
  29. <div class="text right">
  30. <button class="ui green button">
  31. {{.i18n.Tr "repo.wiki.save_page"}}
  32. </button>
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. {{template "base/footer" .}}