Add LeafInput
Add EntityFramework
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
@inherits UmbracoTemplatePage
|
||||
@{
|
||||
Layout = "Master.cshtml";
|
||||
}
|
||||
@CurrentPage.GetGridHtml("content", "fanoe")
|
||||
|
||||
@section Form{
|
||||
@Html.Action("Index", "LeafInput")
|
||||
}
|
||||
@@ -1,51 +1,17 @@
|
||||
@inherits UmbracoViewPage<WebCms.Models.LeafInputCreate>
|
||||
@model WebCms.Models.LeafInputCreate
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-7 well">
|
||||
@Html.Partial("_ValidationSummary")
|
||||
<!-- The file upload form used as target for the file upload widget -->
|
||||
<form id="fileupload" action="/Backload/FileHandler" method="POST" enctype="multipart/form-data">
|
||||
<label class="control-label">Files</label>
|
||||
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
||||
<div class="row fileupload-buttonbar">
|
||||
<div class="col-lg-5">
|
||||
<!-- The fileinput-button span is used to style the file input field as button -->
|
||||
<span class="btn btn-default fileinput-button">
|
||||
<i class="glyphicon glyphicon-plus"></i>
|
||||
<span>Add files...</span>
|
||||
<input type="file" name="files[]" multiple>
|
||||
</span>
|
||||
<button type="button" class="btn btn-default delete">
|
||||
<i class="glyphicon glyphicon-trash"></i>
|
||||
<span>Delete</span>
|
||||
</button>
|
||||
<input type="checkbox" class="toggle">
|
||||
<!-- The global file processing state -->
|
||||
<span class="fileupload-process"></span>
|
||||
</div>
|
||||
<!-- The global progress state -->
|
||||
<div class="col-lg-7 fileupload-progress fade">
|
||||
<!-- The global progress bar -->
|
||||
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
|
||||
<div class="progress-bar progress-bar-success" style="width: 0%;"></div>
|
||||
</div>
|
||||
<!-- The extended global progress state -->
|
||||
@*<div class="progress-extended"> </div>*@
|
||||
</div>
|
||||
</div>
|
||||
@Html.Partial("_ValidationField", "Files")
|
||||
<!-- The table listing the files available for upload/download -->
|
||||
<table role="presentation" class="table table-striped panel panel-default"><tbody class="files"></tbody></table>
|
||||
</form>
|
||||
@using (Html.BeginForm("Index", "LeafInput", FormMethod.Post))
|
||||
@using (Html.BeginUmbracoForm("Submit", "LeafInput", FormMethod.Post))
|
||||
{
|
||||
//@Html.EditorFor(m => m.PhotosynthesisType)
|
||||
@Html.EditorFor(m => m.Identifier)
|
||||
@Html.EditorFor(m => m.SiteId)
|
||||
@Html.EditorFor(m => m.PhotosynthesisType)
|
||||
@*@Html.EditorFor(m => m.Identifier)
|
||||
@Html.EditorFor(m => m.SiteId)*@
|
||||
@Html.EditorFor(m => m.Name)
|
||||
@Html.EditorFor(m => m.Email)
|
||||
@Html.EditorFor(m => m.EmailConfirm)
|
||||
@*@Html.EditorFor(m => m.Email)
|
||||
@Html.EditorFor(m => m.EmailConfirm)*@
|
||||
<input type="submit" id="submit-form" class="hidden" />}
|
||||
<label for="submit-form" class="btn btn-primary pull-right">Submit...</label>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
|
||||
@{
|
||||
Html.RenderAction("Create", "LeafInput");
|
||||
}
|
||||
Reference in New Issue
Block a user