This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/post/_blacklists.php

35 lines
1.2 KiB
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<div id="blacklisted-sidebar" style="display: none;">
<h5>
<?= $this->linkToFunction($this->t('.hidden_posts'), "$('blacklisted-list-box').toggle()", array('class' => 'no-focus-outline')) ?>
<span id="blacklist-count" class="post-count"></span>
</h5>
<div id="blacklisted-list-box" style="display: none; margin-bottom: 1em;">
<ul id="blacklisted-list" style="margin-bottom: 0em;">
<li>
</ul>
<?= $this->formTag("#", array('id' => 'blacklisted-tag-add', 'level' => 'member'), function(){ ?>
<div>
» <?= $this->textFieldTag("add-blacklist", "", array('size' => '20')) ?>
<?= $this->linkToFunction($this->t('.add'), "Post.blacklist_add_commit();", array('class' => 'text-button', 'style' => 'padding: 0px 4px', 'level' => 'blocked')) ?>
<?= $this->submitTag($this->t('.add'), array('style' => 'display: none;')) ?>
</div>
<?= $this->t('.info') ?>
<?php }) ?>
</div>
</div>
<?= $this->contentFor('post_cookie_javascripts', function() { ?>
<script type="text/javascript">
document.observe("dom:loaded", function() {
$("blacklisted-tag-add").observe("submit", function(e) {
if(e.stopped) return;
e.stop();
Post.blacklist_add_commit();
});
});
</script>
<?php }) ?>