aor88

Untitled

Dec 11th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <div ng-controller="allPatientsController as list">
  2. <table align="center" valign="middle">
  3. <tbody ng-repeat="patient in patients | orderBy:'-fname'">
  4. <tr style="height:55px; font-size:20px; margin-left:20px; margin-right:20px; valign="middle"; >
  5. <td>
  6. <span style="height:55px; font-size:20px; margin-left:20px; margin-right:20px; valign="middle";>{{patient.fname}} {{patient.sname}}</span>
  7. </td>
  8. <td>
  9. <span style="height:55px; font-size:20px; margin-left:20px; margin-right:20px; valign="middle";>{{patient.address}}</span>
  10. </td>
  11. <td>
  12. <span class="glyphicon glyphicon-phone"></span>
  13. {{patient.contact}}
  14. </td>
  15. <td>
  16. <span class="glyphicon glyphicon-calendar"></span>
  17. {{patient.date}}
  18. </td>
  19. <td>
  20.  
  21. <span style="height:55px; font-size:20px; margin-left:20px; margin-right:20px; valign="middle";>
  22.  
  23.  
  24. <button type="button" class="btn btn-default" ng-click="delete(patient._id)">
  25. <span class="glyphicon glyphicon-remove"></span> Remove
  26. </button>
  27. <button type="button" class="btn btn-default" ng-click="update(patient)">
  28. <span class="glyphicon glyphicon-edit"></span> Edit
  29. </button>
  30. </span>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. <ul>
  36. <li>
  37. <input type="tel" id="contact" ng-model="current.contact" value="{{current.contact}}" />
  38. <input type="text" id="address" ng-model="current.address" value="{{current.address}}" />
  39. </li>
  40. <li>
  41. <button ng-click= "save(current._id)">Save</button>
  42. </li>
  43. </ul>
  44. </div>
Advertisement
Add Comment
Please, Sign In to add comment