2016-03-28 14:29:05 +00:00
|
|
|
|
|
|
|
{{if $threaded}}
|
|
|
|
<div class="comment-wwedit-wrapper threaded" id="comment-edit-wrapper-{{$id}}" style="display: block;">
|
|
|
|
{{else}}
|
|
|
|
<div class="comment-wwedit-wrapper" id="comment-edit-wrapper-{{$id}}" style="display: block;">
|
|
|
|
{{/if}}
|
2017-04-19 02:03:49 +00:00
|
|
|
<form class="comment-edit-form" style="display: block;" data-item-id="{{$id}}" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">
|
2016-03-28 14:29:05 +00:00
|
|
|
<input type="hidden" name="type" value="{{$type}}" />
|
|
|
|
<input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
|
|
|
|
<input type="hidden" name="parent" value="{{$parent}}" />
|
|
|
|
{{*<!--<input type="hidden" name="return" value="{{$return_path}}" />-->*}}
|
|
|
|
<input type="hidden" name="jsreload" value="{{$jsreload}}" />
|
|
|
|
<input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
|
|
|
|
<input type="hidden" name="post_id_random" value="{{$rand_num}}" />
|
|
|
|
|
|
|
|
<div class="bb form-group">
|
2017-04-19 02:03:49 +00:00
|
|
|
<textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty form-control text-autosize" name="body" placeholder="{{$comment}}" onFocus="commentOpenUI(this,{{$id}});"></textarea>
|
2016-03-28 14:29:05 +00:00
|
|
|
</div>
|
|
|
|
{{if $qcomment}}
|
2017-01-07 14:49:13 +00:00
|
|
|
<select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});">
|
2016-03-28 14:29:05 +00:00
|
|
|
<option value=""></option>
|
|
|
|
{{foreach $qcomment as $qc}}
|
|
|
|
<option value="{{$qc}}">{{$qc}}</option>
|
|
|
|
{{/foreach}}
|
|
|
|
</select>
|
|
|
|
{{/if}}
|
|
|
|
|
2016-11-16 13:19:09 +00:00
|
|
|
<div class="comment-edit-text-end clear"></div>
|
2016-03-28 14:29:05 +00:00
|
|
|
<div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" style="display: none;">
|
2017-03-15 11:07:06 +00:00
|
|
|
<button type="submit" class="btn btn-primary btn-sm" id="comment-edit-submit-{{$id}}" name="submit"><i class="fa fa-envelope"></i> {{$submit}}</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
{{if $preview}}
|
2017-03-15 11:07:06 +00:00
|
|
|
<button type="button" class="btn btn-defaul btn-sm" onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}"><i class="fa fa-eye"></i> {{$preview}}</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
{{/if}}
|
2016-05-07 02:41:57 +00:00
|
|
|
<ul class="comment-edit-bb-{{$id}} comment-icon-list nav nav-pills pull-right">
|
2016-03-28 14:29:05 +00:00
|
|
|
<li>
|
2018-11-25 18:56:26 +00:00
|
|
|
<button type="button" class="btn-link icon bb-img" style="cursor: pointer;" aria-label="{{$edimg}}" title="{{$edimg|escape}}" data-role="insert-formatting" data-bbcode="img" data-id="{{$id}}">
|
2016-03-28 14:29:05 +00:00
|
|
|
<i class="fa fa-picture-o"></i>
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-11-25 18:56:26 +00:00
|
|
|
<button type="button" class="btn-link icon bb-url" style="cursor: pointer;" aria-label="{{$edurl}}" title="{{$edurl|escape}}" onclick="insertFormatting('url',{{$id}});">
|
2016-03-28 14:29:05 +00:00
|
|
|
<i class="fa fa-link"></i>
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
</li>
|
2018-10-24 14:20:10 +00:00
|
|
|
<li>
|
2018-11-25 18:56:26 +00:00
|
|
|
<button type="button" class="btn-link icon" style="cursor: pointer;" aria-label="{{$edattach}}" title="{{$edattach|escape}}" ondragenter="return commentLinkDrop(event, {{$id}});" ondragover="return commentLinkDrop(event, {{$id}});" ondrop="commentLinkDropper(event);" onclick="commentGetLink({{$id}}, '{{$prompttext}}');">
|
2018-10-24 14:20:10 +00:00
|
|
|
<i class="fa fa-paperclip"></i>
|
|
|
|
</button>
|
|
|
|
</li>
|
2016-03-28 14:29:05 +00:00
|
|
|
<li>
|
2018-11-25 18:56:26 +00:00
|
|
|
<button type="button" class="btn-link icon underline" style="cursor: pointer;" aria-label="{{$eduline}}" title="{{$eduline|escape}}" onclick="insertFormatting('u',{{$id}});">
|
2016-03-28 14:29:05 +00:00
|
|
|
<i class="fa fa-underline"></i>
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-11-25 18:56:26 +00:00
|
|
|
<button type="button" class="btn-link icon italic" style="cursor: pointer;" aria-label="{{$editalic}}" title="{{$editalic|escape}}" onclick="insertFormatting('i',{{$id}});">
|
2016-03-28 14:29:05 +00:00
|
|
|
<i class="fa fa-italic"></i>
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-11-25 18:56:26 +00:00
|
|
|
<button type="button" class="btn-link icon bold" style="cursor: pointer;" aria-label="{{$edbold}}" title="{{$edbold|escape}}" onclick="insertFormatting('b',{{$id}});">
|
2016-03-28 14:29:05 +00:00
|
|
|
<i class="fa fa-bold"></i>
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-11-25 18:56:26 +00:00
|
|
|
<button type="button" class="btn-link icon quote" style="cursor: pointer;" aria-label="{{$edquote}}" title="{{$edquote|escape}}" onclick="insertFormatting('quote',{{$id}});">
|
2016-03-28 14:29:05 +00:00
|
|
|
<i class="fa fa-quote-left"></i>
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-03-28 14:29:05 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2016-11-16 13:19:09 +00:00
|
|
|
<div class="comment-edit-end clear"></div>
|
2016-03-28 14:29:05 +00:00
|
|
|
</form>
|
2017-03-15 03:47:02 +00:00
|
|
|
<div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
|
2016-03-28 14:29:05 +00:00
|
|
|
</div>
|