Commit ea6a647a authored by Evren Kutar's avatar Evren Kutar

show single user

parent 64c06fcf
...@@ -85,6 +85,8 @@ staff.controller('StaffShowCtrl', function ($scope, $rootScope, Generator, $rout ...@@ -85,6 +85,8 @@ staff.controller('StaffShowCtrl', function ($scope, $rootScope, Generator, $rout
$rootScope.staffwfclear = 1 $rootScope.staffwfclear = 1
} }
Generator.get_form('personel_duzenle_basitlestirilmis', form_params).then(function (res) { Generator.get_form('personel_duzenle_basitlestirilmis', form_params).then(function (res) {
$scope.staff = res.data[0]; debugger;
// todo: get this line below more clear way
$scope.staff = res.data.employees[0].data;
}) })
}); });
\ No newline at end of file
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
<tr ng-repeat="staff in staffs"> <tr ng-repeat="staff in staffs">
<!--<td><a ng-href="#/staff/{{staff.id}}">{{staff.name}}</a></td>--> <!--<td><a ng-href="#/staff/{{staff.id}}">{{staff.name}}</a></td>-->
<td ng-repeat="(key,value) in staff.data">{{value}}</td> <td ng-repeat="(key,value) in staff.data">{{value}}</td>
<td><a ng-href="#/staff/edit/{{staff.key}}">Edit</a></td> <td>
<a ng-href="#/staff/edit/{{staff.key}}">Edit</a><br>
<a ng-href="#/staff/{{staff.key}}">Show</a>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment