diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index b321dfa3..78a851f8 100644 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -333,11 +333,12 @@ class ModelAdmin_CollectionController extends Controller { if (!singleton($modelName)->canCreate(Member::currentUser())) return false; } - $buttonLabel = sprintf(_t('ModelAdmin.CREATEBUTTON', "Create a %s", PR_MEDIUM, "Create a new instance from a model class"), singleton($modelName)->i18n_singular_name()); + $buttonLabel = sprintf(_t('ModelAdmin.CREATEBUTTON', "Create '%s'", PR_MEDIUM, "Create a new instance from a model class"), singleton($modelName)->i18n_singular_name()); $actions = new FieldSet( - new FormAction('add', $buttonLabel) + $createButton = new FormAction('add', $buttonLabel) ); + $createButton->dontEscape = true; return new Form($this, "CreateForm", new FieldSet(), $actions); } diff --git a/templates/Includes/ModelAdmin_left.ss b/templates/Includes/ModelAdmin_left.ss index 6b151fae..e40032f6 100755 --- a/templates/Includes/ModelAdmin_left.ss +++ b/templates/Includes/ModelAdmin_left.ss @@ -22,13 +22,13 @@ <% control ModelForms %>
-

Create

+

<% _t('ADDLISTING','Add') %>

$CreateForm -

Search

+

<% _t('SEARCHLISTINGS','Search') %>

$SearchForm -

Import

+

<% _t('IMPORT_TAB_HEADER', 'Import') %>

$ImportForm
<% end_control %>