macawnl / bootstrapeditortemplates Goto Github PK
View Code? Open in Web Editor NEWASP.NET MVC EditorTemplates for Bootstrap 3
License: Other
ASP.NET MVC EditorTemplates for Bootstrap 3
License: Other
I don't know if this is an issue for you really.
When you're building an app that takes into consideration things like localisation, you're probably not relying on Visual Studio's scaffolding / code generation capabilities
but, I thought it was worth mentioning.
E.g, my razor already has control groups in it due to the fact they were generated for me .. and then the .EditorFor part of the control group is now essentially nesting a new control group into the HTML output
\
Might not be considered an issue, but...
I would suggest adding a BET.css file with the alterations and instructions on integrating them into site-specific css.files; I took a quick shot at comparing your file and mine, and the diffs were quite considerable given that they rearranged a lot of stuff wihtout really changing it.
Mine is 3.3.1
If you'd like, I'll take a look at identifying the changes and make a pull request for it.
my MVC 5 web project is in VB.NET (shock!!) but the Package Mgr installed your C# scripts and code files nevertheless.
I'm going to convert the code, but, I'm no NuGet package author. Let me know if you want my end results to incorporate in a new release.
The call is ambiguous between the following methods or properties: 'Demo_Bootstrap.Utility.EnumDropDown.EnumDropDownListFor<object,object>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Func<object,object>>, object)' and 'System.Web.Mvc.Html.SelectExtensions.EnumDropDownListFor<object,object>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Func<object,object>>, object)' c:\Users\NSA-PC\Documents\Visual Studio 2013\Projects\Demo Bootstrap\Demo Bootstrap\Views\Shared\EditorTemplates\Enum.cshtml 7 6 Demo Bootstrap
Solution is to remove EnumDropDownList.cs for asp.net mvc 5.
You should reference the existing bootstrap nuget package.
BootstrapEditorTemplatesConfig.vb had a squiggly on the Imports System.Web.Optimization which only becomes available if you run the nuget command:
Install-Package Microsoft.AspNet.Web.Optimization
which, to my surprise, I didn't have it already installed, so I installed it.. but, since your project seems to reference them, I thought it probably should have auto retrieved it
Nice initiative, but doesn't work with the form-horizontal option. Would be great if you could include that as an option somehow.
I am getting this error message after installing the package. Referenced assembly 'MarkdownDeep' does not have a strong name
The System.ComponentModel.DataAnnotations.Datatype
value for Multiline is DataType.MultilineText
. So unless I'm mistaken, the template should be renamed from Multiline.cshml
to MultilineText.cshtml
.
When a string field on model class is setted with an [EmailAddress] Data Annotation no Editor Template is loaded...same happens with annotation [DataType.EmailAddress].
Error upon restart of app => Config section 'system.web/globalization' already defined. Sections must only appear once per config file. See the help topic for exceptions
... if there was one already there. And any good reason for this:
<globalization culture="en-US" uiCulture="en-US" enableClientBasedCulture="false" requestEncoding="utf-8" responseEncoding="utf-8" />
instead of this:
<globalization uiCulture="auto" culture="auto" enableClientBasedCulture="true" requestEncoding="utf-8" responseEncoding="utf-8" />
Hi there, i just found your Editor Templates and I'm trying to use them
I needed to have multiple markdown controls on my page and i've noticed that the current editor template fail with the preview window (all markdowns textarea share the same preview window)
I've found a fix, here it is
@model object
@{
string guidID = Guid.NewGuid().ToString();
}
<link rel="stylesheet" type="text/css" href="/Scripts/mdd_styles.css" />
<div class="form-group@(Html.ValidationErrorFor(m => m, " has-error"))">
@Html.LabelFor(m => m, new { @class = "control-label" })
<div class="mdd_toolbar"></div>
@Html.TextAreaFor(
m => m,
8, 15,
ViewBag.ClearTextField == true ? new { @class = "form-control mdd_editor clear-text-field", data_mdd_preview = "#" + guidID } : new { @class = "form-control mdd_editor", data_mdd_preview = "#" + guidID })
@Html.ValidationMessageFor(m => m, null, new { @class = "help-block" })
<br />
<label>Preview</label>
<hr />
<div class="mdd_preview" id="@guidID"></div>
<hr />
</div>
I just create a random ID and assign it to the preview window, while using data-mdd-preview on the textarea
MM
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.