Skip to content

Commit

Permalink
Improve formatting of blacklist page
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 15, 2015
1 parent 4909191 commit 410baec
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
38 changes: 21 additions & 17 deletions ingo/templates/basic/blacklist/blacklist.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,40 @@
<?php endif; ?>
</h1>

<div>
<div class="blacklistDiv">
<em><?php echo _("Action for blacklisted addresses:") ?></em>
<?php echo $this->hordeHelp('ingo', 'blacklist-action') ?>
</div>

<div class="blacklistAction">
<?php echo $this->radioButtonTag('action', 'delete', empty($this->folder), array('id' => 'action_delete')) ?>
<?php echo $this->hordeLabel('action_delete', _("_Delete message completely")) ?>
<br />
<ul class="blacklistAction">
<li>
<?php echo $this->radioButtonTag('action', 'delete', empty($this->folder), array('id' => 'action_delete')) ?>
<?php echo $this->hordeLabel('action_delete', _("_Delete message completely")) ?>
</li>
<?php if ($this->flagonly): ?>
<?php echo $this->radioButtonTag('action', 'mark', $this->folder == Ingo::BLACKLIST_MARKER, array('id' => 'action_mark')) ?>
<?php echo $this->hordeLabel('action_mark', _("Mar_k message as deleted")) ?>
<br />
<li>
<?php echo $this->radioButtonTag('action', 'mark', $this->folder == Ingo::BLACKLIST_MARKER, array('id' => 'action_mark')) ?>
<?php echo $this->hordeLabel('action_mark', _("Mar_k message as deleted")) ?>
</li>
<li>
<?php endif; ?>
<?php echo $this->radioButtonTag('action', 'folder', $this->folder && ($this->folder != Ingo::BLACKLIST_MARKER), array('id' => 'action_folder')) ?>
<?php echo $this->hordeLabel('action_folder', _("_Move message to folder:")) ?>
<label for="actionvalue" class="hidden"><?php echo _("Select target folder") ?></label>
<?php echo $this->folderlist ?>
<?php echo $this->radioButtonTag('action', 'folder', $this->folder && ($this->folder != Ingo::BLACKLIST_MARKER), array('id' => 'action_folder')) ?>
<?php echo $this->hordeLabel('action_folder', _("_Move message to folder:")) ?>
<label for="actionvalue" class="hidden"><?php echo _("Select target folder") ?></label>
<?php echo $this->folderlist ?>
</li>
</ul>
</div>

<div>
<em><?php echo $this->hordeLabel('blacklist', _("_Enter each address on a new line:")) ?></em>
<div class="blacklistDiv">
<em><?php echo $this->hordeLabel('blacklist', _("_Blacklist addresses:")) ?></em>
<?php echo $this->hordeHelp('ingo', 'blacklist-addresses') ?>
</div>

<div>
<div class="blacklistDiv">
<textarea name="blacklist" id="blacklist" rows="15" cols="80"><?php echo $this->h($this->blacklist) ?></textarea>
</div>

<div class="control">
<div class="horde-form-buttons">
<input class="horde-default" type="submit" value="<?php echo _("Save") ?>" />
<input type="button" id="blacklist_return" value="<?php echo _("Return to Rules List") ?>" />
</div>
Expand Down
10 changes: 8 additions & 2 deletions ingo/themes/default/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,18 @@ table {

/* Blacklist page. */
.blacklistAction {
margin-left: 15px;
margin-bottom: 15px;
list-style: none;
margin: 5px 0 8px 15px;
}
.blacklistAction input {
vertical-align: middle;
}
.blacklistAction label {
padding-left: 3px;
}
.blacklistDiv {
padding: 5px;
}

/* Icons. */
.ingo-rules {
Expand Down

0 comments on commit 410baec

Please sign in to comment.