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,56 +1,54 @@
{@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}"); <input type="hidden" name="module" value="comment" />
window.close(); <input type="hidden" name="act" value="procCommentDeclare" />
</script> <input type="hidden" name="target_srl" value="{$target_srl}" />
<section class="declare_comment"> <input type="hidden" name="success_return_url" value="{getUrl('', 'act', $act, 'target_srl', $target_srl)}" />
<h1>{$lang->improper_comment_declare}</h1> <input type="hidden" name="xe_validator_id" value="modules/comment/tpl/1" />
<form action="./" method="post" id="fo_component" ruleset="insertDeclare"> <div class="x_modal-header">
<input type="hidden" name="module" value="comment" /> <h1>{$lang->improper_comment_declare} <!--@if($type == 'cancel')-->{$lang->cmd_cancel}<!--@end--></h1>
<input type="hidden" name="act" value="procCommentDeclare" /> </div>
<input type="hidden" name="target_srl" value="{$target_srl}" /> <div class="x_modal-body x_form-horizontal" style="max-height:none">
<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" />
<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>
<label class="x_control-label" for="message_option">{$lang->improper_comment_declare_reason}</label> <div class="x_control-group">
<div class="x_controls"> <label class="x_control-label" for="message_option">{$lang->improper_comment_declare_reason}</label>
<select name="message_option" id="message_option"> <div class="x_controls">
<option loop="$lang->improper_comment_reasons => $key,$text" value="{$key}">{$text}</option> <select name="message_option" id="message_option">
</select> <option loop="$lang->improper_comment_reasons => $key,$text" value="{$key}">{$text}</option>
<textarea name="declare_message" id="declare_message"></textarea> </select>
<p>{$lang->about_improper_comment_declare}<p> <textarea name="declare_message" id="declare_message"></textarea>
</div> <p>{$lang->about_improper_comment_declare}<p>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary" />{$lang->cmd_submit}</button>
</div> </div>
</div> </div>
</form> <div class="x_modal-footer">
</section> <span class="x_btn-group x_pull-right">
<script> <button type="submit" class="x_btn x_btn-primary">{$lang->cmd_submit}</button>
(function($){ </span>
var msg_area = $('textarea[name="declare_message"]'); </div>
$('select[name="message_option"]').change(function(){ </div>
var option = { </form>
duration:200, <script cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/comment/tpl/1'">
complete: function(){setFixedPopupSize();} alert("{$XE_VALIDATOR_MESSAGE}");
} window.close();
if ($(this).val()==='others') { </script>
msg_area.slideDown(option); <script>
(function($){
} $(function() {
else { setFixedPopupSize();
msg_area.slideUp(option); $('select[name="message_option"]').change(function(){
setFixedPopupSize(); if ($(this).val()==='others') {
} $('#declare_message').show();
}); } else {
msg_area.hide(); $('#declare_message').hide();
$(document).load(setFixedPopupSize); }
})(jQuery); setFixedPopupSize();
});
});
})(jQuery);
</script> </script>