182 lines
5.5 KiB
C#
182 lines
5.5 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Areas.Config.Views.DeviceModel
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Helpers;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.WebPages;
|
|
using Disco;
|
|
using Disco.Models.Repository;
|
|
using Disco.Services;
|
|
using Disco.Services.Authorization;
|
|
using Disco.Services.Web;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/DeviceModel/Create.cshtml")]
|
|
public partial class Create : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.DeviceModel.CreateModel>
|
|
{
|
|
public Create()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
|
|
Authorization.RequireAll(Claims.Config.DeviceModel.CreateCustom, Claims.Config.DeviceModel.Configure);
|
|
|
|
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Models", MVC.Config.DeviceModel.Index(null), "Create Custom");
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
|
|
#line 7 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
using (Html.BeginForm())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 9 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
Write(Html.AntiForgeryToken());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 9 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 450px\"");
|
|
|
|
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r\n N" +
|
|
"ame / Description:\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 17 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
Write(Html.TextBoxFor(model => model.Description));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />");
|
|
|
|
|
|
#line 17 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
Write(Html.ValidationMessageFor(model => model.Description));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
|
">\r\n Manufacturer:\r\n </th>\r\n <td" +
|
|
">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 25 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
Write(Html.TextBoxFor(model => model.Manufacturer));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />");
|
|
|
|
|
|
#line 25 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
Write(Html.ValidationMessageFor(model => model.Manufacturer));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
|
">\r\n Model:\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 33 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
Write(Html.TextBoxFor(model => model.ManufacturerModel));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />");
|
|
|
|
|
|
#line 33 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
Write(Html.ValidationMessageFor(model => model.ManufacturerModel));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n <p");
|
|
|
|
WriteLiteral(" class=\"actions\"");
|
|
|
|
WriteLiteral(">\r\n <input");
|
|
|
|
WriteLiteral(" type=\"submit\"");
|
|
|
|
WriteLiteral(" class=\"button\"");
|
|
|
|
WriteLiteral(" value=\"Create Custom\"");
|
|
|
|
WriteLiteral(" />\r\n </p>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(">\r\n $(function () {\r\n $(\'#Description\').focus().select();\r\n " +
|
|
" });\r\n </script>\r\n");
|
|
|
|
|
|
#line 46 "..\..\Areas\Config\Views\DeviceModel\Create.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|