PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Samples/Shop/Bifrost.Samples.Shop.Mvc/Features/Campaigns/New.cshtml

#
Razor | 82 lines | 79 code | 3 blank | 0 comment | 0 complexity | eb2eb1d5ffbb5eaee0535833d48c927e MD5 | raw file
 1@using Bifrost.Web.Mvc.Commands
 2@using Bifrost.Samples.Shop.Mvc.Features.Campaigns
 3@using Bifrost.Samples.Shop.Domain.Campaigns
 4@{
 5	ViewBag.Title = "Create new Campaign";
 6}
 7@using (var form = (Html.BeginCommandForm<CreateNewCampaign, CampaignsController>(c => c.Create(null), FormMethod.Post)))
 8{
 9	@form.Html.HiddenFor(c => c.Id);
10	
11	<table>
12		<tr>
13			<td>
14				Name
15			</td>
16			<td>
17				@form.Html.TextBoxFor(c => c.Name);
18			</td>
19		</tr>
20		<tr>
21			<td>
22				Title
23			</td>
24			<td>
25				@form.Html.TextBoxFor(c => c.Title);
26			</td>
27		</tr>
28		<tr>
29			<td>
30				Status
31			</td>
32			<td>
33				
34			</td>
35		</tr>
36		<tr>
37			<td>
38				Valid from
39			</td>
40			<td>
41			</td>
42		</tr>
43		<tr>
44			<td>
45				Valid to
46			</td>
47			<td>
48			</td>
49		</tr>
50		<tr>
51			<td>
52				Zone
53			</td>
54			<td>
55			</td>
56		</tr>
57		<tr>
58			<td>
59				Sites
60			</td>
61			<td>
62			</td>
63		</tr>
64		<tr>
65			<td>
66				Tag
67			</td>
68				@form.Html.TextBoxFor(c => c.Tag);
69			<td>
70			</td>
71		</tr>
72		<tr>
73			<td>
74				Segment
75			</td>
76			<td>
77			</td>
78		</tr>
79	</table>
80	
81	<input type="submit" value="Create" />
82}