Created
December 31, 2012 02:41
-
-
Save TechNickAI/4416982 to your computer and use it in GitHub Desktop.
HTML for bootstrap inline forms - see it in action here:
http://adsynth-alerts.herokuapp.com/alerts/new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This goes in the form --> | |
<div class="control-group conditions"> | |
</div> | |
<button type="button" class="btn btn-small add-condition">+</button> | |
<!-- This is the html for the individual line items, to be rendered by your favorite engine --> | |
<div class="alert-inline alert-condition form-inline" style="margin-bottom:10px;"> | |
<input name="condition_subject" placeholder="Subject" required="true"> | |
<select name="condition_operator"> | |
<option value="=">is | |
<option value="!=">is not | |
<option value="contains">contains | |
<option value="starts">starts | |
</select> | |
<input name="condition_value" placeholder="Value" required="true"> | |
<button type="button" class="btn btn-danger btn-small remove-condition">X</button> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment