summaryrefslogtreecommitdiffstats
path: root/templates/org/settings/delete.tmpl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-12-12 23:57:56 +0100
commite68b9d00a6e05b3a941f63ffb696f91e554ac5ec (patch)
tree97775d6c13b0f416af55314eb6a89ef792474615 /templates/org/settings/delete.tmpl
parentInitial commit. (diff)
downloadforgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.tar.xz
forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.zip
Adding upstream version 9.0.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '')
-rw-r--r--templates/org/settings/delete.tmpl35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl
new file mode 100644
index 0000000..e1ef471
--- /dev/null
+++ b/templates/org/settings/delete.tmpl
@@ -0,0 +1,35 @@
+{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings delete")}}
+
+ <div class="org-setting-content">
+ <h4 class="ui top attached error header">
+ {{ctx.Locale.Tr "org.settings.delete_account"}}
+ </h4>
+ <div class="ui attached error segment">
+ <div class="ui red message">
+ <p class="text left">{{svg "octicon-alert"}} {{ctx.Locale.Tr "org.settings.delete_prompt"}}</p>
+ </div>
+ <form class="ui form ignore-dirty" id="delete-form" action="{{.Link}}" method="post">
+ {{.CsrfTokenHtml}}
+ <div class="inline required field {{if .Err_OrgName}}error{{end}}">
+ <label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}</label>
+ <input id="org_name" name="org_name" value="" autocomplete="off" autofocus required>
+ </div>
+ <button class="ui red button delete-button" data-type="form" data-form="#delete-form">
+ {{ctx.Locale.Tr "org.settings.confirm_delete_account"}}
+ </button>
+ </form>
+ </div>
+ </div>
+
+<div class="ui g-modal-confirm delete modal">
+ <div class="header">
+ {{svg "octicon-trash"}}
+ {{ctx.Locale.Tr "org.settings.delete_org_title"}}
+ </div>
+ <div class="content">
+ <p>{{ctx.Locale.Tr "org.settings.delete_org_desc"}}</p>
+ </div>
+ {{template "base/modal_actions_confirm" .}}
+</div>
+
+{{template "org/settings/layout_footer" .}}