ppazos / yupp

Automatically exported from code.google.com/p/yupp
0 stars 0 forks source link

Modificar la salida de YuppForms para que sea el de Twitter Bootstrap Forms #151

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Ejemplo:

<form class="form-horizontal" action="<?php echo h('url', 
array('action'=>'register')) ?>">
      <fieldset>
        <legend>Legend text</legend>
        <div class="control-group">
          <label for="input012">Text input</label>
          <div class="controls">
            <input type="text" class="input-xlarge" id="input012">
            <span class="help-block">Supporting help text</span>
          </div>
        </div>
        <div class="control-group error">
          <label for="input0123">Text input</label>
          <div class="controls input-prepend">
            <span class="add-on">@</span>
            <input type="text" class="input-xlarge" id="input0123">
            <span class="help-block">Supporting help text</span>
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="input01">Text input</label>
          <div class="controls">
            <input type="text" class="input-xlarge" id="input01">
            <span class="help-block">Supporting help text</span>
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="input015">Text input</label>
          <div class="controls">
            <input type="password" class="input-xlarge" id="input015">
            <span class="help-block">Supporting help text</span>
          </div>
        </div>
      </fieldset>
      <input type="submit" value="Register" name="doit" class="btn btn-primary" />
      <input type="submit" value="Cancel" name="doit" class="btn" />
    </form>

http://twitter.github.com/bootstrap/base-css.html#forms

Original issue reported on code.google.com by pablo.swp@gmail.com on 11 May 2012 at 11:19