adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

Reset button. #137

Closed Tjoosten closed 7 years ago

Tjoosten commented 7 years ago

Hi i'm just wondering. I'm using this package under L5.3. But in some forms i need a reset button. Is there a method to set a reset button in the form?

jesseleite commented 7 years ago
BootForm::reset('Reset')

👌

Tjoosten commented 7 years ago

But how can i put this in the same form-group with my submit. and give styling to it? vbvcb

jesseleite commented 7 years ago

Ah I see what you are saying! Re-opening issue. The base form package has reset() method, but Bootforms doesn't. Feel free to PR this one in, would be great feature.

adamwathan commented 7 years ago

Just create a form group by hand and put the buttons in there, the generators for those elements aren't buying you anything:

<div class="form-group">
    <button type="reset" class="btn">Reset</button>
    <button type="submit" class="btn btn-primary">Save</button>
</div>