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
8410a05e
Commit
8410a05e
authored
Sep 18, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.0.3.1 detail show page design implementation
parent
69d2bb3f
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
124 additions
and
12 deletions
+124
-12
crud_controller.js
app/components/crud/crud_controller.js
+9
-0
show.html
app/components/crud/templates/show.html
+57
-4
directives.js
app/shared/directives.js
+0
-1
interceptors.js
app/zetalib/interceptors.js
+0
-1
app.js
dist/app.js
+1
-1
index.html
dist/index.html
+0
-1
templates.js
dist/templates.js
+57
-4
No files found.
app/components/crud/crud_controller.js
View file @
8410a05e
...
@@ -71,7 +71,16 @@ crud.controller('CRUDShowCtrl', function ($scope, $rootScope, Generator, $routeP
...
@@ -71,7 +71,16 @@ crud.controller('CRUDShowCtrl', function ($scope, $rootScope, Generator, $routeP
$scope
.
form_params
=
{
"object_id"
:
$routeParams
.
id
,
"cmd"
:
"show"
,
"model"
:
$routeParams
.
model
};
$scope
.
form_params
=
{
"object_id"
:
$routeParams
.
id
,
"cmd"
:
"show"
,
"model"
:
$routeParams
.
model
};
// call generator's get_single_itemfunc
// call generator's get_single_itemfunc
Generator
.
get_single_item
(
$scope
).
then
(
function
(
res
)
{
Generator
.
get_single_item
(
$scope
).
then
(
function
(
res
)
{
$scope
.
listobjects
=
{};
$scope
.
object
=
res
.
data
.
object
;
$scope
.
object
=
res
.
data
.
object
;
angular
.
forEach
(
$scope
.
object
,
function
(
value
,
key
)
{
if
(
typeof
value
==
'object'
){
$scope
.
listobjects
[
key
]
=
value
;
delete
$scope
.
object
[
key
];
}
});
$scope
.
model
=
$routeParams
.
model
;
$scope
.
model
=
$routeParams
.
model
;
})
})
});
});
\ No newline at end of file
app/components/crud/templates/show.html
View file @
8410a05e
<div
class=
"starter-template"
>
<!--<div class="starter-template">-->
<h1>
{{model}}
</h1>
<!--<h1>{{model}}</h1>-->
<!--<p ng-repeat="(key, value) in object"><span class="col-md-3">{{ key }}:</span>{{value}}</p>-->
<!--</div>-->
<p
ng-repeat=
"(key, value) in object"
><span
class=
"col-md-3"
>
{{ key }}:
</span>
{{value}}
</p>
<div
class=
"starter-template"
>
</div>
\ No newline at end of file
<div
class=
"personnel-info-container"
>
<div
class=
"personnel-info-left"
>
<!--<div class="generic-profile-picture">-->
<!--<img src="../../img/sample-profile-pic.jpg" />-->
<!--</div>-->
<div
class=
"info-block"
>
<div
class=
"info-block-header"
>
<h1>
{{model}}
</h1>
</div>
<!-- end of info-block-header -->
<div
class=
"info-block-body"
ng-repeat=
"(key, value) in object"
>
<dl
class=
"dl-horizontal"
>
<dt>
{{ key }}
</dt>
<dd>
{{value}}
</dd>
</dl>
</div>
<!-- end of info-block-body -->
</div>
<!--<ul>-->
<!--<li ng-repeat="(key, value) in object"><span class="col-md-3">{{ key }}:</span>{{value}}</li>-->
<!--<li>Pozisyon</li>-->
<!--<li><i class="fa fa-phone"></i> (+90) 123 456 7890</li>-->
<!--<li><i class="fa fa-envelope"></i> samplemail@mail.com</li>-->
<!--<li><i class="fa fa-map-marker"></i> Gülbahçe Mah. İzmir Teknoloji Geliştirme Bölgesi A9 Blok 215/A IYTE Campus, URLA/IZMIR</li></li>-->
<!--</ul>-->
</div>
<!-- end of personnel-info-left -->
<div
class=
"personnel-info-right"
>
<div
class=
"info-block"
ng-repeat=
"(key, value) in listobjects"
>
<div
class=
"info-block-header"
>
<h2>
{{key}}
</h2>
</div>
<!-- end of info-block-header -->
<div
class=
"info-block-body"
ng-repeat=
"(k, v) in value"
>
<dl
class=
"dl-horizontal"
>
<dt>
{{k}}
</dt>
<dd>
{{v}}
</dd>
</dl>
</div>
<!-- end of info-block-body -->
</div>
<!-- end of info block -->
<!-- end of info block -->
</div>
<!-- personnel-info-left -->
</div>
<!-- end of personnel-info-container -->
</div>
\ No newline at end of file
app/shared/directives.js
View file @
8410a05e
...
@@ -81,7 +81,6 @@ app.directive('sidebar', ['$location', function () {
...
@@ -81,7 +81,6 @@ app.directive('sidebar', ['$location', function () {
$timeout
(
function
(){
$timeout
(
function
(){
$
(
'#side-menu'
).
metisMenu
();
$
(
'#side-menu'
).
metisMenu
();
console
.
log
(
'amk'
);
},
1000
);
},
1000
);
$scope
.
selectedMenu
=
$location
.
path
();
$scope
.
selectedMenu
=
$location
.
path
();
...
...
app/zetalib/interceptors.js
View file @
8410a05e
...
@@ -38,7 +38,6 @@ app.config(['$httpProvider', function ($httpProvider) {
...
@@ -38,7 +38,6 @@ app.config(['$httpProvider', function ($httpProvider) {
if
(
response
.
data
.
client_cmd
)
{
if
(
response
.
data
.
client_cmd
)
{
//$location.path(response.data.screen);
//$location.path(response.data.screen);
console
.
log
(
response
.
data
.
client_cmd
);
}
}
return
response
;
return
response
;
},
},
...
...
dist/app.js
View file @
8410a05e
This diff is collapsed.
Click to expand it.
dist/index.html
View file @
8410a05e
...
@@ -64,6 +64,5 @@
...
@@ -64,6 +64,5 @@
<script
src=
"shared/translations.js"
></script>
<script
src=
"shared/translations.js"
></script>
<script
src=
"templates.js"
></script>
<script
src=
"templates.js"
></script>
<script
src=
"app.js"
></script>
<script
src=
"app.js"
></script>
<script
src=
"bower_components/theme.js"
></script>
</body>
</body>
</html>
</html>
dist/templates.js
View file @
8410a05e
...
@@ -102,11 +102,64 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache",
...
@@ -102,11 +102,64 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache",
angular
.
module
(
"components/crud/templates/show.html"
,
[]).
run
([
"$templateCache"
,
function
(
$templateCache
)
{
angular
.
module
(
"components/crud/templates/show.html"
,
[]).
run
([
"$templateCache"
,
function
(
$templateCache
)
{
$templateCache
.
put
(
"components/crud/templates/show.html"
,
$templateCache
.
put
(
"components/crud/templates/show.html"
,
"<
div class=
\"
starter-template
\"
>
\n
"
+
"<
!--<div class=
\"
starter-template
\"
>--
>
\n
"
+
" <
h1>{{model}}</h1
>
\n
"
+
" <
!--<h1>{{model}}</h1>--
>
\n
"
+
"
\n
"
+
"
\n
"
+
" <p ng-repeat=
\"
(key, value) in object
\"
><span class=
\"
col-md-3
\"
>{{ key }}:</span>{{value}}</p>
\n
"
+
" <!--<p ng-repeat=
\"
(key, value) in object
\"
><span class=
\"
col-md-3
\"
>{{ key }}:</span>{{value}}</p>-->
\n
"
+
"</div>"
);
"<!--</div>-->
\n
"
+
"
\n
"
+
"
\n
"
+
" <div class=
\"
starter-template
\"
>
\n
"
+
"
\n
"
+
" <div class=
\"
personnel-info-container
\"
>
\n
"
+
" <div class=
\"
personnel-info-left
\"
>
\n
"
+
"
\n
"
+
" <!--<div class=
\"
generic-profile-picture
\"
>-->
\n
"
+
" <!--<img src=
\"
../../img/sample-profile-pic.jpg
\"
/>-->
\n
"
+
" <!--</div>-->
\n
"
+
" <div class=
\"
info-block
\"
>
\n
"
+
" <div class=
\"
info-block-header
\"
>
\n
"
+
" <h1>{{model}}</h1>
\n
"
+
" </div>
\n
"
+
" <!-- end of info-block-header -->
\n
"
+
" <div class=
\"
info-block-body
\"
ng-repeat=
\"
(key, value) in object
\"
>
\n
"
+
" <dl class=
\"
dl-horizontal
\"
>
\n
"
+
" <dt>{{ key }}</dt>
\n
"
+
" <dd>{{value}}</dd>
\n
"
+
" </dl>
\n
"
+
" </div>
\n
"
+
" <!-- end of info-block-body -->
\n
"
+
" </div>
\n
"
+
" <!--<ul>-->
\n
"
+
" <!--<li ng-repeat=
\"
(key, value) in object
\"
><span class=
\"
col-md-3
\"
>{{ key }}:</span>{{value}}</li>-->
\n
"
+
" <!--<li>Pozisyon</li>-->
\n
"
+
" <!--<li><i class=
\"
fa fa-phone
\"
></i> (+90) 123 456 7890</li>-->
\n
"
+
" <!--<li><i class=
\"
fa fa-envelope
\"
></i> samplemail@mail.com</li>-->
\n
"
+
" <!--<li><i class=
\"
fa fa-map-marker
\"
></i> Gülbahçe Mah. İzmir Teknoloji Geliştirme Bölgesi A9 Blok 215/A IYTE Campus, URLA/IZMIR</li></li>-->
\n
"
+
" <!--</ul>-->
\n
"
+
" </div>
\n
"
+
" <!-- end of personnel-info-left -->
\n
"
+
" <div class=
\"
personnel-info-right
\"
>
\n
"
+
" <div class=
\"
info-block
\"
ng-repeat=
\"
(key, value) in listobjects
\"
>
\n
"
+
" <div class=
\"
info-block-header
\"
>
\n
"
+
" <h2>{{key}}</h2>
\n
"
+
" </div>
\n
"
+
" <!-- end of info-block-header -->
\n
"
+
" <div class=
\"
info-block-body
\"
ng-repeat=
\"
(k, v) in value
\"
>
\n
"
+
" <dl class=
\"
dl-horizontal
\"
>
\n
"
+
" <dt>{{k}}</dt>
\n
"
+
" <dd>{{v}}</dd>
\n
"
+
" </dl>
\n
"
+
" </div>
\n
"
+
" <!-- end of info-block-body -->
\n
"
+
" </div>
\n
"
+
" <!-- end of info block -->
\n
"
+
" <!-- end of info block -->
\n
"
+
" </div>
\n
"
+
" <!-- personnel-info-left -->
\n
"
+
" </div>
\n
"
+
" <!-- end of personnel-info-container -->
\n
"
+
" </div>"
);
}]);
}]);
angular
.
module
(
"components/dashboard/dashboard.html"
,
[]).
run
([
"$templateCache"
,
function
(
$templateCache
)
{
angular
.
module
(
"components/dashboard/dashboard.html"
,
[]).
run
([
"$templateCache"
,
function
(
$templateCache
)
{
...
...
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