Skip to content

Commit c28578d

Browse files
committed
update bower.json
1 parent 04a51a1 commit c28578d

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

app/index.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</head>
99

1010
<body ng-app="app">
11-
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
11+
<header class="navbar navbar-static-top bs-docs-nav no-margin" id="top" role="banner">
1212
<div class="container">
1313
<div class="navbar-header">
1414
<a href="/" class="navbar-brand">AngularFormus</a>
@@ -32,10 +32,15 @@
3232
</nav>
3333
</div>
3434
</header>
35+
<div>
36+
37+
</div>
3538
<div ng-controller="MainCtrl" class="container">
39+
<div class="col-md-12">
40+
<h5 class="lead">Customizable and extensible forms generator for AngularJS</h5>
41+
</div>
3642
<div class="row" id="getting-started">
3743
<div class="col-md-4">
38-
<p class="lead">AngularFormus &#8211 simple and extensive form generator!</p>
3944
<span>Model:</span>
4045
<pre>{{form.data | json}}</pre>
4146
<span>Errors:</span>

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
".gitignore",
3232
".jshintrc",
3333
"bower.json",
34-
"Gruntfile.js",
34+
"gulpfile.js",
3535
"package.json",
3636
"README.md",
3737
"LICENSE"

dist/formus.js

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
default: false
4242
};
4343
},
44+
checklist: function () {
45+
return {
46+
trueValue: true,
47+
falseValue: false,
48+
items: []
49+
};
50+
},
4451
radio: function () {
4552
return { inline: true };
4653
},
@@ -752,6 +759,7 @@ angular.module('formus').run([
752759
$templateCache.put('formus/form.html', '<form role=form id={{name}} class={{config.class}} style={{config.style}} ng-submit=submit()><header><div ng-if="config.showErrors && !isValid" class="alert alert-danger"><ul><li ng-repeat="e in errorList" ng-bind=e></li></ul></div></header><formus-field config=fieldset class=special></formus-field><div class=clear-fix></div><footer><div ng-repeat="btn in config.buttons" class=pull-left><button class={{btn.class}} type=button ng-if=!btn.items ng-click=btn.handler()>{{btn.title}}</button><div class="btn-group margin-left-5" ng-if=btn.items><button class="{{btn.class}} dropdown-toggle" type=button data-toggle=dropdown>{{btn.title}} <span class=caret></span></button><ul class=dropdown-menu><li ng-repeat="item in btn.items"><a ng-click=item.handler()>{{item.title}}</a></li></ul></div></div><button ng-if=config.submit type=submit class={{config.submit.class}} ng-bind=config.submit.title></button></footer></form>');
753760
$templateCache.put('formus/inputs/button.html', '<button type=button class={{config.class}} ng-bind=config.title ng-click=config.handler()></button>');
754761
$templateCache.put('formus/inputs/checkbox.html', '<div class=checkbox><label><input type=checkbox ng-true-value={{config.trueValue}} ng-false-value={{config.falseValue}} ng-model=model name={{config.name}}>{{config.label}}</label></div>');
762+
$templateCache.put('formus/inputs/checklist.html', '<div ng-if=!config.inline><div class=checkbox ng-repeat="item in config.items"><label><input ng-true-value={{config.trueValue}} ng-false-value={{config.falseValue}} name={{name}} type=checkbox ng-model=$parent.$parent.model[item.value]>{{item.title}}</label></div></div><div ng-if=config.inline><label class=checkbox-inline ng-repeat="item in config.items"><input ng-true-value={{config.trueValue}} ng-false-value={{config.falseValue}} name={{name}} type=checkbox ng-model=$parent.$parent.model[item.value]>{{item.title}}</label></div>');
755763
$templateCache.put('formus/inputs/fieldset.html', '<div class={{config.class}}><formus-wrapper ng-repeat="field in config.fields" class={{config.wrapClass}}><formus-field config=field></formus-field></formus-wrapper></div>');
756764
$templateCache.put('formus/inputs/radio.html', '<div ng-if=!config.inline><div class=radio ng-repeat="item in config.items"><label><input ng-value=item.value name={{name}} type=radio ng-model=$parent.$parent.model>{{item.title}}</label></div></div><div ng-if=config.inline><label class=radio-inline ng-repeat="item in config.items"><input ng-value=item.value name={{name}} type=radio ng-model=$parent.$parent.model>{{item.title}}</label></div>');
757765
$templateCache.put('formus/inputs/select.html', '<select name={{config.name}} ng-model=model class=form-control ng-multiple=config.multiple style={{config.style}} id={{config.name}} ng-options="item.value as item.title for item in config.items"><option value ng-if=config.empty>{{config.empty}}</option></select>');

0 commit comments

Comments
 (0)