2021-07-20 14:52:50 +02:00
<div class="micromodal" id="api_key_modal" aria-hidden="true">
2022-11-11 08:10:56 +01:00
<div class="modal__overlay" tabindex="-1">
2021-07-20 14:52:50 +02:00
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="api_key_modal_label">
<header class="modal__header">
<h1 class="modal__title" id="api_key_modal_label">
{{ t "Show API key" }}
</h1>
<button class="modal__close" aria-label=" {{ t 'Close modal' }} " data-micromodal-close></button>
</header>
2022-10-06 07:18:37 +02:00
<main class="modal__content">
2021-07-20 14:52:50 +02:00
<div id="password_confirmation">
2021-11-24 07:05:47 +01:00
<span class="alert-notification" id="api_key_status"></span>
2021-07-20 14:52:50 +02:00
<div id="api_key_form">
2023-03-09 03:48:37 +01:00
<p> {{ t "Please re-enter your password to confirm your identity." }} </p>
2024-07-17 11:48:01 +02:00
<div class="settings-password-div">
2024-08-07 22:07:35 +02:00
<label for="get_api_key_password" class="modal-field-label"> {{ t "Your password" }} </label>
2024-07-17 12:41:48 +02:00
<div class="password-input-row">
<input type="password" autocomplete="off" name="password" id="get_api_key_password" class=" modal_password_input" value="" />
<i class="fa fa-eye-slash password_visibility_toggle tippy-zulip-tooltip" role="button"></i>
</div>
2021-07-20 14:52:50 +02:00
</div>
2023-03-09 03:48:37 +01:00
<p class="small">
{{ # tr }} If you don't know your password, you can <z-link>reset it</z-link>.
{{ #*inline "z-link" }} <a href="/accounts/password/reset/" target="_blank" rel="noopener noreferrer"> {{ > @partial-block }} </a> {{ / inline }}
{{ / tr }}
</p>
2021-07-20 14:52:50 +02:00
</div>
</div>
<div id="show_api_key">
<p> {{ t "Your API key:" }} </p>
<p><b><span id="api_key_value"></span></b></p>
<div id="user_api_key_error" class="text-error"></div>
2019-08-12 16:43:20 +02:00
</div>
2021-07-20 14:52:50 +02:00
</main>
<footer class="modal__footer">
2024-11-13 13:13:51 +01:00
<button type="submit" name="view_api_key" id="get_api_key_button" class="modal__button dialog_submit_button">
2019-08-12 16:43:20 +02:00
{{ t 'Get API key' }}
</button>
2021-07-20 14:52:50 +02:00
<div id="api_key_buttons">
2024-11-13 13:13:51 +01:00
<button class="modal__button dialog_submit_button" id="regenerate_api_key" aria-label=" {{ t 'Generate new API key' }} "> {{ t "Generate new API key" }} </button>
<a class="modal__button dialog_submit_button" id="download_zuliprc" download="zuliprc" tabindex="0"> {{ t "Download zuliprc" }} </a>
2021-07-20 14:52:50 +02:00
</div>
</footer>
2019-08-12 16:43:20 +02:00
</div>
</div>
</div>