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
fc34f09d
Commit
fc34f09d
authored
May 10, 2016
by
Bahadir Can Yildiz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/5257' into develop
parents
57ad6e98
960b2b68
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
234 additions
and
58 deletions
+234
-58
diagram-js.css
app/admin/css/diagram-js.css
+2
-2
form_service_pg.html
app/components/uitemplates/form_service_pg.html
+2
-2
uitemplates.js
app/components/uitemplates/uitemplates.js
+29
-14
confirm.html
app/shared/templates/confirm.html
+12
-11
confirmModalContent.html
app/shared/templates/confirmModalContent.html
+9
-0
confirmprev.html
app/shared/templates/confirmprev.html
+20
-0
listnodeModalContent.html
app/shared/templates/listnodeModalContent.html
+1
-2
form_service.js
app/zetalib/form_service.js
+158
-25
templates.js
dist/templates.js
+1
-2
No files found.
app/admin/css/diagram-js.css
View file @
fc34f09d
...
@@ -292,7 +292,7 @@ svg.new-parent {
...
@@ -292,7 +292,7 @@ svg.new-parent {
.djs-palette
:not
(
.open
)
.djs-palette-entries
{
.djs-palette
:not
(
.open
)
.djs-palette-entries
{
display
:
none
;
display
:
none
;
}
}
confirm
.djs-palette
.djs-palette-toggle
:hover
{
.djs-palette
.djs-palette-toggle
:hover
{
background
:
#666
;
background
:
#666
;
}
}
...
@@ -304,7 +304,7 @@ svg.new-parent {
...
@@ -304,7 +304,7 @@ svg.new-parent {
.highlighted-entry
{
.highlighted-entry
{
color
:
rgb
(
255
,
116
,
0
)
!important
;
color
:
rgb
(
255
,
116
,
0
)
!important
;
}
}
confirm
/**
/**
* context-pad
* context-pad
*/
*/
...
...
app/components/uitemplates/form_service_pg.html
View file @
fc34f09d
<div>
<div>
<select
ng-model=
"selection"
ng-options=
"
forms.indexOf(form) as form.name for form in forms
"
ng-change=
"selectform(selection)"
>
<select
ng-model=
"selection"
ng-options=
"
trialList.indexOf(trial) as trial.name for trial in trialList
"
ng-change=
"selectform(selection)"
>
</select>
</select>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-xs-
6
center"
>
<div
class=
"col-xs-
8
center"
>
<form
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
></form>
<form
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
></form>
</div>
</div>
</div>
</div>
...
...
app/components/uitemplates/uitemplates.js
View file @
fc34f09d
...
@@ -6,29 +6,30 @@
...
@@ -6,29 +6,30 @@
* (GPLv3). See LICENSE.txt for details.
* (GPLv3). See LICENSE.txt for details.
*/
*/
var
app
=
angular
.
module
(
'ulakbus.uitemplates'
,
[
'ngRoute'
,
'ulakbus.formService'
]);
angular
.
module
(
'ulakbus.uitemplates'
,
[
'ngRoute'
,
'ulakbus.crud'
])
app
.
controller
(
'NewDesignsCtrl'
,
function
(
$scope
)
{
.
controller
(
'NewDesignsCtrl'
,
function
(
$scope
)
{
$scope
.
items
=
[
'student'
,
'staff'
,
'academician'
];
$scope
.
items
=
[
'student'
,
'staff'
,
'academician'
];
$scope
.
selection
=
$scope
.
items
[
0
];
$scope
.
selection
=
$scope
.
items
[
0
];
})
})
.
controller
(
'FormServicePg'
,
function
(
$scope
,
Generator
,
CrudUtility
)
{
/*
/*
This controller is for testing new SchemaForm components. In addition, forms need to have the attribute:
This controller is for testing new SchemaForm components. In addition, forms need to have the attribute:
"name" for defining the name shown in dropdown box. Paste the JSON of form as a member of $scope.forms.
"name" for defining the name shown in dropdown box. Paste the JSON of form as a member of $scope.forms.
*/
*/
$scope
.
trialList
=
[
app
.
controller
(
'FormServicePg'
,
function
(
$scope
,
Generator
)
{
$scope
.
forms
=
[
{
{
name
:
'Deneme Form 1'
,
name
:
'Deneme Form 1'
,
form
:
[
'email'
,
'id'
,
'name'
,
'
no
valid'
],
form
:
[
'email'
,
'id'
,
'name'
,
'valid'
],
schema
:
{
schema
:
{
properties
:
{
properties
:
{
email
:
{
title
:
'email'
,
type
:
'string'
},
email
:
{
title
:
'email'
,
type
:
'string'
},
id
:
{
title
:
'id'
,
type
:
'number'
},
id
:
{
title
:
'id'
,
type
:
'number'
},
name
:
{
title
:
'name'
,
type
:
'string'
},
name
:
{
title
:
'name'
,
type
:
'string'
},
novalid
:
{
type
:
"button"
,
cmd
:
"list_user2"
,
title
:
"submit without validation"
,
form_validate
:
false
}
valid
:
{
type
:
'submit'
,
cmd
:
"list_user2"
,
title
:
"submit with validation"
}
},
required
:
[
"email"
,
"id"
,
"name"
],
type
:
'object'
,
title
:
'servicetest'
},
required
:
[
"email"
,
"id"
,
"name"
],
type
:
'object'
,
title
:
'servicetest'
},
},
...
@@ -37,26 +38,40 @@ var app=angular.module('ulakbus.uitemplates', ['ngRoute', 'ulakbus.formService']
...
@@ -37,26 +38,40 @@ var app=angular.module('ulakbus.uitemplates', ['ngRoute', 'ulakbus.formService']
}
}
},
},
{
{
name
:
'
Deneme Form 2
'
,
name
:
'
Confirm Form Trial
'
,
form
:
[
'email'
,
'id'
,
'name'
],
form
:
[
'email'
,
'id'
,
'name'
,
'confirm'
],
schema
:
{
schema
:
{
properties
:
{
properties
:
{
email
:
{
title
:
'email'
,
type
:
'string'
},
email
:
{
title
:
'email'
,
type
:
'string'
},
id
:
{
title
:
'id'
,
type
:
'number'
},
id
:
{
title
:
'id'
,
type
:
'number'
},
name
:
{
title
:
'name'
,
type
:
'string'
}
name
:
{
title
:
'name'
,
type
:
'string'
},
confirm
:
{
title
:
'Confirm Form'
,
style
:
"btn-success"
,
type
:
'confirm'
,
confirm_message
:
"Lorem Ipsum Dolor Sit Amet"
,
buttons
:
[
{
text
:
"button 1"
,
cmd
:
"zeaaa"
,
style
:
"btn-warning"
},
{
text
:
"button 2"
,
cmd
:
"cmd1"
,
style
:
"btn-success"
}
],
readonly
:
"true"
,
form_validate
:
false
}
},
required
:
[],
type
:
'object'
,
title
:
'servicetest'
},
required
:
[],
type
:
'object'
,
title
:
'servicetest'
},
},
model
:
{
model
:
{
email
:
'test@test.com'
,
id
:
2
,
name
:
'cageman'
email
:
'test@test.com'
,
id
:
3
,
name
:
'cageman'
}
}
}
}
];
];
$scope
.
form_params
=
{};
$scope
.
form_params
=
{};
$scope
.
selection
=
0
;
$scope
.
selection
=
0
;
$scope
.
meta
=
{};
$scope
.
selectform
=
function
(
index
)
{
$scope
.
selectform
=
function
(
index
)
{
var
form
=
$scope
.
forms
[
index
];
var
data
=
{
forms
:
$scope
.
trialList
[
index
]
};
$scope
=
Generator
.
generate
(
$scope
,
{
forms
:
form
});
CrudUtility
.
listPageItems
(
$scope
,
data
);
Generator
.
generate
(
$scope
,
data
);
Generator
.
setPageData
({
pageData
:
false
});
};
};
$scope
.
selectform
(
$scope
.
selection
);
$scope
.
selectform
(
$scope
.
selection
);
});
});
\ No newline at end of file
app/shared/templates/confirm.html
View file @
fc34f09d
...
@@ -2,18 +2,19 @@
...
@@ -2,18 +2,19 @@
<button
class=
"btn {{ form.style || 'btn-default' }}"
<button
class=
"btn {{ form.style || 'btn-default' }}"
type=
"button"
type=
"button"
ng-disabled=
"form.readonly"
ng-disabled=
"form.readonly"
uib-popover-template=
"'confirmPopoverTemplate.html'"
ng-click=
"form.openModal()"
>
popover-title=
"{{form.title}}"
popover-placement=
"bottom"
popover-trigger=
"outsideClick"
>
<span
ng-if=
"form.icon"
class=
"{{form.icon}}"
></span>
<span
ng-if=
"form.icon"
class=
"{{form.icon}}"
></span>
{{form.title}}
{{form.title}}
</button>
</button>
<script
type=
"text/ng-template"
id=
"confirmPopoverTemplate.html"
>
<!--<script type="text/ng-template" id="confirmModalTemplate.html">-->
<
div
>
{{
form
.
title
}}
<
/div
>
<!--<div class="modal-header">-->
<
div
class
=
"form-group"
>
<!--<h3 class="modal-title">{{form.title}}</h3>-->
<
p
>
{{
form
.
confirm_message
}}
<
/p
>
<!--</div>-->
<
button
class
=
"btn btn-default"
ng
-
click
=
"form.confirm()"
><
/button
>
<!--<div class="modal-body">-->
<
/div
>
<!--<p>{{form.confirm_message}}</p>-->
</script>
<!--</div>-->
<!--<div class="modal-footer">-->
<!--<button ng-repeat="b in form.buttons" class="btn {{b.style || 'btn-default'}}" type="button" ng-click="form.send(b.cmd,(b.dismiss || false))">{{b.text}}</button>-->
<!--</div>-->
<!--</script>-->
</div>
</div>
\ No newline at end of file
app/shared/templates/confirmModalContent.html
0 → 100644
View file @
fc34f09d
<div
class=
"modal-header"
>
<h3
class=
"modal-title"
>
{{form.title}}
</h3>
</div>
<div
class=
"modal-body"
>
<p>
{{form.confirm_message}}
</p>
</div>
<div
class=
"modal-footer"
>
<button
ng-repeat=
"b in form.buttons"
class=
"btn {{b.style || 'btn-default'}}"
type=
"button"
ng-click=
"form.onClick(b.cmd)"
>
{{b.text}}
</button>
</div>
\ No newline at end of file
app/shared/templates/confirmprev.html
0 → 100644
View file @
fc34f09d
<div
class=
"form-group schema-form-submit {{form.htmlClass}}"
>
<button
class=
"btn {{ form.style || 'btn-default' }}"
type=
"button"
ng-disabled=
"form.readonly"
uib-popover-template=
"'confirmPopoverTemplate.html'"
popover-title=
"{{form.title}}"
popover-trigger=
"none"
popover-placement=
"bottom"
popover-is-open=
"form.isOpen"
ng-click=
"form.clickHandler()"
>
<span
ng-if=
"form.icon"
class=
"{{form.icon}}"
></span>
{{form.title}}
</button>
<script
type=
"text/ng-template"
id=
"confirmPopoverTemplate.html"
>
<
div
class
=
"form-group"
>
<
p
>
{{
form
.
confirm_message
}}
<
/p
>
<
button
class
=
"btn btn-default"
ng
-
click
=
"form.confirm()"
>
Confirm
<
/button
>
<
/div
>
</script>
</div>
\ No newline at end of file
app/shared/templates/listnodeModalContent.html
View file @
fc34f09d
...
@@ -3,6 +3,5 @@
...
@@ -3,6 +3,5 @@
<form
name=
"modalForm"
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
modal-form-locator
></form>
<form
name=
"modalForm"
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
modal-form-locator
></form>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"submit"
class=
"btn btn-primary"
ng-click=
"onNodeSubmit()"
>
Tamam
</button>
<button
ng-repeat=
"b in buttons"
type=
"{{b.type}}"
class=
"btn {{b.style || 'btn-default'}}"
ng-click=
"onNodeBtnClk(b)"
>
{{b.text}}
</button>
<button
type=
"button"
class=
"btn btn-warning"
ng-click=
"cancel()"
>
İptal
</button>
</div>
</div>
\ No newline at end of file
app/zetalib/form_service.js
View file @
fc34f09d
This diff is collapsed.
Click to expand it.
dist/templates.js
View file @
fc34f09d
...
@@ -2843,8 +2843,7 @@ angular.module("shared/templates/listnodeModalContent.html", []).run(["$template
...
@@ -2843,8 +2843,7 @@ angular.module("shared/templates/listnodeModalContent.html", []).run(["$template
" <form name=
\"
modalForm
\"
sf-schema=
\"
schema
\"
sf-form=
\"
form
\"
sf-model=
\"
model
\"
modal-form-locator></form>
\n
"
+
" <form name=
\"
modalForm
\"
sf-schema=
\"
schema
\"
sf-form=
\"
form
\"
sf-model=
\"
model
\"
modal-form-locator></form>
\n
"
+
"</div>
\n
"
+
"</div>
\n
"
+
"<div class=
\"
modal-footer
\"
>
\n
"
+
"<div class=
\"
modal-footer
\"
>
\n
"
+
" <button type=
\"
submit
\"
class=
\"
btn btn-primary
\"
ng-click=
\"
onNodeSubmit()
\"
>Tamam</button>
\n
"
+
" <button ng-repeat=
\"
b in schema.buttons
\"
type=
\"
{{b.type}}
\"
class=
\"
btn {{b.style || 'btn-default'}}
\"
ng-click=
\"
onNodeSubmit(b)
\"
>{{b.text}}</button>
\n
"
+
" <button type=
\"
button
\"
class=
\"
btn btn-warning
\"
ng-click=
\"
cancel()
\"
>İptal</button>
\n
"
+
"</div>"
);
"</div>"
);
}]);
}]);
...
...
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