Issue #270 new

Change TbActiveForm elemet's template

Daniel Salamon
created an issue

How could I change the "template" under the TbActiveForm?

In our company, we use a "whole site template", that uses Bootstrap 3.0. It is not possible not to use it and not possible to switch back to 2.3.2 or 2.2.2 .

I would like to change the elements what the textFieldRow (and similar) functions return, because Bootstrap 3 uses different classes, like you can see here: getbootstrap.com

Here you can see the differences:

<!-- Bootstrap 2.3.2 -->
<form class="form-horizontal">
  <div class="control-group">
    <label class="control-label" for="inputEmail">Email</label>
    <div class="controls">
      <input type="text" id="inputEmail" placeholder="Email">
    </div>
  </div>
</form>

<!-- Bootstrap 3.0.0 -->
<form class="form-horizontal" role="form">
  <div class="form-group">
    <label class="col-lg-2 control-label" for="inputEmail">Email</label>
    <div class="col-lg-10">
      <input type="email" class="form-control" id="inputEmail" placeholder="Email">
    </div>
  </div>
</form>

So I should change "control-group" to "form-group" and some more.

Comments (1)

  1. Log in to comment