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
45ef6373
Commit
45ef6373
authored
Jul 02, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tekil staff gösterimi
parent
9ba7a25d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
19 deletions
+9
-19
staff_controller.js
app/components/staff/staff_controller.js
+3
-4
staff_list_template.html
app/components/staff/staff_list_template.html
+0
-13
list.html
app/components/staff/templates/list.html
+4
-1
show.html
app/components/staff/templates/show.html
+2
-1
No files found.
app/components/staff/staff_controller.js
View file @
45ef6373
...
...
@@ -76,8 +76,7 @@ staff.controller('StaffListCtrl', function($scope, $http){
* Staff Show Controller
*/
staff
.
controller
(
'StaffShowCtrl'
,
function
(
$scope
,
$http
,
$routeParams
){
$log
.
info
(
$routeParams
.
id
);
//$http.get('http://127.0.0.1:3000/api/staff/').then(function(res){
$scope
.
staff
=
""
;
//})
$http
.
get
(
'http://127.0.0.1:3000/api/list_staff/'
).
then
(
function
(
res
){
$scope
.
staff
=
res
.
data
[
0
];
})
});
\ No newline at end of file
app/components/staff/staff_list_template.html
deleted
100644 → 0
View file @
9ba7a25d
<table
class=
"table table-bordered"
>
<thead>
<tr>
<th
ng-repeat=
"(key,value) in staffs[0]"
>
{{ key }}
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"staff in staffs"
>
<td
ng-repeat=
"(key,value) in staff"
>
{{value}}
</td>
<td><a
ng-href=
"#/s/edit/{{staff.id}}"
>
Edit
</a></td>
</tr>
</tbody>
</table>
\ No newline at end of file
app/components/staff/templates/list.html
View file @
45ef6373
<table
class=
"table table-bordered"
>
<table
class=
"table table-bordered
table-responsive
"
>
<thead>
<tr>
<th>
name
</th>
<th
ng-repeat=
"(key,value) in staffs[0]"
>
{{ key }}
</th>
<th>
action
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"staff in staffs"
>
<td><a
ng-href=
"#/staff/{{staff.id}}"
>
{{staff.name}}
</a></td>
<td
ng-repeat=
"(key,value) in staff"
>
{{value}}
</td>
<td><a
ng-href=
"#/staff/edit/{{staff.id}}"
>
Edit
</a></td>
</tr>
...
...
app/components/staff/templates/show.html
View file @
45ef6373
{{ staff }}
\ No newline at end of file
<p
ng-repeat=
"(key, value) in staff"
><span
class=
"col-md-3"
>
{{ key }}:
</span>
{{
value}}
</p>
\ No newline at end of file
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