Api Key view
This commit is contained in:
parent
cd7c0be03d
commit
82cec8eece
4 changed files with 48 additions and 2 deletions
|
|
@ -37,9 +37,21 @@
|
|||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ProtectedValue)
|
||||
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ProtectedValue)
|
||||
<code>
|
||||
<input id="key" value="@Model.ProtectedValue" readonly/></code>
|
||||
<button type="button"
|
||||
class="btn btn-success" autocomplete="off"
|
||||
onclick="$('#key').select();document.execCommand('copy');"
|
||||
>Copy</button>
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ApiKey.IsValid)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ApiKey.IsValid)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue