DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

Documentation shows 'FormGroup' #181

Closed sgentile closed 10 years ago

sgentile commented 10 years ago

Documentation shows @using (var f = Html.Bootstrap().Begin(new Form())) { @f.FormGroup().TextBoxFor(x => x.Email).Placeholder("Enter email") @f.FormGroup().PasswordFor(x => x.Password).Placeholder() @f.FormGroup().FileFor(x => x.SomeFile).HelpText("Example block-level help text here.") @f.FormGroup().CheckBoxFor(x => x.CheckMeOut) @Html.Bootstrap().SubmitButton() }

But it appears you use a 'ControlGroup' ?

sgentile commented 10 years ago

Note - intellisense gives ControlGroup - but it fails when I use it - but if I use FormGroup - intellisense fails on it - but it works in UI

DmitryEfimenko commented 10 years ago

It appears you are looking at documentation for Bootstrap 3, but using Bootstrap 2 version, the docs for which can be found here.

sgentile commented 10 years ago

I was using bootstrap 2 and switched to 3 - I restarted my machine, seems to have helped - appears to have cached the BS2 intellisense

Thanks

DmitryEfimenko commented 10 years ago

sounds great. Glad it works.

sgentile commented 10 years ago

Side Question: Do you support the https://twitterbootstrapmvc.com/Documentation/Plugins plugin ?

We are wanting to use the Œcomponent' style that has the calendar icon with it. http://www.eyecon.ro/bootstrap-datepicker/

From: "Dmitry A. Efimenko" notifications@github.com Reply-To: DmitryEfimenko/TwitterBootstrapMvc <reply+i-23806610-7be5f03fefd4b36d4a9eb1cd9399c8b47a7ac864-132404@reply.gith ub.com> Date: Thursday, December 5, 2013 at 1:46 PM To: DmitryEfimenko/TwitterBootstrapMvc TwitterBootstrapMvc@noreply.github.com Cc: Steve Gentile steven.gentile@gmail.com Subject: Re: [TwitterBootstrapMvc] Documentation shows 'FormGroup' (#181)

It appears you are looking at documentation for Bootstrap 3 https://www.twitterbootstrapmvc.com/Documentation , but using Bootstrap 2 version, the docs for which can be found here https://www.twitterbootstrapmvc.com/Documentation/V2 .

‹ Reply to this email directly or view it on GitHub https://github.com/DmitryEfimenko/TwitterBootstrapMvc/issues/181#issuecomme nt-29925182 .

DmitryEfimenko commented 10 years ago

Not sure I follow. Maybe partially due to the fact that message sent through email was not shown right on GitHub. What is your question, again?

sgentile commented 10 years ago

ok - the datetime plugin that comes from http://www.eyecon.ro/bootstrap-datepicker/ - they show a 'component' style that has the calendar icon I wanted to see if this is possible with the plugin ?

DmitryEfimenko commented 10 years ago

Yeah, just follow the steps described in the docs to install it and you should be good to go

sgentile commented 10 years ago

the docs do not show how to use with the calendar icon - it shows with no icon - just clicking in the text box ?

DmitryEfimenko commented 10 years ago

oh, sorry, I missed the icon part. I'll do a bit of testing this evening and make sure that BMVC has a way to use icons for DatePicker and I'll document it too.

sgentile commented 10 years ago

that would be fantastic - thanks!

DmitryEfimenko commented 10 years ago

So I've done a bit research. It appears this plugin is not fully compatible with Bootstrap 3. It would work on an input, but not on the icons (unless a bunch of updates/manual code is done to the plugin).

Eventually I'll make another BMVC plugin for a Bootstrap 3 compatible version of datepicker.