Fix #1318 comment report form template

This commit is contained in:
Kijin Sung 2020-07-04 00:22:13 +09:00
parent 70f2e6ce4f
commit 45c4da14e2
2 changed files with 52 additions and 56 deletions

View file

@ -2,18 +2,16 @@
div.xe_mobile { div.xe_mobile {
display:none!important; display:none!important;
} }
section.declare_comment{ select#message_option {
display:block; clear: both;
width: 90%;
margin-bottom: 8px;
} }
section.declare_comment label{
font-weight: bold; textarea#declare_message {
}
section.declare_comment select,section.declare_comment textarea{
box-sizing:border-box;
height:auto;
width: 100%; width: 100%;
padding:7px; height: 80px;
font-size: 11pt; margin-bottom: 8px;
line-height: normal; box-sizing: border-box;
display:block; display: none;
} }

View file

@ -1,23 +1,22 @@
{@Context::addMetaTag('viewport', 'width=device-width, user-scalable=no', FALSE);} {@Context::addMetaTag('viewport', 'width=device-width, user-scalable=no', FALSE);}
<load target="./css/declare_comment.css" /> <load target="./css/declare_comment.css" />
<script cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/comment/tpl/1'"> <form action="./" method="post" id="fo_component" ruleset="insertDeclare">
alert("{$XE_VALIDATOR_MESSAGE}");
window.close();
</script>
<section class="declare_comment">
<h1>{$lang->improper_comment_declare}</h1>
<form action="./" method="post" id="fo_component" ruleset="insertDeclare">
<input type="hidden" name="module" value="comment" /> <input type="hidden" name="module" value="comment" />
<input type="hidden" name="act" value="procCommentDeclare" /> <input type="hidden" name="act" value="procCommentDeclare" />
<input type="hidden" name="target_srl" value="{$target_srl}" /> <input type="hidden" name="target_srl" value="{$target_srl}" />
<input type="hidden" name="success_return_url" value="{getUrl('', 'act', $act, 'target_srl', $target_srl)}" /> <input type="hidden" name="success_return_url" value="{getUrl('', 'act', $act, 'target_srl', $target_srl)}" />
<input type="hidden" name="xe_validator_id" value="modules/comment/tpl/1" /> <input type="hidden" name="xe_validator_id" value="modules/comment/tpl/1" />
<div class="x_modal-header">
<h1>{$lang->improper_comment_declare} <!--@if($type == 'cancel')-->{$lang->cmd_cancel}<!--@end--></h1>
</div>
<div class="x_modal-body x_form-horizontal" style="max-height:none">
<blockquote> <blockquote>
<section class="target_article"> <section class="target_article">
<h1>{$lang->replies}</h1> <h1>{$lang->replies}</h1>
<p>{$target_comment->getSummary(200)}</p> <p>{$target_comment->getSummary(200)}</p>
</section> </section>
</blockquote> </blockquote>
<div class="x_control-group">
<label class="x_control-label" for="message_option">{$lang->improper_comment_declare_reason}</label> <label class="x_control-label" for="message_option">{$lang->improper_comment_declare_reason}</label>
<div class="x_controls"> <div class="x_controls">
<select name="message_option" id="message_option"> <select name="message_option" id="message_option">
@ -26,31 +25,30 @@
<textarea name="declare_message" id="declare_message"></textarea> <textarea name="declare_message" id="declare_message"></textarea>
<p>{$lang->about_improper_comment_declare}<p> <p>{$lang->about_improper_comment_declare}<p>
</div> </div>
<div class="x_clearfix btnArea"> </div>
<div class="x_pull-right"> <div class="x_modal-footer">
<button type="submit" class="x_btn x_btn-primary" />{$lang->cmd_submit}</button> <span class="x_btn-group x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_submit}</button>
</span>
</div> </div>
</div> </div>
</form> </form>
</section> <script cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/comment/tpl/1'">
<script> alert("{$XE_VALIDATOR_MESSAGE}");
(function($){ window.close();
var msg_area = $('textarea[name="declare_message"]'); </script>
$('select[name="message_option"]').change(function(){ <script>
var option = { (function($){
duration:200, $(function() {
complete: function(){setFixedPopupSize();} setFixedPopupSize();
} $('select[name="message_option"]').change(function(){
if ($(this).val()==='others') { if ($(this).val()==='others') {
msg_area.slideDown(option); $('#declare_message').show();
} else {
} $('#declare_message').hide();
else { }
msg_area.slideUp(option); setFixedPopupSize();
setFixedPopupSize(); });
} });
}); })(jQuery);
msg_area.hide();
$(document).load(setFixedPopupSize);
})(jQuery);
</script> </script>