#19744: Displaying name of the workflow in the title when editing one

Work Item: 19744

--HG--
branch : 1.x
This commit is contained in:
Zoltán Lehóczky
2013-06-08 13:22:05 +02:00
parent d8c720c2d2
commit 2f83fbed31
3 changed files with 4 additions and 2 deletions

View File

@@ -208,7 +208,8 @@ namespace Orchard.Workflows.Controllers {
}
var workflowDefinitionModel = new WorkflowDefinitionViewModel {
Id = workflowDefinitionRecord.Id
Id = workflowDefinitionRecord.Id,
Name = workflowDefinitionRecord.Name
};
dynamic workflow = new JObject();

View File

@@ -3,6 +3,7 @@
namespace Orchard.Workflows.ViewModels {
public class WorkflowDefinitionViewModel {
public int Id { get; set; }
public string Name { get; set; }
public string JsonData { get; set; }
}

View File

@@ -3,7 +3,7 @@
@using Orchard.Workflows.ViewModels;
@{
Layout.Title = @T("Edit Workflow");
Layout.Title = @T("Edit Workflow {0}", Model.WorkflowDefinition.Name);
Style.Require("WorkflowsAdmin");
Style.Require("WorkflowsActivities");
Script.Require("jQueryUI");