| 1 | {{ define "page" -}} |
| 2 | <section class="shithub-org-settings-page"> |
| 3 | <header class="shithub-org-pagehead shithub-org-settings-pagehead"> |
| 4 | <div class="shithub-org-pagehead-inner"> |
| 5 | <a class="shithub-org-pagehead-title" href="/{{ .Org.Slug }}"> |
| 6 | <img src="{{ .AvatarURL }}" alt="" width="30" height="30"> |
| 7 | <span>{{ if .Org.DisplayName }}{{ .Org.DisplayName }}{{ else }}{{ .Org.Slug }}{{ end }}</span> |
| 8 | </a> |
| 9 | </div> |
| 10 | </header> |
| 11 | |
| 12 | <div class="shithub-org-settings-layout"> |
| 13 | <aside class="shithub-org-settings-sidebar" aria-label="Organization settings"> |
| 14 | <h1>Settings</h1> |
| 15 | <nav class="shithub-org-settings-menu"> |
| 16 | <a class="is-selected" href="/organizations/{{ .Org.Slug }}/settings/profile" aria-current="page">{{ octicon "organization" }} General</a> |
| 17 | <a href="/organizations/{{ .Org.Slug }}/settings/import">{{ octicon "repo" }} Import repositories</a> |
| 18 | <span aria-disabled="true">{{ octicon "people" }} People</span> |
| 19 | <span aria-disabled="true">{{ octicon "repo" }} Repository defaults</span> |
| 20 | <span aria-disabled="true">{{ octicon "lock" }} Member privileges</span> |
| 21 | <h2>Code, planning, and automation</h2> |
| 22 | <span aria-disabled="true">{{ octicon "play" }} Actions</span> |
| 23 | <span aria-disabled="true">{{ octicon "table" }} Projects</span> |
| 24 | <span aria-disabled="true">{{ octicon "package" }} Packages</span> |
| 25 | <h2>Security</h2> |
| 26 | <span aria-disabled="true">{{ octicon "shield-check" }} Code security</span> |
| 27 | <span aria-disabled="true">{{ octicon "globe" }} Domains</span> |
| 28 | <h2>Access</h2> |
| 29 | <span aria-disabled="true">{{ octicon "gear" }} Integrations</span> |
| 30 | <span aria-disabled="true">{{ octicon "history" }} Audit log</span> |
| 31 | </nav> |
| 32 | </aside> |
| 33 | |
| 34 | <div class="shithub-org-settings-main"> |
| 35 | {{ with .Error }}<p class="shithub-flash shithub-flash-error" role="alert">{{ . }}</p>{{ end }} |
| 36 | {{ with .Success }}<p class="shithub-flash shithub-flash-success" role="status">{{ . }}</p>{{ end }} |
| 37 | |
| 38 | <div class="Subhead"> |
| 39 | <h2 class="Subhead-heading Subhead-heading--large">General</h2> |
| 40 | </div> |
| 41 | |
| 42 | <section class="shithub-org-settings-profile" aria-labelledby="org-profile-heading"> |
| 43 | <h3 id="org-profile-heading" class="sr-only">Organization profile</h3> |
| 44 | <div class="shithub-org-settings-profile-grid"> |
| 45 | <form method="POST" action="/organizations/{{ .Org.Slug }}/settings/profile" class="shithub-org-settings-form" novalidate> |
| 46 | <input type="hidden" name="csrf_token" value="{{ .CSRFToken }}"> |
| 47 | <label> |
| 48 | <span>Organization display name</span> |
| 49 | <input type="text" name="display_name" value="{{ .Form.DisplayName }}" maxlength="100" autocomplete="organization"> |
| 50 | </label> |
| 51 | <label> |
| 52 | <span>Description</span> |
| 53 | <textarea name="description" maxlength="350" rows="3">{{ .Form.Description }}</textarea> |
| 54 | </label> |
| 55 | <label> |
| 56 | <span>URL</span> |
| 57 | <input type="url" name="website" value="{{ .Form.Website }}" maxlength="200" placeholder="https://example.com" autocomplete="url"> |
| 58 | </label> |
| 59 | <label> |
| 60 | <span>Location</span> |
| 61 | <input type="text" name="location" value="{{ .Form.Location }}" maxlength="80" autocomplete="address-level2"> |
| 62 | </label> |
| 63 | <label> |
| 64 | <span>Billing email <small>(Private)</small></span> |
| 65 | <input type="email" name="billing_email" value="{{ .Form.BillingEmail }}" autocomplete="email"> |
| 66 | </label> |
| 67 | <label class="shithub-org-settings-checkbox"> |
| 68 | <input type="checkbox" name="allow_member_repo_create" {{ if .Form.AllowMemberRepoCreate }}checked{{ end }}> |
| 69 | <span>Allow members to create repositories for this organization</span> |
| 70 | </label> |
| 71 | <button type="submit" class="shithub-button shithub-button-primary">Update profile</button> |
| 72 | </form> |
| 73 | |
| 74 | <aside class="shithub-org-settings-avatar" aria-labelledby="org-avatar-heading"> |
| 75 | <h3 id="org-avatar-heading">Profile picture</h3> |
| 76 | <img class="shithub-profile-edit-avatar" src="{{ .AvatarURL }}" alt="@{{ .Org.Slug }}" width="200" height="200"> |
| 77 | {{ if .AvatarUploadEnabled }} |
| 78 | <form method="POST" action="/organizations/{{ .Org.Slug }}/settings/profile/avatar" enctype="multipart/form-data" novalidate> |
| 79 | <input type="hidden" name="csrf_token" value="{{ .CSRFToken }}"> |
| 80 | <label class="shithub-profile-edit-upload"> |
| 81 | <span>Upload new picture</span> |
| 82 | <input type="file" name="avatar" accept="image/png,image/jpeg,image/gif" required> |
| 83 | </label> |
| 84 | <button type="submit" class="shithub-button">Upload</button> |
| 85 | </form> |
| 86 | {{ if .HasAvatar }} |
| 87 | <form method="POST" action="/organizations/{{ .Org.Slug }}/settings/profile/avatar/remove" novalidate> |
| 88 | <input type="hidden" name="csrf_token" value="{{ .CSRFToken }}"> |
| 89 | <button type="submit" class="shithub-button shithub-button-danger">Remove picture</button> |
| 90 | </form> |
| 91 | {{ end }} |
| 92 | {{ else }} |
| 93 | <p class="shithub-empty-note">Avatar uploads are disabled until object storage is configured.</p> |
| 94 | {{ end }} |
| 95 | <p class="shithub-empty-note">Use an image that clearly represents this organization.</p> |
| 96 | </aside> |
| 97 | </div> |
| 98 | </section> |
| 99 | |
| 100 | <section class="shithub-org-settings-section" aria-labelledby="org-messaging-heading"> |
| 101 | <div class="Subhead Subhead--spacious border-bottom-0 mb-0 tmp-mb-0"> |
| 102 | <h2 id="org-messaging-heading" class="Subhead-heading Subhead-heading--large">In-product messages</h2> |
| 103 | </div> |
| 104 | <div class="shithub-org-settings-box"> |
| 105 | <div class="shithub-org-settings-row"> |
| 106 | <div> |
| 107 | <strong>Promotions</strong> |
| 108 | <p>Get product and event messages for this organization.</p> |
| 109 | </div> |
| 110 | <span class="ToggleSwitch ToggleSwitch--small ToggleSwitch--disabled"> |
| 111 | <span class="ToggleSwitch-status"><span class="ToggleSwitch-statusOff">Off</span></span> |
| 112 | <button type="button" class="ToggleSwitch-track" aria-label="Promotions" aria-pressed="false" disabled> |
| 113 | <div aria-hidden="true" class="ToggleSwitch-icons"><div class="ToggleSwitch-lineIcon"></div><div class="ToggleSwitch-circleIcon"></div></div> |
| 114 | <div class="ToggleSwitch-knob"></div> |
| 115 | </button> |
| 116 | </span> |
| 117 | </div> |
| 118 | <div class="shithub-org-settings-row"> |
| 119 | <div> |
| 120 | <strong>Tips</strong> |
| 121 | <p>Get tips for features enabled in repositories owned by this organization.</p> |
| 122 | </div> |
| 123 | <span class="ToggleSwitch ToggleSwitch--small ToggleSwitch--disabled"> |
| 124 | <span class="ToggleSwitch-status"><span class="ToggleSwitch-statusOff">Off</span></span> |
| 125 | <button type="button" class="ToggleSwitch-track" aria-label="Tips" aria-pressed="false" disabled> |
| 126 | <div aria-hidden="true" class="ToggleSwitch-icons"><div class="ToggleSwitch-lineIcon"></div><div class="ToggleSwitch-circleIcon"></div></div> |
| 127 | <div class="ToggleSwitch-knob"></div> |
| 128 | </button> |
| 129 | </span> |
| 130 | </div> |
| 131 | </div> |
| 132 | </section> |
| 133 | |
| 134 | <section class="shithub-org-settings-section" aria-labelledby="org-danger-heading"> |
| 135 | <div class="Subhead Subhead--spacious border-bottom-0 mb-0 tmp-mb-0"> |
| 136 | <h2 id="org-danger-heading" class="Subhead-heading Subhead-heading--large Subhead-heading--danger">Danger zone</h2> |
| 137 | </div> |
| 138 | <div class="Box Box--danger shithub-org-danger-box"> |
| 139 | <div class="Box-row shithub-org-danger-row"> |
| 140 | <div> |
| 141 | <div class="listgroup-item-title">Rename organization</div> |
| 142 | <div class="listgroup-item-body">Renaming your organization can have unintended side effects.</div> |
| 143 | </div> |
| 144 | <button type="button" class="shithub-button shithub-button-danger" disabled>Rename organization</button> |
| 145 | </div> |
| 146 | <div class="Box-row shithub-org-danger-row"> |
| 147 | <div> |
| 148 | <div class="listgroup-item-title">Archive this organization</div> |
| 149 | <div class="listgroup-item-body">Only organizations that meet archive requirements can be archived.</div> |
| 150 | </div> |
| 151 | <button type="button" class="shithub-button" disabled>Archive organization</button> |
| 152 | </div> |
| 153 | <div class="Box-row shithub-org-danger-row"> |
| 154 | <div> |
| 155 | <div class="listgroup-item-title">Delete this organization</div> |
| 156 | <div class="listgroup-item-body">Once deleted, it enters the configured recovery window before permanent removal.</div> |
| 157 | </div> |
| 158 | <details class="shithub-org-danger-details"> |
| 159 | <summary class="shithub-button shithub-button-danger">Delete this organization</summary> |
| 160 | <form method="POST" action="/organizations/{{ .Org.Slug }}/settings/delete" class="shithub-org-delete-form"> |
| 161 | <input type="hidden" name="csrf_token" value="{{ .CSRFToken }}"> |
| 162 | <label> |
| 163 | <span>Enter this organization's name to confirm</span> |
| 164 | <input type="text" name="confirm_slug" required autocomplete="off" placeholder="{{ .Org.Slug }}"> |
| 165 | </label> |
| 166 | <button type="submit" class="shithub-button shithub-button-danger">Delete this organization</button> |
| 167 | </form> |
| 168 | </details> |
| 169 | </div> |
| 170 | </div> |
| 171 | </section> |
| 172 | </div> |
| 173 | </div> |
| 174 | </section> |
| 175 | {{- end }} |