forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_access_key.php
More file actions
45 lines (41 loc) · 1.51 KB
/
Copy pathadd_access_key.php
File metadata and controls
45 lines (41 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- Begin toolbar -->
<div class="toolbar">
<div class="toolbar-inner">
<div class="toolbar-buttons">
<a class="button button-secondary" id="btn-back" href="/list/access-key/">
<i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?>
</a>
</div>
<div class="toolbar-buttons">
<a href="#" class="button" data-action="submit" data-id="vstobjects">
<i class="fas fa-floppy-disk status-icon purple"></i><?=_('Save');?>
</a>
</div>
</div>
</div>
<!-- End toolbar -->
<div class="container animate__animated animate__fadeIn">
<form id="vstobjects" name="v_add_access_key" method="post">
<input type="hidden" name="token" value="<?= $_SESSION['token'] ?>">
<input type="hidden" name="ok" value="Add">
<div class="form-container">
<h1 class="form-title"><?=_('Adding Access Key');?></h1>
<?php show_alert_message($_SESSION);?>
<p class="u-mb10"><?=_('Permissions');?></p>
<?php foreach ($apis as $api_name => $api_data) { ?>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="<?= $api_name ?>" name="v_apis[]" id="v_apis_<?= $api_name ?>" tabindex="5">
<label for="v_apis_<?= $api_name ?>">
<?=_($api_name); ?>
</label>
</div>
<?php } ?>
<div class="u-mt15">
<label for="v_comment" class="form-label">
<?=_('Comment');?> <span class="optional">(<?=_('optional');?>)</span>
</label>
<input type="text" class="form-control" name="v_comment" id="v_comment" maxlength="255">
</div>
</div>
</form>
</div>