mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +08:00
Renamed Messaging class
--HG-- branch : dev
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Orchard.Core.Messaging.Drivers {
|
||||
|
||||
protected override DriverResult Editor(MessageSettingsPart part) {
|
||||
|
||||
var model = new ContentSubscriptionPartViewModel {
|
||||
var model = new MessageSettingsPartViewModel {
|
||||
ChannelServices = _messageQueueManager.GetAvailableChannelServices(),
|
||||
MessageSettings = part
|
||||
};
|
||||
@@ -35,7 +35,7 @@ namespace Orchard.Core.Messaging.Drivers {
|
||||
}
|
||||
|
||||
protected override DriverResult Editor(MessageSettingsPart part, IUpdateModel updater) {
|
||||
var model = new ContentSubscriptionPartViewModel {
|
||||
var model = new MessageSettingsPartViewModel {
|
||||
MessageSettings = part
|
||||
};
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Orchard.Core.Messaging.ViewModels {
|
||||
public class ContentSubscriptionPartViewModel {
|
||||
public class MessageSettingsPartViewModel {
|
||||
public MessageSettingsPart MessageSettings { get; set; }
|
||||
public IEnumerable<string> ChannelServices { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@model ContentSubscriptionPartViewModel
|
||||
@model MessageSettingsPartViewModel
|
||||
@using Orchard.Core.Messaging.Models
|
||||
@using Orchard.Core.Messaging.ViewModels
|
||||
<fieldset>
|
||||
@@ -8,10 +8,11 @@
|
||||
@if ( Model.ChannelServices.Any() ) {
|
||||
<select id="@Html.FieldIdFor(m => m.MessageSettings.DefaultChannelService)" name="@Html.FieldNameFor(m => m.MessageSettings.DefaultChannelService)">
|
||||
@foreach ( var service in Model.ChannelServices ) {
|
||||
<option @{ if(Model.MessageSettings.DefaultChannelService == service) { <text>selected="selected"</text> } } value="@service">@service</option>
|
||||
<option @if(Model.MessageSettings.DefaultChannelService == service) { <text>selected="selected"</text> } value="@service">@service</option>
|
||||
}
|
||||
}
|
||||
else {
|
||||
</select>
|
||||
}
|
||||
else {
|
||||
<span class="hint">@T("You must enable a messaging channel (e.g., Orchard.Email) before being able to send messages.")</span>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user