Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <form>
  2. <div class="row">
  3. <div class="form-group col-lg-12">
  4. <label for="requestType">What type of request would you like to create?
  5. <span class="required">*</span>
  6. </label>
  7. <select class="form-control" name="requestType" ng-model="requestType" ng-change="new_form_select()">
  8. <option value="0">Please Select ...</option>
  9. <option value="1">IT Web Task</option>
  10. <option value="2">SAP Task</option>
  11. <option value="3">Email Campaign</option>
  12. <option value="4">Third Party Suppression</option>
  13. <option value="5">Report Request</option>
  14. <option value="6">Other / I'm Not Sure</option>
  15. </select>
  16. </div>
  17. </div>
  18. </form>
  19.  
  20. <select class="form-control"
  21. name="requestType"
  22. ng-model="requestType"
  23. ng-change="new_form_select()">
  24.  
  25. <option value="0">Please Select ...</option>
  26. <option value="webtask">IT Web Task</option>
  27. <option value="saptask">SAP Task</option>
  28. ....
  29. </select>
  30.  
  31. $scope.new_form_select = function() {
  32. if(requestType) {
  33. location.href = '#/' + requestType;
  34. }
  35. }
  36.  
  37. .state('webtask', {
  38. url: "/webtask",
  39. templateUrl: "templates/webtask.html",
  40. controller: function() {
  41.  
  42. }
  43. })
  44. .state('saptask', {
  45. url: "/saptask",
  46. templateUrl: "templates/saptask.html",
  47. controller: function() {
  48.  
  49. }
  50. })
  51. // you get the idea..
  52.  
  53. <body>
  54. <!-- Your select could be here -->
  55.  
  56. <!-- The selected template would appear here -->
  57. <div ui-view></div>
  58. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement