rhymix/modules/ncenterlite/tpl/othercomment.html
Kijin Sung c52187a8f2 Support user config of notification types, fixes #994
코어에서 지원하는 알림 종류 및 알림 수신 방법이 늘어남에 따라,
관리자가 설정한 범위 내에서 회원들이 알림 수신 방법을 선택할 수 있도록 합니다.
기존에는 수신 여부만 선택할 수 있었으나 이제 더 세부적인 설정이 가능합니다.
예를 들어 웹 알림과 푸시알림은 받고, 메일 알림과 문자 알림은 끌 수 있습니다.

이 기능을 지원하기 위해 ncenterlite_user_set 테이블 스키마를 대폭 조정합니다.
기존 설정은 가능하면 그대로 유지하려고 노력하였습니다.
2020-12-17 23:41:31 +09:00

42 lines
1.9 KiB
HTML

<load target="js/ncenter_admin.js" />
<load target="css/ncenter_admin.css" />
<include target="header.html" />
<form ruleset="insertConfig" action="./" method="post" class="x_form-horizontal" id="fo_ncenterlite">
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="disp_act" value="dispNcenterliteAdminOtherComment" />
<input type="hidden" name="act" value="procNcenterliteAdminInsertConfig" />
<section class="section">
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_comment_all}</label>
<div class="x_controls">
<label class="x_inline">
<input type="radio" id="comment_all_y" name="comment_all" value="Y" checked="checked"|cond="$config->comment_all == 'Y'" /> {$lang->use}
</label>
<label class="x_inline">
<input type="radio" id="comment_all_n" name="comment_all" value="N" checked="checked"|cond="$config->comment_all != 'Y'" /> {$lang->notuse}
</label>
<p class="x_help-block">{$lang->ncenterlite_use_othercomment_help}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_comment_all_select_mid}</label>
<div class="x_controls">
<p class="x_help-block">{$lang->ncenterlite_about_comment_all_select_mid}</p>
<div loop="$mid_list => $mid, $item">
<label>
<input type="checkbox" value="{$item->module_srl}" name="comment_all_notify_module_srls[]" checked="checked"|cond="is_array($config->comment_all_notify_module_srls) && in_array($item->module_srl, $config->comment_all_notify_module_srls)" />
<strong>{$item->browser_title}</strong> ({$item->mid} / {strtoupper($item->module)})
</label>
</div>
</div>
</div>
</section>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button class="x_btn x_btn-primary" type="submit">{$lang->cmd_registration}</button>
</div>
</div>
</form>