2024-12-07 08:05:51 +01:00
|
|
|
{% extends './layout/default' %}
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
|
|
|
{{ Breadcrumbs.render }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
2024-12-07 09:41:09 +01:00
|
|
|
<div class="row">
|
2024-12-07 08:05:51 +01:00
|
|
|
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<form action="{{ route('admin.notification.post') }}" method="post">
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'notification_settings'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2024-12-07 09:41:09 +01:00
|
|
|
<p>
|
|
|
|
{{ trans('firefly.owner_notifications_expl') }}
|
|
|
|
</p>
|
|
|
|
{% for notification, value in notifications %}
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input value="1" {% if true == value %}checked{% endif %} type="checkbox" name="notification_{{ notification }}"> {{ trans('firefly.owner_notification_check_'~notification) }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<p style="margin-top:2em;">{{ 'channel_settings'|_ }}</p>
|
2024-12-07 08:05:51 +01:00
|
|
|
{{ ExpandedForm.text('slackUrl', slackUrl, {'label' : 'slack_url_label'|_}) }}
|
|
|
|
{{ ExpandedForm.text('discordUrl', discordUrl, {'label' : 'discord_url_label'|_}) }}
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<button type="submit" class="btn btn-success">
|
|
|
|
<span class="fa fa-check-circle"></span> {{ ('save_notification_settings')|_ }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<form action="{{ route('admin.notification.test') }}" method="post">
|
|
|
|
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'available_channels_title'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<p>
|
|
|
|
{{ 'available_channels_expl'|_ }}
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
{% for name,info in channels %}
|
|
|
|
<li>
|
|
|
|
{% if info.enabled %}
|
|
|
|
☑️ {{ trans('firefly.notification_channel_name_'~name) }}
|
|
|
|
{% if 0 == info.ui_configurable %}({{ 'configure_channel_in_env'|_ }}) {% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if not info.enabled %}
|
|
|
|
⚠️ {{ trans('firefly.notification_channel_name_'~name) }} ({{ 'channel_not_available'|_ }})
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<div class="btn-group">
|
|
|
|
{% for name,info in channels %}
|
|
|
|
{% if info.enabled %}
|
|
|
|
<button type="submit" name="test_submit" value="{{ name }}" class="btn btn-default">
|
|
|
|
{{ trans('firefly.test_notification_channel_name_'~name) }}
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|