Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>@ViewBag.Title - My ASP.NET Application</title>
- @Styles.Render("~/Content/css")
- <script src="@Url.Content("~/js/jquery-1.10.2.min.js")" type="text/javascript"></script>
- <script src="@Url.Content("~/js/jquery-ui.js")" type="text/javascript"></script>
- <script src="@Url.Content("~/js/ckeditor.js")" type="text/javascript"></script>
- <script src="@Url.Content("~/ckeditor/adapters/jquery.js")" type="text/javascript"></script>
- @Scripts.Render("~/bundles/modernizr")
- <script type="text/javascript">
- $(function () {
- $('#noidung').ckeditor
- });
- </script>
- </head>
- <body>
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
- </div>
- <div class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li>@Html.ActionLink("Home", "Index", "Home")</li>
- <li>@Html.ActionLink("About", "About", "Home")</li>
- <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
- </ul>
- @Html.Partial("_LoginPartial")
- </div>
- </div>
- </div>
- <div class="container body-content">
- @RenderBody()
- <hr />
- <footer>
- <p>© @DateTime.Now.Year - My ASP.NET Application</p>
- </footer>
- </div>
- @Scripts.Render("~/bundles/jquery")
- @Scripts.Render("~/bundles/bootstrap")
- @RenderSection("scripts", required: false)
- </body>
- </html>
- @model OffLogWeb.BanGhi
- @{
- ViewBag.Title = "Create";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <h2>Create</h2>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="form-horizontal">
- <h4>BanGhi</h4>
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- <div class="form-group">
- @Html.LabelFor(model => model.Ngay, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Ngay, new { htmlAttributes = new { @class = "form-control", @id = "ngay" } })
- @Html.ValidationMessageFor(model => model.Ngay, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Gio, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Gio, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Gio, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Phut, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Phut, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Phut, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.TieuDe, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.TieuDe, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.TieuDe, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-10">
- @Html.LabelFor(model => model.NoiDung, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.TextArea("editor1", Model.NoiDung,new {id="editor1",@name="editor1" })
- </div>
- <script>
- //Replace the <textarea id="editor1"> with an CKEditor instance.
- CKEDITOR.replace('editor1', {
- on: {
- focus: onFocus,
- blur: onBlur,
- // Check for availability of corresponding plugins.
- pluginsLoaded: function (evt) {
- var doc = CKEDITOR.document, ed = evt.editor;
- if (!ed.getCommand('bold'))
- doc.getById('exec-bold').hide();
- if (!ed.getCommand('link'))
- doc.getById('exec-link').hide();
- }
- }
- });
- </script>
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Tot, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- <div class="checkbox">
- @Html.EditorFor(model => model.Tot)
- @Html.ValidationMessageFor(model => model.Tot, "", new { @class = "text-danger" })
- </div>
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Diem, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Diem, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Diem, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Create" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
- <div>
- @Html.ActionLink("Back to List", "Index")
- </div>
- @section Scripts {
- @Scripts.Render("~/bundles/jqueryval")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement