BUGFIX Ensuring that new pages can't be created when in translation mode by disabling the "create..." tree action

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70322 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-01-19 00:09:55 +00:00
parent 5889def36d
commit 2591492023
2 changed files with 5 additions and 1 deletions

View File

@ -33,6 +33,10 @@ body {
float: left; float: left;
} }
#TreeActions button.disabled {
color: #aaa;
}
.ajaxActions input, .ajaxActions input,
.actions input, .actions input,
button.action, button.action,

View File

@ -9,7 +9,7 @@
<div id="sitetree_holder"> <div id="sitetree_holder">
<ul id="TreeActions"> <ul id="TreeActions">
<li class="action" id="addpage"><button><% _t('CREATE','Create',PR_HIGH) %></button></li> <li class="action" id="addpage"><button<% if EditingLang %> disabled="disabled" class="disabled"<% end_if %>><% _t('CREATE','Create',PR_HIGH) %></button></li>
<li class="action" id="search"><button><% _t('SEARCH','Search',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="batchactions"><button><% _t('BATCHACTIONS','Batch Actions',PR_HIGH) %></button></li>
<!-- <li class="action" id="duplicate"><a href="#">Duplicate</a></li> <!-- <li class="action" id="duplicate"><a href="#">Duplicate</a></li>