diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-09-25 22:00:46 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-09-25 22:00:46 +0200 |
commit | 08287375736a0a57c03b4bd6d9c222dc5567db6e (patch) | |
tree | b6426ca7127cc65484034542790b75773e5282f5 /templates/garage_website_inspect.html | |
parent | bc368943a4c0853718b8a53b1caadc297412ef32 (diff) | |
download | guichet-08287375736a0a57c03b4bd6d9c222dc5567db6e.tar.gz guichet-08287375736a0a57c03b4bd6d9c222dc5567db6e.zip |
patch and delete with quota are now implemented
Diffstat (limited to 'templates/garage_website_inspect.html')
-rw-r--r-- | templates/garage_website_inspect.html | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/templates/garage_website_inspect.html b/templates/garage_website_inspect.html index d5f48c2..c062ab9 100644 --- a/templates/garage_website_inspect.html +++ b/templates/garage_website_inspect.html @@ -2,15 +2,27 @@ {{define "body"}} <div class="d-flex"> - <a class="ml-4 btn btn-primary" href="/website/new">Nouveau site web</a> <!--<h4>Inspecter les sites webs</h4>--> <a class="ml-auto btn btn-link" href="/website/configure">Mes identifiants</a> <a class="ml-4 btn btn-info" href="/">Menu principal</a> </div> -<div class="row mt-3" > - <div class="col-md-3"> - <div class="list-group"> +<div class="row"> + {{ if .Err }} + <div class="col-md-12 mt-3"> + <div class="alert alert-danger">{{ .Err.Error }}</div> + </div> + {{ end }} + + <div class="col-md-3 mt-3"> + <a class="btn btn-primary btn-block" href="/website/new"> + <svg id="i-plus" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="18" height="18" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="6"> + <path d="M16 2 L16 30 M2 16 L30 16" /> + </svg> + <span class="ml-1">Nouveau site web</span> + </a> + + <div class="list-group mt-3"> {{ $view := .View }} {{ range $wid := .Ctrl.List }} {{ if eq $wid.Internal $view.Name.Internal }} @@ -24,6 +36,11 @@ {{ end }} {{ end }} </div> + + <p class="text-center mt-2"> + {{ .Ctrl.WebsiteCount.Current }} sites créés sur {{ .Ctrl.WebsiteCount.Max }}<br/> + Jusqu'à {{ .Ctrl.User.Quota.WebsiteSizeBurstedPretty }} par site web + </p> </div> <div class="col-md-9"> <h2>{{ .View.Name.Url }}</h2> @@ -42,6 +59,15 @@ {{ end }} </p> + <h5 class="mt-3">Actions</h5> + <form action="" method="post"> + <div class="btn-group" role="group" aria-label="Actions sur le site web"> + <button class="btn btn-secondary" name="action" value="increase_quota">Augmenter le quota</button> + <a class="btn btn-secondary disabled">Changer le nom de domaine</a> + <button class="btn btn-danger" name="action" value="delete_bucket">Supprimer</button> + </div> + </form> + {{ if .View.Name.Expanded }} <h5 class="mt-5">Vous ne savez pas comment configurer votre nom de domaine ?</h5> |