BUGFIX: CMS UI site content > search > add criteria select element now returns back to prompt & tweaked layout

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70994 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
James Kirkus-Lamont 2009-01-30 01:20:07 +00:00 committed by Sam Minnee
parent d04e908358
commit d8687d4063
4 changed files with 34 additions and 25 deletions

View File

@ -370,7 +370,7 @@ ul.tree li.untranslated a:visited {
}
#left form.actionparams input.SearchCriteria {
width: 41%;
width: 43%;
float: left;
}
#left form.actionparams #InputSiteTreeFilterDate .calendar {

View File

@ -291,6 +291,8 @@ body.stillLoading select {
}
#bottom #switchView a {
background: none;
margin-left: 8px;
border-left: 1px solid;
}
#bottom .bottomTabs a {
@ -340,10 +342,19 @@ body.stillLoading select {
#SearchBox #SiteTreeSearchTerm {
padding: 1px 0 2px 0;
}
.SearchCriteriaContainer {
float: left;
width: 100%;
padding-left: 5px;
margin-bottom: 4px;
}
#addCriteria {
float: left;
width: 100%;
}
#addCriteria label {
display: none;
}
#sitetree_ul, ul#sitetree {
padding: 3px 0 0 3px;
clear: left;

View File

@ -125,8 +125,10 @@ SiteTreeFilterAddCriteria = Class.create();
SiteTreeFilterAddCriteria.applyTo('#SiteTreeFilterAddCriteria');
SiteTreeFilterAddCriteria.prototype = {
onchange : function() {
Element.show('Text' + this.value);
Element.show('Input' + this.value);
Element.show('Container' + this.value);
// Element.show('Text' + this.value);
// Element.show('Input' + this.value);
this.selectedIndex = 0; //reset selected criteria to prompt
}
}

View File

@ -13,49 +13,42 @@
<li class="action" id="addpage"><button><% _t('CREATE','Create',PR_HIGH) %></button></li>
<li class="action" id="search"><button><% _t('SEARCH','Search',PR_HIGH) %></button></li>
<li class="action" id="batchactions"><button><% _t('BATCHACTIONS','Batch Actions',PR_HIGH) %></button></li>
<!-- <li class="action" id="duplicate"><a href="#">Duplicate</a></li>
Sam: this should be put into the Create area, I think, so we don't stuff up the layout -->
</ul>
<% control AddPageOptionsForm %>
<form class="actionparams" id="$FormName" style="display: none" action="$FormAction">
<% control Fields %>
$FieldHolder
$FieldHolder
<% end_control %>
<!--
<div>
<select name="Type">
<% control PageTypes %>
<option value="$ClassName">$AddAction</option>
<% end_control %>
</select>
<input type="hidden" name="ParentID" />
</div>
-->
<div>
<input class="action" type="submit" value="<% _t('GO','Go') %>" />
<input class="action" type="submit" value="<% _t('GO','Go') %>" />
</div>
</form>
<% end_control %>
<form class="actionparams" style="display: none" id="search_options" action="admin/filterSiteTree">
<div>
<input type="hidden" id="SiteTreeIsFiltered" value="0" />
<div id="SearchBox">
<input type="text" id="SiteTreeSearchTerm" name="SiteTreeSearchTerm" />
<input type="submit" id="SiteTreeSearchButton" class="action" value="<% _t('SEARCH') %>" title="<% _t('SEARCHTITLE','Search through URL, Title, Menu Title, &amp; Content') %>" />
</div>
<div style="display:none" id="TextSiteTreeFilterDate" class="SearchCriteria"><% _t('EDITEDSINCE','Edited Since') %>:</div>
<div style="display:none" id="InputSiteTreeFilterDate">$SiteTreeFilterDateField</div>
</div>
<div id="ContainerSiteTreeFilterDate" class="SearchCriteriaContainer" style="display:none" >
<div id="TextSiteTreeFilterDate" class="SearchCriteria"><% _t('EDITEDSINCE','Edited Since') %>:</div>
<div id="InputSiteTreeFilterDate">$SiteTreeFilterDateField</div>
</div>
<% control SiteTreeFilterOptions %>
<div style="display:none" id="Text$Column" class="SearchCriteria">$Title:</div>
<input style="display:none" id="Input$Column" name="$Column" class="SearchCriteria" />
<div id="Container$Column" class="SearchCriteriaContainer" style="display:none">
<div id="Text$Column" class="SearchCriteria">$Title:</div>
<input id="Input$Column" name="$Column" class="SearchCriteria"/>
</div>
<% end_control %>
<div id="addCriteria">
<select id="SiteTreeFilterAddCriteria">
<option><% _t('ADDSEARCHCRITERIA','Add Criteria...') %></option>
<option value=""><% _t('ADDSEARCHCRITERIA','Add Criteria...') %></option>
<option value="SiteTreeFilterDate"><% _t('EDITEDSINCE','Edited Since') %></option>
<% control SiteTreeFilterOptions %>
<option value="$Column">$Title</option>
@ -63,7 +56,10 @@
</select>
</div>
</div>
</form>
<div id="batchactionsforms" style="display: none">
<form class="actionparams" style="border:0" id="deletepage_options" action="admin/deleteitems">
<p><% _t('SELECTPAGESACTIONS','Select the pages that you want to change &amp; then click an action:') %></p>