Update a skin html for user config. page of the notification module (#1300)

알림센터 모듈의 default_bottom 스킨의 사용자 설정 페이지에 설정이 일부 빠져 있어서 업데이트 합니다.
This commit is contained in:
Min-Soo Kim 2020-05-31 15:18:22 +09:00 committed by GitHub
parent fa9e8fbe21
commit 81774f6e96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 165 additions and 4 deletions

View file

@ -0,0 +1,63 @@
<load target="../../../member/skins/default/css/member.css" />
<include target="../../../member/skins/default/common_header.html" />
<div class="xm">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/ncenterlite/skins/default_bottom/unsubscribe/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertConfig" action="./" method="post" class="form-horizontal" id="fo_ncenterlite">
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteInsertUnsubscribe" />
<input type="hidden" name="xe_validator_id" value="modules/ncenterlite/skins/default_bottom/unsubscribe/1" />
<!--@if($unsubscribeData)-->
<input type="hidden" name="target_srl" value="{$unsubscribeData->target_srl}" />
<input type="hidden" name="unsubscribe_srl" value="{$unsubscribeData->unsubscribe_srl}" />
<input type="hidden" name="unsubscribe_type" value="{$unsubscribeData->unsubscribe_type}" />
<!--@else-->
<input type="hidden" name="target_srl" value="{$target_srl}" />
<input type="hidden" name="unsubscribe_srl" value="{$unsubscribe_srl}" />
<input type="hidden" name="unsubscribe_type" value="{$unsubscribe_type}" />
<!--@end-->
<section class="section">
<div class="control-group">
<label class="control-label">{lang('ncenterlite_content_type')}</label>
<div class="controls">
<p>
{$type}
</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{lang('content')}</label>
<div class="controls">
<p>
<!--@if($unsubscribeData)-->
{escape($unsubscribeData->text, false)}
<!--@else-->
{escape($text, false)}
<!--@end-->
</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->this_message_unsubscribe}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="value" value="Y" checked="checked"|cond="$unsubscribeData->value != 'N'" /> {$lang->ncenterlite_to_unsubscribe}
</label>
<label class="inline">
<input type="radio" name="value" value="N" checked="checked"|cond="$unsubscribeData->value == 'N'" /> {$lang->ncenterlite_subscribe}
</label>
<p>{$lang->about_this_message_unsubscribe}</p>
</div>
</div>
</section>
<div class="clearfix btnArea">
<div class="pull-right">
<button class="btn btn-primary" type="submit">{$lang->cmd_registration}</button>
</div>
</div>
</form>
</div>
<include target="../../../member/skins/default/common_footer.html" />

View file

@ -0,0 +1,63 @@
<include target="../../../member/skins/default/common_header.html" />
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/ncenterlite/skins/default_bottom/unsubscribe/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<table class="table table-striped table-hover" style="margin-top:20px;">
<thead class="bg_f_f9">
<tr>
<th scope="col">{lang('ncenterlite_content_type')}</th>
<th scope="col">{lang('content')}</th>
<th scope="col">{lang('ncenterlite_notify_settings')}</th>
</tr>
</thead>
<tbody>
<!--@foreach($unsubscribe_list as $no => $val)-->
<tr>
<td>
<!--@if($val->unsubscribe_type == 'document')-->
<span>{lang('document')}</span>
<!--@else-->
<span>{lang('comment')}</span>
<!--@end-->
</td>
<td>
<!--@if($val->unsubscribe_type == 'document')-->
<a href="{getUrl('', 'document_srl', $val->target_srl)}">{escape($val->text, false)}</a>
<!--@else-->
<a href="{getUrl('', 'document_srl', $val->document_srl)}#{$val->target_srl}">{escape($val->text, false)}</a>
<!--@end-->
</td>
<td>
<form action="./" method="post">
<fieldset>
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteInsertUnsubscribe" />
<input type="hidden" name="xe_validator_id" value="modules/ncenterlite/skins/default_bottom/unsubscribe/1" />
<input type="hidden" name="target_srl" value="{$val->target_srl}" />
<input type="hidden" name="unsubscribe_type" value="{$val->unsubscribe_type}" />
<input type="hidden" name="unsubscribe_srl" value="{$val->unsubscribe_srl}" />
<select name="value" style="width:175px;">
<option value="Y">{$lang->ncenterlite_to_unsubscribe}</option>
<option value="N">{$lang->ncenterlite_subscribe}</option>
</select>
<button type="submit" class="x_btn">{$lang->cmd_setup}</button>
</fieldset>
</form>
</td>
</tr>
<!--@endforeach-->
</tbody>
</table>
<div class="pagination pagination-centered">
<ul>
<li><a href="{getUrl('page','')}" class="direction">&laquo; {$lang->first_page}</a></li>
<!--@if($page_navigation)-->
<!--@while($page_no = $page_navigation->getNextPage())-->
<li class="active"|cond="$page == $page_no"><a href="{getUrl('page',$page_no)}">{$page_no}</a></li>
<!--@end-->
<!--@end-->
<li><a href="{getUrl('page',$page_navigation->last_page)}" class="direction">{$lang->last_page} &raquo;</a></li>
</ul>
</div>
<include target="../../../member/skins/default/common_footer.html" />

View file

@ -24,7 +24,7 @@
<label class="control-label">{$lang->ncenterlite_comment_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify == 'Y'" /> {$lang->ncenterlite_activate}
<input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify != 'N'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="comment_notify" value="N" checked="checked"|cond="$user_config->comment_notify == 'N'" /> {$lang->ncenterlite_inactivate}
@ -36,7 +36,7 @@
<label class="control-label">{$lang->ncenterlite_mention_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify == 'Y'" /> {$lang->ncenterlite_activate}
<input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify != 'N'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="mention_notify" value="N" checked="checked"|cond="$user_config->mention_notify == 'N'" /> {$lang->ncenterlite_inactivate}
@ -48,7 +48,7 @@
<label class="control-label">{$lang->ncenterlite_message_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify == 'Y'" /> {$lang->ncenterlite_activate}
<input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify != 'N'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="message_notify" value="N" checked="checked"|cond="$user_config->message_notify == 'N'" /> {$lang->ncenterlite_inactivate}
@ -56,7 +56,42 @@
<p class="help-block">{$lang->ncenterlite_message_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_vote_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="vote_notify" value="Y" checked="checked"|cond="$user_config->vote_notify != 'N'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="vote_notify" value="N" checked="checked"|cond="$user_config->vote_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_vote_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_scrap_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="scrap_notify" value="Y" checked="checked"|cond="$user_config->scrap_notify != 'N'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="scrap_notify" value="N" checked="checked"|cond="$user_config->scrap_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_scrap_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_comment_comment_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="comment_comment_notify" value="Y" checked="checked"|cond="$user_config->comment_comment_notify != 'N'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="comment_comment_notify" value="N" checked="checked"|cond="$user_config->comment_comment_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_comment_comment_noti_about}</p>
</div>
</div>
</section>
<div class="clearfix btnArea">
<div class="pull-right">