Make Generate New Token panel shown by default (#3832)
This is mostly a 'feel' change. The behaviour that is currently on the access tokens pages is, as far as I know, not present in any other parts of the frontend, and there's no real good reason to keep the 'Generate New Token' panel hidden by default in my opinion.pull/3863/head
parent
7ea4bfc561
commit
fb8535e305
|
@ -5,9 +5,6 @@
|
||||||
{{template "base/alert" .}}
|
{{template "base/alert" .}}
|
||||||
<h4 class="ui top attached header">
|
<h4 class="ui top attached header">
|
||||||
{{.i18n.Tr "settings.manage_access_token"}}
|
{{.i18n.Tr "settings.manage_access_token"}}
|
||||||
<div class="ui right">
|
|
||||||
<div class="ui blue tiny show-panel button" data-panel="#add-access-token-panel">{{.i18n.Tr "settings.generate_new_token"}}</div>
|
|
||||||
</div>
|
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="ui key list">
|
<div class="ui key list">
|
||||||
|
@ -32,24 +29,21 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div {{if not .HasError}}class="hide"{{end}} id="add-access-token-panel">
|
{{.i18n.Tr "settings.generate_new_token"}}
|
||||||
<h4 class="ui top attached header">
|
</h4>
|
||||||
{{.i18n.Tr "settings.generate_new_token"}}
|
<div class="ui attached segment">
|
||||||
</h4>
|
<p>{{.i18n.Tr "settings.new_token_desc"}}</p>
|
||||||
<div class="ui attached segment">
|
<form class="ui form ignore-dirty" action="{{.Link}}" method="post">
|
||||||
<form class="ui form ignore-dirty" action="{{.Link}}" method="post">
|
{{.CsrfTokenHtml}}
|
||||||
{{.CsrfTokenHtml}}
|
<div class="field {{if .Err_Name}}error{{end}}">
|
||||||
<p>{{.i18n.Tr "settings.new_token_desc"}}</p>
|
<label for="name">{{.i18n.Tr "settings.token_name"}}</label>
|
||||||
<div class="field {{if .Err_Name}}error{{end}}">
|
<input id="name" name="name" value="{{.name}}" autofocus required>
|
||||||
<label for="name">{{.i18n.Tr "settings.token_name"}}</label>
|
</div>
|
||||||
<input id="name" name="name" value="{{.name}}" autofocus required>
|
<button class="ui green button">
|
||||||
</div>
|
{{.i18n.Tr "settings.generate_token"}}
|
||||||
<button class="ui green button">
|
</button>
|
||||||
{{.i18n.Tr "settings.generate_token"}}
|
</form>
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue