|
|
@@ -38,39 +38,39 @@
|
|
|
</a>
|
|
|
|
|
|
<div class="m-t-20 form-box col-md-11">
|
|
|
- <form action="" method="post" class="form-horizontal" role="form">
|
|
|
+ <form action="/admin/global-notification/create" method="post" class="form-horizontal" role="form">
|
|
|
<legend>通知設定詳細</legend>
|
|
|
|
|
|
<fieldset class="col-sm-offset-1 col-sm-4">
|
|
|
<div class="form-group">
|
|
|
<label for="triggerPath" class="control-label">トリガーパス</label><br />
|
|
|
- <input class="form-control" type="text" name="triggerPath" value="" required>
|
|
|
+ <input class="form-control" type="text" name="globalNotification[triggerPath]" value="" required>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
- <label for="notifyToType"class="control-label">通知先</label><br />
|
|
|
+ <label for="globalNotification[notifyToType]"class="control-label">通知先</label><br />
|
|
|
<div class="radio radio-primary">
|
|
|
- <input type="radio" id="mail" name="notifyToType" value="mail">
|
|
|
+ <input type="radio" id="mail" name="globalNotification[notifyToType]" value="mail">
|
|
|
<label for="mail">
|
|
|
<p class="font-weight-bold">Email</p>
|
|
|
</label>
|
|
|
</div>
|
|
|
- <div class="radio radio-primary">
|
|
|
- <input type="radio" id="slack" name="notifyToType" value="slack">
|
|
|
+ <!-- <div class="radio radio-primary">
|
|
|
+ <input type="radio" id="slack" name="globalNotification[notifyToType]" value="slack">
|
|
|
<label for="slack">
|
|
|
<p class="font-weight-bold">Slack</p>
|
|
|
</label>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group notify-to-option d-none" id="mail-input">
|
|
|
- <label for="toEmail"class="control-label">Email</label><br />
|
|
|
- <input class="form-control" type="text" name="toEmail" value="">
|
|
|
+ <label for="globalNotification[toEmail]"class="control-label">Email</label><br />
|
|
|
+ <input class="form-control" type="text" name="globalNotification[toEmail]" value="">
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group notify-to-option d-none" id="slack-input">
|
|
|
- <label for="slackChannels"class="control-label">Slack Channels</label><br />
|
|
|
- <input class="form-control" type="text" name="slackChannels" value="">
|
|
|
+ <label for="globalNotification[slackChannels]"class="control-label">Slack Channels</label><br />
|
|
|
+ <input class="form-control" type="text" name="globalNotification[slackChannels]" value="">
|
|
|
</div>
|
|
|
</fieldset>
|
|
|
|
|
|
@@ -78,37 +78,37 @@
|
|
|
<div class="form-group">
|
|
|
<label for="triggerEvent"class="control-label">トリガーイベント</label><br />
|
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageCreate" name="triggerEvent[pageCreate]" value="1" />
|
|
|
+ <input type="checkbox" id="trigger-event-pageCreate" name="globalNotification[triggerEvent:pageCreate]" value="1" />
|
|
|
<label for="trigger-event-pageCreate">
|
|
|
<i class="icon-note"></i> - When New Page is Created
|
|
|
</label>
|
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageEdit" name="triggerEvent[pageEdit]" value="1" />
|
|
|
+ <input type="checkbox" id="trigger-event-pageEdit" name="globalNotification[triggerEvent:pageEdit]" value="1" />
|
|
|
<label for="trigger-event-pageEdit">
|
|
|
<i class="icon-note"></i> - When Page is Edited
|
|
|
</label>
|
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageDelete" name="triggerEvent[pageDelete]" value="1" />
|
|
|
+ <input type="checkbox" id="trigger-event-pageDelete" name="globalNotification[triggerEvent:pageDelete]" value="1" />
|
|
|
<label for="trigger-event-pageDelete">
|
|
|
<i class="icon-note"></i> - When is Deleted
|
|
|
</label>
|
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageMove" name="triggerEvent[pageMove]" value="1" />
|
|
|
+ <input type="checkbox" id="trigger-event-pageMove" name="globalNotification[triggerEvent:pageMove]" value="1" />
|
|
|
<label for="trigger-event-pageMove">
|
|
|
<i class="icon-note"></i> - When Page is Moved (Renamed)
|
|
|
</label>
|
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-pageLike" name="triggerEvent[pageLike]" value="1" />
|
|
|
+ <input type="checkbox" id="trigger-event-pageLike" name="globalNotification[triggerEvent:pageLike]" value="1" />
|
|
|
<label for="trigger-event-pageLike">
|
|
|
<i class="icon-note"></i> - When Someone Likes Page
|
|
|
</label>
|
|
|
</div>
|
|
|
<div class="checkbox checkbox-info">
|
|
|
- <input type="checkbox" id="trigger-event-comment" name="triggerEvent[comment]" value="1" />
|
|
|
+ <input type="checkbox" id="trigger-event-comment" name="globalNotification[triggerEvent:comment]" value="1" />
|
|
|
<label for="trigger-event-comment">
|
|
|
<i class="icon-note"></i> - When Someone Comments on Page
|
|
|
</label>
|
|
|
@@ -128,7 +128,7 @@
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
- $('input[name="notifyToType"]').change(function() {
|
|
|
+ $('input[name="globalNotification[notifyToType]"]').change(function() {
|
|
|
var val = $(this).val();
|
|
|
$('.notify-to-option').addClass('d-none');
|
|
|
$('#' + val + '-input').removeClass('d-none');
|