Hooking up create blog to the new templating model (currently broken).

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043560
This commit is contained in:
ErikPorter
2009-12-09 08:23:06 +00:00
parent 2639e38bae
commit 36c63bc4db
11 changed files with 54 additions and 39 deletions

View File

@@ -1,16 +1,20 @@
using System.ComponentModel.DataAnnotations;
using Orchard.Blogs.Models;
using Orchard.Models.ViewModels;
using Orchard.Mvc.ViewModels;
namespace Orchard.Blogs.ViewModels {
public class CreateBlogViewModel : AdminViewModel {
[Required]
public string Name { get; set; }
public ItemEditorViewModel<Blog> Blog { get; set; }
//TODO: (erikpo) Need a data type for slug
[Required]
public string Slug { get; set; }
//[Required]
//public string Name { get; set; }
public string Description { get; set; }
////TODO: (erikpo) Need a data type for slug
//[Required]
//public string Slug { get; set; }
//public string Description { get; set; }
//[Required]
//public bool Enabled { get; set; }