0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Fixed duplicate and wrong IDs and label fors in forms.

This commit is contained in:
Mikael Brevik 2012-02-02 14:09:27 +01:00
parent 98d1659ef8
commit 8c0b47a6a8
2 changed files with 12 additions and 27 deletions

View File

@ -1014,9 +1014,9 @@ For example, <code>section</code> should be wrapped as inline.
</div>
</div>
<div class="control-group warning">
<label class="control-label" for="inputError">Input with warning</label>
<label class="control-label" for="inputWarning">Input with warning</label>
<div class="controls">
<input type="text" id="inputError">
<input type="text" id="inputWarning">
<span class="help-inline">Something may have gone wrong</span>
</div>
</div>
@ -1028,9 +1028,9 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
</div>
</div>
<div class="control-group success">
<label class="control-label" for="inputError">Input with success</label>
<label class="control-label" for="inputSuccess">Input with success</label>
<div class="controls">
<input type="text" id="inputError">
<input type="text" id="inputSuccess">
<span class="help-inline">Woohoo!</span>
</div>
</div>
@ -1530,11 +1530,11 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<div class="span4">
<form>
<div class="control-group">
<label class="control-label" for="prependedInput">Email address</label>
<label class="control-label" for="inputIcon">Email address</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-envelope"></i></span>
<input class="span2" id="iconInput" type="text">
<input class="span2" id="inputIcon" type="text">
</div>
</div>
</div>
@ -1577,21 +1577,6 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
<!-- Analytics
================================================== -->
<script>
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
</body>
</html>

View File

@ -938,9 +938,9 @@
</div>
</div>
<div class="control-group warning">
<label class="control-label" for="inputError">{{_i}}Input with warning{{/i}}</label>
<label class="control-label" for="inputWarning">{{_i}}Input with warning{{/i}}</label>
<div class="controls">
<input type="text" id="inputError">
<input type="text" id="inputWarning">
<span class="help-inline">{{_i}}Something may have gone wrong{{/i}}</span>
</div>
</div>
@ -952,9 +952,9 @@
</div>
</div>
<div class="control-group success">
<label class="control-label" for="inputError">{{_i}}Input with success{{/i}}</label>
<label class="control-label" for="inputSuccess">{{_i}}Input with success{{/i}}</label>
<div class="controls">
<input type="text" id="inputError">
<input type="text" id="inputSuccess">
<span class="help-inline">{{_i}}Woohoo!{{/i}}</span>
</div>
</div>
@ -1454,11 +1454,11 @@
<div class="span4">
<form>
<div class="control-group">
<label class="control-label" for="prependedInput">{{_i}}Email address{{/i}}</label>
<label class="control-label" for="inputIcon">{{_i}}Email address{{/i}}</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-envelope"></i></span>
<input class="span2" id="iconInput" type="text">
<input class="span2" id="inputIcon" type="text">
</div>
</div>
</div>