Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <div class="ui container">
  2. <h2 class="ui dividing header">
  3. {{if .PageIsEditProjects}}
  4. {{.locale.Tr "repo.projects.edit"}}
  5. <div class="sub header">{{.locale.Tr "repo.projects.edit_subheader"}}</div>
  6. {{else}}
  7. {{.locale.Tr "repo.projects.new"}}
  8. <div class="sub header">{{.locale.Tr "repo.projects.new_subheader"}}</div>
  9. {{end}}
  10. </h2>
  11. {{template "base/alert" .}}
  12. <form class="ui form grid" action="{{.Link}}" method="post">
  13. {{.CsrfTokenHtml}}
  14. <div class="eleven wide column">
  15. <input type="hidden" id="redirect" name="redirect" value="{{.redirect}}">
  16. <div class="field {{if .Err_Title}}error{{end}}">
  17. <label>{{.locale.Tr "repo.projects.title"}}</label>
  18. <input name="title" placeholder="{{.locale.Tr "repo.projects.title"}}" value="{{.title}}" autofocus required>
  19. </div>
  20. <div class="field">
  21. <label>{{.locale.Tr "repo.projects.description"}}</label>
  22. <textarea name="content" placeholder="{{.locale.Tr "repo.projects.description_placeholder"}}">{{.content}}</textarea>
  23. </div>
  24. {{if not .PageIsEditProjects}}
  25. <div class="field">
  26. <label>{{.locale.Tr "repo.projects.template.desc"}}</label>
  27. <div class="ui selection dropdown">
  28. <input type="hidden" name="board_type" value="{{.type}}">
  29. <div class="default text">{{.locale.Tr "repo.projects.template.desc_helper"}}</div>
  30. <div class="menu">
  31. {{range $element := .BoardTypes}}
  32. <div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{$.locale.Tr $element.Translation}}</div>
  33. {{end}}
  34. </div>
  35. </div>
  36. </div>
  37. {{end}}
  38. <div class="field">
  39. <label>{{.locale.Tr "repo.projects.card_type.desc"}}</label>
  40. <div class="ui selection dropdown">
  41. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  42. {{range $element := .CardTypes}}
  43. {{if or (eq $.card_type $element.CardType) (and (not $.PageIsEditProjects) (eq $element.CardType 1))}}
  44. <input type="hidden" name="card_type" value="{{$element.CardType}}">
  45. <div class="default text">{{$.locale.Tr $element.Translation}}</div>
  46. {{end}}
  47. {{end}}
  48. <div class="menu">
  49. {{range $element := .CardTypes}}
  50. <div class="item" data-id="{{$element.CardType}}" data-value="{{$element.CardType}}">{{$.locale.Tr $element.Translation}}</div>
  51. {{end}}
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="ui container">
  57. <div class="ui divider"></div>
  58. <div class="ui left">
  59. <a class="ui cancel button" href="{{$.CancelLink}}">
  60. {{.locale.Tr "repo.milestones.cancel"}}
  61. </a>
  62. <button class="ui primary button">
  63. {{if .PageIsEditProjects}}{{.locale.Tr "repo.projects.modify"}}{{else}}{{.locale.Tr "repo.projects.create"}}{{end}}
  64. </button>
  65. </div>
  66. </div>
  67. </form>
  68. </div>