@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyFileVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyVersion("1.2.0606.1156")]
|
||||
[assembly: AssemblyFileVersion("1.2.0606.1156")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyFileVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyVersion("1.2.0606.1156")]
|
||||
[assembly: AssemblyFileVersion("1.2.0606.1156")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyFileVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyVersion("1.2.0606.1156")]
|
||||
[assembly: AssemblyFileVersion("1.2.0606.1156")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyFileVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyVersion("1.2.0606.1156")]
|
||||
[assembly: AssemblyFileVersion("1.2.0606.1156")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyFileVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyVersion("1.2.0606.1156")]
|
||||
[assembly: AssemblyFileVersion("1.2.0606.1156")]
|
||||
@@ -10,6 +10,7 @@ using Disco.Services.Plugins.Features.CertificateProvider;
|
||||
using Disco.Services.Plugins;
|
||||
using Disco.Services.Plugins.Features.UIExtension;
|
||||
using Disco.Models.UI.Config.DeviceProfile;
|
||||
using Disco.Models.Repository;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Controllers
|
||||
{
|
||||
@@ -65,7 +66,14 @@ namespace Disco.Web.Areas.Config.Controllers
|
||||
|
||||
public virtual ActionResult Create()
|
||||
{
|
||||
var m = new Models.DeviceProfile.CreateModel();
|
||||
var m = new Models.DeviceProfile.CreateModel()
|
||||
{
|
||||
DeviceProfile = new DeviceProfile()
|
||||
{
|
||||
ComputerNameTemplate = "DeviceProfile.ShortName + '-' + SerialNumber",
|
||||
ProvisionADAccount = true
|
||||
}
|
||||
};
|
||||
|
||||
// UI Extensions
|
||||
UIExtensions.ExecuteExtensions<ConfigDeviceProfileCreateModel>(this.ControllerContext, m);
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="ComputerNameTemplate" value="DeviceProfile.ShortName + '-' + SerialNumber" />
|
||||
<input type="hidden" name="ProvisionADAccount" value="True" />
|
||||
@Html.HiddenFor(model => model.DeviceProfile.ComputerNameTemplate)
|
||||
@Html.HiddenFor(model => model.DeviceProfile.ProvisionADAccount)
|
||||
<p class="actions">
|
||||
<input type="submit" class="button" value="Create" />
|
||||
</p>
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Disco.Web.Areas.Config.Views.DeviceProfile
|
||||
using Disco.Web;
|
||||
using Disco.Web.Extensions;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.4.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/DeviceProfile/Create.cshtml")]
|
||||
public partial class Create : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.DeviceProfile.CreateModel>
|
||||
{
|
||||
@@ -124,23 +124,29 @@ WriteLiteral("<br />");
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n <input");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n");
|
||||
|
||||
WriteLiteral(" type=\"hidden\"");
|
||||
WriteLiteral(" ");
|
||||
|
||||
WriteLiteral(" name=\"ComputerNameTemplate\"");
|
||||
|
||||
#line 32 "..\..\Areas\Config\Views\DeviceProfile\Create.cshtml"
|
||||
Write(Html.HiddenFor(model => model.DeviceProfile.ComputerNameTemplate));
|
||||
|
||||
WriteLiteral(" value=\"DeviceProfile.ShortName + \'-\' + SerialNumber\"");
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
WriteLiteral(" />\r\n <input");
|
||||
WriteLiteral(" ");
|
||||
|
||||
WriteLiteral(" type=\"hidden\"");
|
||||
|
||||
#line 33 "..\..\Areas\Config\Views\DeviceProfile\Create.cshtml"
|
||||
Write(Html.HiddenFor(model => model.DeviceProfile.ProvisionADAccount));
|
||||
|
||||
WriteLiteral(" name=\"ProvisionADAccount\"");
|
||||
|
||||
WriteLiteral(" value=\"True\"");
|
||||
|
||||
WriteLiteral(" />\r\n <p");
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <p");
|
||||
|
||||
WriteLiteral(" class=\"actions\"");
|
||||
|
||||
|
||||
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyFileVersion("1.2.0603.2017")]
|
||||
[assembly: AssemblyVersion("1.2.0606.1156")]
|
||||
[assembly: AssemblyFileVersion("1.2.0606.1156")]
|
||||
Reference in New Issue
Block a user