Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions system/handlers/renderers/labels/email_layout_config_item.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
component {
private array function _selectFields( event, rc, prc ) {
return [
"email_template.name as template_name"
, "email_blueprint.name as blueprint_name"
, "item"
];
}

private string function _renderLabel( event, rc, prc ) {
var template_name = arguments.template_name ?: "";
var blueprint_name = arguments.blueprint_name ?: "";
var item = arguments.item ?: "";

var label = [ item ];
if( Len( template_name ) ){
ArrayPrepend( label, "Template: #template_name#" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need i18n for Template: and Blueprint: please

} else if( Len( blueprint_name ) ){
ArrayPrepend( label, "Blueprint: #blueprint_name#" );
}

return ArrayToList( label, " - " );
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title=Email layout config items
title.singular=Email layout config item

field.layout.title=Layout
field.email_template.title=Email template
field.email_blueprint.title=Email blueprint
field.custom_layout.title=Custom layout
field.item.title=Item
field.value.title=Value
7 changes: 4 additions & 3 deletions system/preside-objects/email/email_layout_config_item.cfc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/**
* Represents a saved configuration item for an email layout (see [[emailtemplatingv1]])
*
* @nolabel true
* @versioned false
* @feature emailCenter
* @nolabel true
* @versioned false
* @feature emailCenter
* @labelRenderer email_layout_config_item
*
*/
component extends="preside.system.base.SystemPresideObject" displayname="Email layout configuration item" {
Expand Down
Loading