mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 13:28:25 -04:00
Refactor inbound api html and processing
This commit is contained in:
@@ -57,6 +57,17 @@
|
||||
{{ edit_field('Change', url_for('.service_set_inbound_sms', service_id=current_service.id)) }}
|
||||
{% endcall %}
|
||||
|
||||
{% if 'inbound_sms' in current_service.permissions %}
|
||||
{% call row() %}
|
||||
{{ text_field('API endpoint for received text messages') }}
|
||||
{{ text_field(
|
||||
'None' if not inbound_api_url else inbound_api_url,
|
||||
status='' if inbound_api_url else 'default'
|
||||
) }}
|
||||
{{ edit_field('Change', url_for('.service_set_inbound_api', service_id=current_service.id)) }}
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
{% call row() %}
|
||||
{{ text_field('Letters') }}
|
||||
{{ boolean_field(current_service.can_send_letters) }}
|
||||
@@ -73,12 +84,6 @@
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
{% call row() %}
|
||||
{{ text_field('Inbound API') }}
|
||||
{{ boolean_field(current_service.can_send_letters) }}
|
||||
{{ edit_field('Change', url_for('.service_set_inbound_api', service_id=current_service.id)) }}
|
||||
{% endcall %}
|
||||
|
||||
{% endcall %}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user