|
@@ -37,8 +37,13 @@
|
|
|
通知設定一覧に戻る
|
|
通知設定一覧に戻る
|
|
|
</a>
|
|
</a>
|
|
|
|
|
|
|
|
|
|
+ {% if setting %}
|
|
|
|
|
+ {% set actionPath = '/admin/global-notification/update' %}
|
|
|
|
|
+ {% else %}
|
|
|
|
|
+ {% set actionPath = '/admin/global-notification/create' %}
|
|
|
|
|
+ {% endif %}
|
|
|
<div class="m-t-20 form-box col-md-11">
|
|
<div class="m-t-20 form-box col-md-11">
|
|
|
- <form action="/admin/global-notification/create" method="post" class="form-horizontal" role="form">
|
|
|
|
|
|
|
+ <form action="{{ actionPath }}" method="post" class="form-horizontal" role="form">
|
|
|
<legend>通知設定詳細</legend>
|
|
<legend>通知設定詳細</legend>
|
|
|
|
|
|
|
|
<fieldset class="col-sm-offset-1 col-sm-4">
|
|
<fieldset class="col-sm-offset-1 col-sm-4">
|
|
@@ -63,52 +68,58 @@
|
|
|
</div> -->
|
|
</div> -->
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="form-group notify-to-option d-none" id="mail-input">
|
|
|
|
|
|
|
+ <div class="form-group notify-to-option {% if setting.__t != 'mail' %}d-none{% endif %}" id="mail-input">
|
|
|
<label for="notificationGlobal[toEmail]"class="control-label">Email</label><br />
|
|
<label for="notificationGlobal[toEmail]"class="control-label">Email</label><br />
|
|
|
<input class="form-control" type="text" name="notificationGlobal[toEmail]" value="{{ setting.toEmail || '' }}">
|
|
<input class="form-control" type="text" name="notificationGlobal[toEmail]" value="{{ setting.toEmail || '' }}">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="form-group notify-to-option d-none" id="slack-input">
|
|
|
|
|
|
|
+ <!-- <div class="form-group notify-to-option {% if setting.__t != 'slack' %}d-none{% endif %}" id="slack-input">
|
|
|
<label for="notificationGlobal[slackChannels]"class="control-label">Slack Channels</label><br />
|
|
<label for="notificationGlobal[slackChannels]"class="control-label">Slack Channels</label><br />
|
|
|
<input class="form-control" type="text" name="notificationGlobal[slackChannels]" value="{{ setting.slackChannels || '' }}">
|
|
<input class="form-control" type="text" name="notificationGlobal[slackChannels]" value="{{ setting.slackChannels || '' }}">
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="col-sm-offset-1 col-sm-4">
|
|
<fieldset class="col-sm-offset-1 col-sm-4">
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<label for="triggerEvent"class="control-label">トリガーイベント</label><br />
|
|
<label for="triggerEvent"class="control-label">トリガーイベント</label><br />
|
|
|
<div class="checkbox checkbox-info">
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageCreate" name="notificationGlobal[triggerEvent:pageCreate]" value="pageCreate" {% if setting.triggerEvents.indexOf('pageCreate') != -1 %}checked{% endif %} />
|
|
|
|
|
|
|
+ <input type="checkbox" id="trigger-event-pageCreate" name="notificationGlobal[triggerEvent:pageCreate]" value="pageCreate"
|
|
|
|
|
+ {% if setting && (setting.triggerEvents.indexOf('pageCreate') != -1) %}checked{% endif %} />
|
|
|
<label for="trigger-event-pageCreate">
|
|
<label for="trigger-event-pageCreate">
|
|
|
<span class="label label-info"><i class="icon-doc"></i> CREATE</span> - When New Page is Created
|
|
<span class="label label-info"><i class="icon-doc"></i> CREATE</span> - When New Page is Created
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageEdit" name="notificationGlobal[triggerEvent:pageEdit]" value="pageEdit" {% if setting.triggerEvents.indexOf('pageEdit') != -1 %}checked{% endif %} />
|
|
|
|
|
|
|
+ <input type="checkbox" id="trigger-event-pageEdit" name="notificationGlobal[triggerEvent:pageEdit]" value="pageEdit"
|
|
|
|
|
+ {% if setting && (setting.triggerEvents.indexOf('pageEdit') != -1) %}checked{% endif %} />
|
|
|
<label for="trigger-event-pageEdit">
|
|
<label for="trigger-event-pageEdit">
|
|
|
<span class="label label-info"><i class="icon-doc"></i> EDIT</span> - When Page is Edited
|
|
<span class="label label-info"><i class="icon-doc"></i> EDIT</span> - When Page is Edited
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageDelete" name="notificationGlobal[triggerEvent:pageDelete]" value="pageDelete" {% if setting.triggerEvents.indexOf('pageDelete') != -1 %}checked{% endif %} />
|
|
|
|
|
|
|
+ <input type="checkbox" id="trigger-event-pageDelete" name="notificationGlobal[triggerEvent:pageDelete]" value="pageDelete"
|
|
|
|
|
+ {% if setting && (setting.triggerEvents.indexOf('pageDelete') != -1) %}checked{% endif %} />
|
|
|
<label for="trigger-event-pageDelete">
|
|
<label for="trigger-event-pageDelete">
|
|
|
<span class="label label-info"><i class="icon-doc"></i> DELETE</span> - When is Deleted
|
|
<span class="label label-info"><i class="icon-doc"></i> DELETE</span> - When is Deleted
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageMove" name="notificationGlobal[triggerEvent:pageMove]" value="pageMove" {% if setting.triggerEvents.indexOf('pageMove') != -1 %}checked{% endif %} />
|
|
|
|
|
|
|
+ <input type="checkbox" id="trigger-event-pageMove" name="notificationGlobal[triggerEvent:pageMove]" value="pageMove"
|
|
|
|
|
+ {% if setting && (setting.triggerEvents.indexOf('pageMove') != -1) %}checked{% endif %} />
|
|
|
<label for="trigger-event-pageMove">
|
|
<label for="trigger-event-pageMove">
|
|
|
<span class="label label-info"><i class="icon-doc"></i> MOVE</span> - When Page is Moved (Renamed)
|
|
<span class="label label-info"><i class="icon-doc"></i> MOVE</span> - When Page is Moved (Renamed)
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageLike" name="notificationGlobal[triggerEvent:pageLike]" value="pageLike" {% if setting.triggerEvents.indexOf('pageLike') != -1 %}checked{% endif %} />
|
|
|
|
|
|
|
+ <input type="checkbox" id="trigger-event-pageLike" name="notificationGlobal[triggerEvent:pageLike]" value="pageLike"
|
|
|
|
|
+ {% if setting && (setting.triggerEvents.indexOf('pageLike') != -1) %}checked{% endif %} />
|
|
|
<label for="trigger-event-pageLike">
|
|
<label for="trigger-event-pageLike">
|
|
|
<span class="label label-info"><i class="icon-doc"></i> LIKE</span> - When Someone Likes Page
|
|
<span class="label label-info"><i class="icon-doc"></i> LIKE</span> - When Someone Likes Page
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-comment" name="notificationGlobal[triggerEvent:comment]" value="comment" {% if setting.triggerEvents.indexOf('comment') != -1 %}checked{% endif %} />
|
|
|
|
|
|
|
+ <input type="checkbox" id="trigger-event-comment" name="notificationGlobal[triggerEvent:comment]" value="comment"
|
|
|
|
|
+ {% if setting && (setting.triggerEvents.indexOf('comment') != -1) %}checked{% endif %} />
|
|
|
<label for="trigger-event-comment">
|
|
<label for="trigger-event-comment">
|
|
|
<span class="label label-info"><i class="icon-fw icon-bubbles"></i> POST</span> - When Someone Comments on Page
|
|
<span class="label label-info"><i class="icon-fw icon-bubbles"></i> POST</span> - When Someone Comments on Page
|
|
|
</label>
|
|
</label>
|
|
@@ -117,7 +128,7 @@
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
|
|
|
|
|
<div class="col-sm-offset-5 col-sm-12 m-t-20">
|
|
<div class="col-sm-offset-5 col-sm-12 m-t-20">
|
|
|
- <input type="hidden" name="notificationGlobal[id]" value="">
|
|
|
|
|
|
|
+ <input type="hidden" name="notificationGlobal[id]" value="{{ setting.id }}">
|
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-primary">{{ t('Update') }}</button>
|
|
<button type="submit" class="btn btn-primary">{{ t('Update') }}</button>
|
|
|
</div>
|
|
</div>
|