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
94ec1592
Commit
94ec1592
authored
Sep 18, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.0.3.1 linkedmodel modal model_name fix
parent
b4c9e7f7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
list.html
app/components/crud/templates/list.html
+2
-2
form_service.js
app/zetalib/forms/form_service.js
+8
-7
app.js
dist/app.js
+1
-1
templates.js
dist/templates.js
+2
-2
No files found.
app/components/crud/templates/list.html
View file @
94ec1592
...
...
@@ -10,12 +10,12 @@
Hepsini Seç
</label>
</th>
<th
ng-repeat=
"(key,value) in objects[0].data"
>
{{ key }}
</th>
<th
ng-repeat=
"(key,value) in
n
objects[0].data"
>
{{ key }}
</th>
<th>
action
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"object in objects"
>
<tr
ng-repeat=
"object in
n
objects"
>
<td
width=
"60"
>
<label>
<input
type=
"checkbox"
style=
"zoom:1.5; margin:5px 0 0 8px;"
>
...
...
app/zetalib/forms/form_service.js
View file @
94ec1592
...
...
@@ -70,14 +70,14 @@ form_generator.factory('Generator', function ($http, $q, $log, $location, $modal
if
(
k
.
type
==
'model'
)
{
var
formitem
=
scope
.
form
[
scope
.
form
.
indexOf
(
v
)];
debugger
;
var
modelscope
=
{
"url"
:
scope
.
url
,
"form_params"
:
{
model
:
k
.
model_name
}};
debugger
;
formitem
=
{
"type"
:
"template"
,
"templateUrl"
:
"shared/templates/foreignKey.html"
,
"title"
:
k
.
title
,
"titleMap"
:
generator
.
get_list
(
modelscope
).
then
(
function
(
res
)
{
type
:
"template"
,
templateUrl
:
"shared/templates/foreignKey.html"
,
title
:
k
.
title
,
model_name
:
k
.
model_name
,
titleMap
:
generator
.
get_list
(
modelscope
).
then
(
function
(
res
)
{
formitem
.
titleMap
=
[];
angular
.
forEach
(
res
.
data
.
objects
,
function
(
item
)
{
formitem
.
titleMap
.
push
({
...
...
@@ -318,9 +318,10 @@ form_generator.directive('addModalForLinkedModel', function ($modal, Generator)
size
:
'lg'
,
resolve
:
{
items
:
function
()
{
debugger
;
return
Generator
.
get_form
({
url
:
'crud'
,
form_params
:
{
'model'
:
scope
.
form
.
titl
e
,
"cmd"
:
"add"
}
form_params
:
{
'model'
:
scope
.
form
.
model_nam
e
,
"cmd"
:
"add"
}
});
}
}
...
...
dist/app.js
View file @
94ec1592
This diff is collapsed.
Click to expand it.
dist/templates.js
View file @
94ec1592
...
...
@@ -50,12 +50,12 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache",
" Hepsini Seç
\n
"
+
" </label>
\n
"
+
" </th>
\n
"
+
" <th ng-repeat=
\"
(key,value) in objects[0].data
\"
>{{ key }}</th>
\n
"
+
" <th ng-repeat=
\"
(key,value) in
n
objects[0].data
\"
>{{ key }}</th>
\n
"
+
" <th>action</th>
\n
"
+
" </tr>
\n
"
+
" </thead>
\n
"
+
" <tbody>
\n
"
+
" <tr ng-repeat=
\"
object in objects
\"
>
\n
"
+
" <tr ng-repeat=
\"
object in
n
objects
\"
>
\n
"
+
" <td width=
\"
60
\"
>
\n
"
+
" <label>
\n
"
+
" <input type=
\"
checkbox
\"
style=
\"
zoom:1.5; margin:5px 0 0 8px;
\"
>
\n
"
+
...
...
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