Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
037687ae
Commit
037687ae
authored
May 20, 2016
by
Bahadir Can Yildiz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/5296' into develop
parents
dea4a2a9
1c5032eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
uitemplates.js
app/components/uitemplates/uitemplates.js
+2
-2
listnodeModalContent.html
app/shared/templates/listnodeModalContent.html
+1
-1
form_service.js
app/zetalib/form_service.js
+12
-0
No files found.
app/components/uitemplates/uitemplates.js
View file @
037687ae
...
...
@@ -51,8 +51,8 @@ angular.module('ulakbus.uitemplates', ['ngRoute', 'ulakbus.crud'])
type
:
'confirm'
,
confirm_message
:
"Lorem Ipsum Dolor Sit Amet"
,
buttons
:
[
{
text
:
"button 1"
,
cmd
:
"
zeaaa
"
,
style
:
"btn-warning"
},
{
text
:
"button 2"
,
cmd
:
"cmd
1
"
,
style
:
"btn-success"
}
{
text
:
"button 1"
,
cmd
:
"
cmd1
"
,
style
:
"btn-warning"
},
{
text
:
"button 2"
,
cmd
:
"cmd
2
"
,
style
:
"btn-success"
}
],
readonly
:
"true"
,
form_validate
:
false
}
...
...
app/shared/templates/listnodeModalContent.html
View file @
037687ae
...
...
@@ -3,5 +3,5 @@
<form
name=
"modalForm"
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
modal-form-locator
></form>
</div>
<div
class=
"modal-footer"
>
<button
ng-repeat=
"b in
b
uttons"
type=
"{{b.type}}"
class=
"btn {{b.style || 'btn-default'}}"
ng-click=
"onNodeBtnClk(b)"
>
{{b.text}}
</button>
<button
ng-repeat=
"b in
schema.footerB
uttons"
type=
"{{b.type}}"
class=
"btn {{b.style || 'btn-default'}}"
ng-click=
"onNodeBtnClk(b)"
>
{{b.text}}
</button>
</div>
\ No newline at end of file
app/zetalib/form_service.js
View file @
037687ae
...
...
@@ -58,6 +58,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
*/
generator
.
generate
=
function
(
scope
,
data
)
{
$log
.
debug
(
"data before generation:"
,
data
);
// if no form in response (in case of list and single item request) return scope
if
(
!
data
.
forms
)
{
return
scope
;
...
...
@@ -1405,6 +1406,12 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
}
};
// $scope.onNodeSubmit = function () {
// $scope.$broadcast('schemaFormValidate');
// if ($scope.modalForm.$valid) {
// $uibModalInstance.close($scope);
// }
// };
$scope
.
cancel
=
function
()
{
$uibModalInstance
.
dismiss
(
'cancel'
);
};
...
...
@@ -1460,6 +1467,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
scope
.
node
.
schema
.
properties
[
key
].
list_cmd
=
'select_list'
;
});
// scope.node.schema.footerButtons = [
// {type: "submit", text:"Onayla", style:"btn-success" },
// {type: "button", text:"Vazgec", style:"btn-danger" },
// ]
var
newscope
=
{
wf
:
scope
.
node
.
wf
,
url
:
scope
.
node
.
url
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment