-
Notifications
You must be signed in to change notification settings - Fork 0
/
bs-form-input.php
52 lines (50 loc) · 1.57 KB
/
bs-form-input.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
* Basic form input structure. Replace "name" with field id. Replace "Label" and "Help Text" appropriately
*/
?>
<!--NAME-->
<div class="element-container">
<div class="row">
<div class="form-group">
<div class="col-md-3">
<label class="control-label" for="name"><?php echo _("LABEL") ?></label>
<i class="fa fa-question-circle fpbx-help-icon" data-for="name"></i>
</div>
<div class="col-md-9">
<input type="text" class="form-control" id="name" name="name" value="">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<span id="name-help" class="help-block fpbx-help-block"><?php echo _("Help Text")?></span>
</div>
</div>
</div>
<!--END NAME-->
<!--Toggle-->
<div class="element-container">
<div class="row">
<div class="form-group">
<div class="col-md-3">
<label class="control-label" for="toggle"><?php echo _("Toggle") ?></label>
<i class="fa fa-question-circle fpbx-help-icon" data-for="toggle"></i>
</div>
<div class="col-md-9">
<span class="radioset">
<input type="radio" name="toggle" id="toggleyes" value="yes" <?php echo $toggle == "yes"?"CHECKED": "") ?>>
<label for="toggleyes"><?php echo _("Yes");?></label>
<input type="radio" name="toggle" id="toggleno" value="no" <?php echo ($toggle == "no"?"": "CHECKED") ?>>
<label for="toggleno"><?php echo _("No");?></label>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<span id="toggle-help" class="help-block fpbx-help-block"><?php echo _("Toggle Help")?></span>
</div>
</div>
</div>
<!--Toggle-->