Updated layout for filter by tag form

This commit is contained in:
Sarven Capadisli 2009-09-04 15:59:27 +00:00
parent 94f9ce26e7
commit b237dc21ba
2 changed files with 17 additions and 12 deletions

View File

@ -132,13 +132,16 @@ class GalleryAction extends OwnerDesignAction
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementStart('li', array('id'=>'filter_tags_item')); $this->elementStart('li', array('id'=>'filter_tags_item'));
$this->elementStart('form', array('name' => 'bytag', $this->elementStart('form', array('name' => 'bytag',
'id' => 'bytag', 'id' => 'form_filter_bytag',
'action' => common_path('?action=' . $this->trimmed('action')), 'action' => common_path('?action=' . $this->trimmed('action')),
'method' => 'post')); 'method' => 'post'));
$this->elementStart('fieldset');
$this->element('legend', null, _('Select tag to filter'));
$this->dropdown('tag', _('Tag'), $content, $this->dropdown('tag', _('Tag'), $content,
_('Choose a tag to narrow list'), false, $tag); _('Choose a tag to narrow list'), false, $tag);
$this->hidden('nickname', $this->user->nickname); $this->hidden('nickname', $this->user->nickname);
$this->submit('submit', _('Go')); $this->submit('submit', _('Go'));
$this->elementEnd('fieldset');
$this->elementEnd('form'); $this->elementEnd('form');
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementEnd('ul'); $this->elementEnd('ul');

View File

@ -156,7 +156,8 @@ font-weight:bold;
#form_notice_delete legend, #form_notice_delete legend,
#form_password_recover legend, #form_password_recover legend,
#form_password_change legend, #form_password_change legend,
.form_entity_block legend { .form_entity_block legend,
#form_filter_bytag legend {
display:none; display:none;
} }
@ -1049,36 +1050,37 @@ display:none;
#filter_tags ul { #filter_tags ul {
list-style-type:none; list-style-type:none;
} }
#filter_tags ul li { #filter_tags li {
float:left; float:left;
margin-left:7px; margin-left:7px;
padding-left:7px; padding-left:7px;
border-left-width:1px; border-left-width:1px;
border-left-style:solid; border-left-style:solid;
} }
#filter_tags ul li.child_1 { #filter_tags #filter_tags_all {
margin-left:0; margin-left:0;
border-left:0; border-left:0;
padding-left:0; padding-left:0;
} }
#filter_tags ul li#filter_tags_all a { #filter_tags_all a {
font-weight:bold; font-weight:bold;
margin-top:7px; margin-top:7px;
float:left; float:left;
} }
#filter_tags ul li#filter_tags_item label { #filter_tags_item label {
margin-right:7px; margin-right:7px;
} }
#filter_tags ul li#filter_tags_item label, #filter_tags_item label,
#filter_tags ul li#filter_tags_item select { #filter_tags_item select {
display:inline;
}
#filter_tags ul li#filter_tags_item p {
float:left; float:left;
}
#filter_tags_item p {
float:left;
clear:both;
margin-left:38px; margin-left:38px;
} }
#filter_tags ul li#filter_tags_item input { #filter_tags_item .submit {
position:relative; position:relative;
top:3px; top:3px;
left:3px; left:3px;