mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
57 lines
2.9 KiB
XML
57 lines
2.9 KiB
XML
<div id="write" style="padding: 5px 0;" onfocusin="expand_wall_textarea();">
|
|
<form action="{$route}" method="post" enctype="multipart/form-data" style="margin:0;">
|
|
<textarea id="wall-post-input" placeholder="{_write}" name="text" style="width: 100%;resize: none;" class="small-textarea"></textarea>
|
|
<div>
|
|
<!-- padding to fix <br/> bug -->
|
|
</div>
|
|
<div id="post-buttons" style="display: none;">
|
|
<div class="post-upload">
|
|
Вложение: <span>(unknown)</span>
|
|
</div>
|
|
<div n:if="$postOpts ?? true" class="post-opts">
|
|
{if !is_null($thisUser) && !is_null($club) && $owner < 0}
|
|
{if $club->canBeModifiedBy($thisUser)}
|
|
<script>
|
|
function onWallAsGroupClick(el) {
|
|
_display = el.checked ? "block" : "none";
|
|
document.querySelector("#forceSignOpt").style.display = _display;
|
|
}
|
|
</script>
|
|
|
|
<label>
|
|
<input type="checkbox" name="as_group" onchange="onWallAsGroupClick(this)" /> {_"post_as_group"}
|
|
</label>
|
|
<label id="forceSignOpt" style="display: none;">
|
|
<input type="checkbox" name="force_sign" /> {_"add_signature"}
|
|
</label>
|
|
{/if}
|
|
{/if}
|
|
|
|
<label>
|
|
<input type="checkbox" name="nsfw" /> {_"contains_nsfw"}
|
|
</label>
|
|
</div>
|
|
<input type="file" name="_pic_attachment" accept="image/*" style="display:none;" />
|
|
<input type="hidden" name="type" value="1" />
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
<br/>
|
|
<input type="submit" value="{_'write'}" class="button" />
|
|
<div style="float: right; display: flex; flex-direction: column;">
|
|
<a href="javascript:void(u('#wallAttachmentMenu').toggleClass('hidden'));">
|
|
Прикрепить
|
|
</a>
|
|
|
|
<div id="wallAttachmentMenu" class="hidden">
|
|
<a href="javascript:void(document.querySelector('input[name=_pic_attachment]').click());">
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/mimetypes/application-x-egon.png" />
|
|
{_attach_photo}
|
|
</a>
|
|
<a n:if="$graffiti ?? false" href="javascript:initGraffiti();">
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/actions/draw-brush.png" />
|
|
Нарисовать граффити
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|