options.tmpl 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {{template "base/head" .}}
  2. <div class="organization settings options">
  3. {{template "org/header" .}}
  4. <div class="ui container">
  5. <div class="ui grid">
  6. {{template "org/settings/navbar" .}}
  7. <div class="twelve wide column content">
  8. {{template "base/alert" .}}
  9. <h4 class="ui top attached header">
  10. {{.i18n.Tr "org.settings.options"}}
  11. </h4>
  12. <div class="ui attached segment">
  13. <form class="ui form" action="{{.Link}}" method="post">
  14. {{.CsrfTokenHtml}}
  15. <div class="required field {{if .Err_Name}}error{{end}}">
  16. <label for="org_name">{{.i18n.Tr "org.org_name_holder"}}<span class="text red hide" id="org-name-change-prompt"> {{.i18n.Tr "org.settings.change_orgname_prompt"}}</span></label>
  17. <input id="org_name" name="name" value="{{.Org.Name}}" data-org-name="{{.Org.Name}}" autofocus required>
  18. </div>
  19. <div class="field {{if .Err_FullName}}error{{end}}">
  20. <label for="full_name">{{.i18n.Tr "org.org_name_holder"}}</label>
  21. <input id="full_name" name="full_name" value="{{.Org.FullName}}">
  22. </div>
  23. <div class="field {{if .Err_Description}}error{{end}}">
  24. <label for="description">{{$.i18n.Tr "org.org_desc"}}</label>
  25. <textarea id="description" name="description" rows="2">{{.Org.Description}}</textarea>
  26. </div>
  27. <div class="field {{if .Err_Website}}error{{end}}">
  28. <label for="website">{{.i18n.Tr "org.settings.website"}}</label>
  29. <input id="website" name="website" type="url" value="{{.Org.Website}}">
  30. </div>
  31. <div class="field">
  32. <label for="location">{{.i18n.Tr "org.settings.location"}}</label>
  33. <input id="location" name="location" value="{{.Org.Location}}">
  34. </div>
  35. <div class="field">
  36. <button class="ui green button">{{$.i18n.Tr "org.settings.update_settings"}}</button>
  37. </div>
  38. </form>
  39. <div class="ui divider"></div>
  40. <form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
  41. {{.CsrfTokenHtml}}
  42. <div class="inline field">
  43. <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
  44. <input name="avatar" type="file" >
  45. </div>
  46. <div class="field">
  47. <button class="ui green button">{{$.i18n.Tr "settings.update_avatar"}}</button>
  48. </div>
  49. </form>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. {{template "base/footer" .}}