mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-09 04:43:54 -05:00
The first users of multiple email reply to addresses will be using the API. This means that the need to be able to specify the ID of the reply to address they want. We chose to implement it like this instead of by passing the address in directly because that means deploying code. For some teams deploying code can take weeks, and we’d like to let teams have the flexibility to make changes faster than this. Same as for templates, you shouldn’t have to go to the _edit_ page in order to get the ID. This means listing them on the page where you see all the reply to addresses. Listing the IDs like this means that it’s not really a table any more, because the information isn’t organised in columns. So I think it makes sense to reuse the pattern from the manage team page, which has a similar relationship between the information.
11 lines
309 B
HTML
11 lines
309 B
HTML
{% macro api_key(key, name=None, thing="API key") %}
|
|
{% if name %}
|
|
<h2 class="api-key-name">
|
|
{{ name }}
|
|
</h2>
|
|
{% endif %}
|
|
<div data-module="api-key" data-key="{{ key }}" data-thing="{{ thing }}" aria-live="assertive">
|
|
<span class="api-key-key">{{ key }}</span>
|
|
</div>
|
|
{% endmacro %}
|