Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Angular v 1.3 #3

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Drag and drop dynamic bootstrap forms with angular.

## Description

An extendable _angular_ module that allows you and/or your web users to design and render _bootstrap_ forms.
An extendable _angular_ module that allows you and/or your web users to design and render _bootstrap_ forms.
Field components can be dragged from a _pallette_ onto a _canvas_ where details like _validation_ can be fine-tuned further.
Developers can extend the editor by adding _custom field components_ and _validation patterns_.

Expand All @@ -19,7 +19,10 @@ A full blown demonstration is available on [angular-form-gen.nullest.com](http:/

## Dependencies

This module was build using _AngularJS_ ~1.2.21 and _Bootstrap (CSS)_ ~3.2.0.
This module was build using _AngularJS_ ~1.3.8 and _Bootstrap (CSS)_ ~3.2.0.
Requires Angular v.1.3.
With version 1.2 will fail due changes in $interpolate and ng-pattern.
* [Angular Doc - Migrating from 1.2 to 1.3 ](https://docs.angularjs.org/guide/migration)

## Installation

Expand Down Expand Up @@ -55,10 +58,10 @@ The schema editor can be embedded in any `form` by marking a child element with
```
<!-- Create normal bootstrap form element -->
<form class="form-horizontal">

<!-- Embed the schema editor on the form -->
<div fg-edit fg-schema="myForm.schema"></div>

</form>
```

Expand Down Expand Up @@ -128,20 +131,20 @@ Any parent `form` or `ng-form` state will be updated accordantly if any of the v

```
<form novalidate class="form" name="myForm">

<div fg-form
fg-form-data="myFormData"
fg-schema="mySchema">
</div>

<!-- set the disabled class on the submit button when the form state is invalid -->

<button type="submit"
class="btn btn-primary"
ng-class="{ disabled: myForm.$invalid }">
Submit
</button>

</form>
```

Expand Down
13 changes: 8 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"homepage": "http://angular-form-gen.nullest.com",
"repository": {
"type": "git",
"url": "git://github.com/McNull/angular-form-gen.git"
"url": "git://github.com/SSchaaf/angular-form-gen.git"
},
"keywords": [
"angularjs",
Expand All @@ -18,7 +18,7 @@
"schema",
"generator"
],
"version": "0.0.2",
"version": "0.0.3",
"authors": [
"Null McNull <[email protected]> https://github.com/McNull"
],
Expand All @@ -39,11 +39,11 @@
],
"dependencies": {
"bootstrap": "~3.2.0",
"angular": "~1.2.21"
"angular": "~1.3.8"
},
"devDependencies": {
"angular-route": "~1.2.21",
"angular-mocks": "~1.2.21",
"angular-route": "~1.3.0",
"angular-mocks": "~1.3.0",
"jquery": "1.*",
"respond": "~1.4.2",
"html5shiv": "~3.7.2",
Expand All @@ -66,5 +66,8 @@
"showdown": {
"main": "compressed/showdown.js"
}
},
"resolutions": {
"angular": "~1.3.8"
}
}
2 changes: 1 addition & 1 deletion dist/angular-form-gen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/angular-form-gen.css.map

Large diffs are not rendered by default.

151 changes: 96 additions & 55 deletions dist/angular-form-gen.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-form-gen.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-form-gen.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/angular-form-gen.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-form-gen.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-form-gen",
"version": "0.0.2",
"version": "0.0.3",
"description": "Dynamic form schema generator for AngularJS",
"homepage": "https://github.com/McNull/angular-form-gen",
"main": "gulp",
Expand Down
Loading