| 1 | <div class="panel"> |
| 2 | <div class="head">⚙ Settings - {{OWNER}}/{{REPO}}</div> |
| 3 | <div class="body"> |
| 4 | |
| 5 | <h3>Description</h3> |
| 6 | <form class="auth-form" id="descForm"> |
| 7 | <input type="text" id="rDesc" name="description" value="{{DESCRIPTION}}" maxlength="256"> |
| 8 | <button type="submit">Save</button> |
| 9 | <div class="form-msg" id="descMsg"></div> |
| 10 | </form> |
| 11 | |
| 12 | <hr> |
| 13 | <h3>Visibility</h3> |
| 14 | <form class="auth-form" id="visForm"> |
| 15 | <label><input type="radio" name="visibility" value="public" {{VIS_PUBLIC}}> Public</label> |
| 16 | <label><input type="radio" name="visibility" value="private" {{VIS_PRIVATE}}> Private</label> |
| 17 | <button type="submit">Save</button> |
| 18 | <div class="form-msg" id="visMsg"></div> |
| 19 | </form> |
| 20 | |
| 21 | <hr> |
| 22 | <h3>Rename</h3> |
| 23 | <form class="auth-form" id="renameForm"> |
| 24 | <input type="text" name="name" placeholder="new-name" pattern="[a-z0-9][a-z0-9_-]*" maxlength="39" required> |
| 25 | <button type="submit">Rename</button> |
| 26 | <div class="form-msg" id="renameMsg"></div> |
| 27 | </form> |
| 28 | |
| 29 | <hr> |
| 30 | <h3>Danger zone</h3> |
| 31 | <p>Deleting a repository is permanent and cannot be undone.</p> |
| 32 | <button id="deleteBtn" class="btn-danger" type="button">Delete this repository</button> |
| 33 | <div class="form-msg" id="deleteMsg"></div> |
| 34 | |
| 35 | </div> |
| 36 | </div> |
| 37 | |