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
b1172c42
Commit
b1172c42
authored
Feb 23, 2016
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX issue items on rfix #5012
parent
65401f1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
nodeTable.html
app/shared/templates/nodeTable.html
+5
-5
form_service.js
app/zetalib/form_service.js
+1
-1
No files found.
app/shared/templates/nodeTable.html
View file @
b1172c42
...
@@ -46,17 +46,17 @@
...
@@ -46,17 +46,17 @@
<tr
ng-repeat=
"listnodemodel in node.items track by $index"
<tr
ng-repeat=
"listnodemodel in node.items track by $index"
ng-init=
"outerIndex=$index"
ng-init=
"outerIndex=$index"
ng-if=
"node.schema.formType=='ListNode'"
>
ng-if=
"node.schema.formType=='ListNode'"
>
<td
width=
"60"
>
<td
ng-if=
"meta.allow_selection=true"
width=
"60"
>
<
!--<label>--
>
<
label
>
<
!--<input type="checkbox" style="zoom:1.5; margin:5px 0 0 8px;">--
>
<
input
type=
"checkbox"
style=
"zoom:1.5; margin:5px 0 0 8px;"
>
<
!--</label>--
>
<
/label
>
</td>
</td>
<th
scope=
"row"
style=
"text-align:center"
>
{{$index+1}}
</th>
<th
scope=
"row"
style=
"text-align:center"
>
{{$index+1}}
</th>
<td
ng-repeat=
"(k, v) in listnodemodel track by $index"
<td
ng-repeat=
"(k, v) in listnodemodel track by $index"
ng-init=
"innerIndex=$index"
ng-init=
"innerIndex=$index"
ng-if=
"k!=='idx' && node.schema.properties[k]"
>
ng-if=
"k!=='idx' && node.schema.properties[k]"
>
<span
ng-if=
"!node.schema.inline_edit || node.schema.inline_edit.indexOf(k) < 0"
>
{{ v.unicode || v }}
</span>
<span
ng-if=
"!node.schema.inline_edit || node.schema.inline_edit.indexOf(k) < 0"
>
{{ v.unicode || v }}
</span>
<input
type=
"
node.schema.formType
"
<input
type=
"
{{node.schema.properties[k].type}}
"
ng-if=
"node.schema.inline_edit.indexOf(k) > -1"
ng-if=
"node.schema.inline_edit.indexOf(k) > -1"
ng-model=
"node.model[outerIndex][k]"
ng-model=
"node.model[outerIndex][k]"
ng-change=
"nodeModelChange(this)"
>
ng-change=
"nodeModelChange(this)"
>
...
...
app/zetalib/form_service.js
View file @
b1172c42
...
@@ -1196,7 +1196,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -1196,7 +1196,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
Generator
.
generate
(
newscope
,
{
forms
:
scope
.
node
});
Generator
.
generate
(
newscope
,
{
forms
:
scope
.
node
});
// modal will add only one item to listNode, so just need one model (not array)
// modal will add only one item to listNode, so just need one model (not array)
newscope
.
model
=
newscope
.
model
[
node
.
edit
]
||
newscope
.
model
[
0
]
||
{};
newscope
.
model
=
newscope
.
model
[
node
.
edit
]
||
{};
return
newscope
;
return
newscope
;
}
}
}
}
...
...
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