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
290467c0
Commit
290467c0
authored
Feb 15, 2016
by
Evren Kutar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/issue-5073' into develop
parents
7166c2aa
7cf9103f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
app.css
app/app.css
+13
-0
crud.html
app/components/crud/templates/crud.html
+1
-0
form.html
app/components/crud/templates/form.html
+1
-1
form_service.js
app/zetalib/form_service.js
+1
-10
No files found.
app/app.css
View file @
290467c0
...
@@ -34,6 +34,19 @@ body {
...
@@ -34,6 +34,19 @@ body {
font-weight
:
normal
;
font-weight
:
normal
;
}
}
.form-container
{
width
:
650px
;
background-color
:
#fff
;
padding
:
25px
;
border-radius
:
3px
;
margin-left
:
auto
;
margin-right
:
auto
;
-webkit-box-shadow
:
0
0
25px
rgba
(
0
,
0
,
0
,
0.04
);
-moz-box-shadow
:
0
0
25px
rgba
(
0
,
0
,
0
,
0.04
);
box-shadow
:
0
0
25px
rgba
(
0
,
0
,
0
,
0.04
);
}
.form-control
{
.form-control
{
box-shadow
:
none
;
box-shadow
:
none
;
border-radius
:
0
;
border-radius
:
0
;
...
...
app/components/crud/templates/crud.html
View file @
290467c0
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
ng-class=
"{'col-md-8': meta.allow_filters}"
>
<div
ng-class=
"{'col-md-8': meta.allow_filters}"
>
<msgbox
ng-show=
"msgbox"
></msgbox>
<h3>
{{ schema.title }}
</h3>
<h3>
{{ schema.title }}
</h3>
<crud-show-directive
ng-if=
"object"
></crud-show-directive>
<crud-show-directive
ng-if=
"object"
></crud-show-directive>
<crud-form-directive
ng-if=
"forms"
></crud-form-directive>
<crud-form-directive
ng-if=
"forms"
></crud-form-directive>
...
...
app/components/crud/templates/form.html
View file @
290467c0
<div>
<div
class=
"clearfix"
ng-class=
"{'form-container': !objects || grouping.length < 1 }"
>
<div
class=
"buttons-on-top"
></div>
<div
class=
"buttons-on-top"
></div>
<form
id=
"formgenerated"
name=
"formgenerated"
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
<form
id=
"formgenerated"
name=
"formgenerated"
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
...
...
app/zetalib/form_service.js
View file @
290467c0
...
@@ -793,16 +793,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -793,16 +793,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
generator
.
button_switch
(
true
);
generator
.
button_switch
(
true
);
if
(
res
.
data
.
client_cmd
)
{
return
generator
.
pathDecider
(
res
.
data
.
client_cmd
,
scope
,
res
.
data
);
return
generator
.
pathDecider
(
res
.
data
.
client_cmd
,
scope
,
res
.
data
);
}
if
(
res
.
data
.
msgbox
)
{
scope
.
msgbox
=
res
.
data
.
msgbox
;
var
newElement
=
$compile
(
"<msgbox></msgbox>"
)(
scope
);
// this is the default action, which is removing page items and reload page with msgbox
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
children
().
remove
();
angular
.
element
(
document
.
querySelector
(
'.main.ng-scope'
)).
append
(
newElement
);
}
});
});
};
};
///**
///**
...
...
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