修改长度

pull/6/head
ibuler 2015-01-05 23:46:13 +08:00
parent f9a5907762
commit ee3336de9e
1 changed files with 204 additions and 17 deletions

View File

@ -4,7 +4,7 @@
{% include 'nav_cat_bar.html' %}
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-sm-12">
<div class="col-lg-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>All form elements <small>With custom checbox and radion elements.</small></h5>
@ -26,36 +26,223 @@
</a>
</div>
</div>
<div class="ibox-content">
<form method="post" class="horizontal">
<div class="form-group">
<label for="username" class="col-sm-2 control-label">用户名<span class="red-fonts">*</span></label>
<div class="col-sm-8"><input id="username" name="username" type="text" class="form-control"></div>
<form method="get" class="form-horizontal">
<div class="form-group"><label class="col-sm-2 control-label">Normal</label>
<div class="col-sm-10"><input type="text" class="form-control"></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Help text</label>
<div class="col-sm-10"><input type="text" class="form-control"> <span class="help-block m-b-none">A block of help text that breaks onto a new line and may extend beyond one line.</span>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Password</label>
<div class="form-group">
<label for="password" class="col-sm-2 control-label">密码<span class="red-fonts">*</span></label>
<div class="col-sm-8"><input id="password" name="password" type="password" class="form-control">
<span class="help-block m-b-none">
Password for login web system.
</span>
<div class="col-sm-10"><input type="password" class="form-control" name="password"></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Placeholder</label>
<div class="col-sm-10"><input type="text" placeholder="placeholder" class="form-control"></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-lg-2 control-label">Disabled</label>
<div class="col-lg-10"><input type="text" disabled="" placeholder="Disabled input here..." class="form-control"></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-lg-2 control-label">Static control</label>
<div class="col-lg-10"><p class="form-control-static">email@example.com</p></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Checkboxes and radios <br/>
<small class="text-navy">Normal Bootstrap elements</small></label>
<div class="col-sm-10">
<div class="checkbox"><label> <input type="checkbox" value=""> Option one is this and that&mdash;be sure to include why it's great </label></div>
<div class="radio"><label> <input type="radio" checked="" value="option1" id="optionsRadios1" name="optionsRadios"> Option one is this and that&mdash;be sure to
include why it's great </label></div>
<div class="radio"><label> <input type="radio" value="option2" id="optionsRadios2" name="optionsRadios"> Option two can be something else and selecting it will
deselect option one </label></div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Inline checkboxes</label>
<div class="col-sm-10"><label class="checkbox-inline"> <input type="checkbox" value="option1" id="inlineCheckbox1"> a </label> <label class="checkbox-inline">
<input type="checkbox" value="option2" id="inlineCheckbox2"> b </label> <label class="checkbox-inline">
<input type="checkbox" value="option3" id="inlineCheckbox3"> c </label></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Checkboxes &amp; radios <br/><small class="text-navy">Custom elements</small></label>
<div class="col-sm-10">
<div class="checkbox i-checks"><label> <input type="checkbox" value=""> <i></i> Option one </label></div>
<div class="checkbox i-checks"><label> <input type="checkbox" value="" checked=""> <i></i> Option two checked </label></div>
<div class="checkbox i-checks"><label> <input type="checkbox" value="" disabled="" checked=""> <i></i> Option three checked and disabled </label></div>
<div class="checkbox i-checks"><label> <input type="checkbox" value="" disabled=""> <i></i> Option four disabled </label></div>
<div class="radio i-checks"><label> <input type="radio" value="option1" name="a"> <i></i> Option one </label></div>
<div class="radio i-checks"><label> <input type="radio" checked="" value="option2" name="a"> <i></i> Option two checked </label></div>
<div class="radio i-checks"><label> <input type="radio" disabled="" checked="" value="option2"> <i></i> Option three checked and disabled </label></div>
<div class="radio i-checks"><label> <input type="radio" disabled="" name="a"> <i></i> Option four disabled </label></div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Inline checkboxes</label>
<div class="col-sm-10"><label class="checkbox-inline i-checks"> <input type="checkbox" value="option1">a </label>
<label class="checkbox-inline i-checks"> <input type="checkbox" value="option2"> b </label>
<label class="checkbox-inline i-checks"> <input type="checkbox" value="option3"> c </label></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Select</label>
<div class="col-sm-10"><select class="form-control m-b" name="account">
<option>option 1</option>
<option>option 2</option>
<option>option 3</option>
<option>option 4</option>
</select>
<div class="col-lg-4 m-l-n"><select class="form-control" multiple="">
<option>option 1</option>
<option>option 2</option>
<option>option 3</option>
<option>option 4</option>
</select></div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group has-success"><label class="col-sm-2 control-label">Input with success</label>
<div class="col-sm-10"><input type="text" class="form-control"></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group has-warning"><label class="col-sm-2 control-label">Input with warning</label>
<div class="col-sm-10"><input type="text" class="form-control"></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group has-error"><label class="col-sm-2 control-label">Input with error</label>
<div class="col-sm-10"><input type="text" class="form-control"></div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Control sizing</label>
<div class="col-sm-10"><input type="text" placeholder=".input-lg" class="form-control input-lg m-b">
<input type="text" placeholder="Default input" class="form-control m-b"> <input type="text" placeholder=".input-sm" class="form-control input-sm">
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Column sizing</label>
<div class="col-sm-10">
<div class="row">
<div class="col-md-2"><input type="text" placeholder=".col-md-2" class="form-control"></div>
<div class="col-md-3"><input type="text" placeholder=".col-md-3" class="form-control"></div>
<div class="col-md-4"><input type="text" placeholder=".col-md-4" class="form-control"></div>
</div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Input groups</label>
<div class="form-group">
<label for="password_confirm" class="col-sm-2 control-label">确认密码<span class="red-fonts">*</span></label>
<div class="col-sm-8">
<input id="password_confirm" name="password_confirm" type="password" class="form-control">
<div class="col-sm-10">
<div class="input-group m-b"><span class="input-group-addon">@</span> <input type="text" placeholder="Username" class="form-control"></div>
<div class="input-group m-b"><input type="text" class="form-control"> <span class="input-group-addon">.00</span></div>
<div class="input-group m-b"><span class="input-group-addon">$</span> <input type="text" class="form-control"> <span class="input-group-addon">.00</span></div>
<div class="input-group m-b"><span class="input-group-addon"> <input type="checkbox"> </span> <input type="text" class="form-control"></div>
<div class="input-group"><span class="input-group-addon"> <input type="radio"> </span> <input type="text" class="form-control"></div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Button addons</label>
<div class="col-sm-10">
<div class="input-group m-b"><span class="input-group-btn">
<button type="button" class="btn btn-primary">Go!</button> </span> <input type="text" class="form-control">
</div>
<div class="input-group"><input type="text" class="form-control"> <span class="input-group-btn"> <button type="button" class="btn btn-primary">Go!
</button> </span></div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">With dropdowns</label>
<div class="col-sm-10">
<div class="input-group m-b">
<div class="input-group-btn">
<button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">Action <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
<input type="text" class="form-control"></div>
<div class="input-group"><input type="text" class="form-control">
<div class="input-group-btn">
<button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">Action <span class="caret"></span></button>
<ul class="dropdown-menu pull-right">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">Segmented</label>
<div class="col-sm-10">
<div class="input-group m-b">
<div class="input-group-btn">
<button tabindex="-1" class="btn btn-white" type="button">Action</button>
<button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button"><span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
<input type="text" class="form-control"></div>
<div class="input-group"><input type="text" class="form-control">
<div class="input-group-btn">
<button tabindex="-1" class="btn btn-white" type="button">Action</button>
<button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button"><span class="caret"></span></button>
<ul class="dropdown-menu pull-right">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
<div class="col-sm-4 col-sm-offset-2">
<button class="btn btn-white" type="submit">Cancel</button>
<button class="btn btn-primary" type="submit">Save changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>