modal_assign_task1.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <!-- This modal is included with project_details.blade.php page -->
  2. <!-- Modal task details -->
  3. <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  4. <div class="modal-dialog modal-lg">
  5. <div class="modal-content">
  6. <div class="modal-header">
  7. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  8. <h4 class="modal-title" id="gridSystemModalLabel">Assign Task</h4>
  9. </div>
  10. <div class="modal-body">
  11. <div class="row">
  12. <div class="col-md-7">
  13. <b>Assinged users:</b>
  14. <div class="assinged-users">
  15. </div>
  16. </div>
  17. <div class="col-md-5">
  18. <input type="hidden" name="id_task_id" id="id_task_id" value="">
  19. <div class="form-group">
  20. <label for="Add new Project">
  21. User
  22. </label>
  23. <select name="user_id" id="id_user_id" class="form-control cls-proj-user">
  24. </select>
  25. </div>
  26. <div class="form-group">
  27. <label for="Add new Project">
  28. Estimated Time
  29. </label>
  30. <br>
  31. {{-- <input type="text" id="id_estimated_time" name="estimated_time" class="form-control"> --}}
  32. Hours:
  33. <select name="" class="id_estimated_time_hours">
  34. @for($i=0;$i<=20;$i++)
  35. <option value="{{$i}}">{{$i}}</option>
  36. @endfor
  37. </select>
  38. Min:
  39. <select name="" class="id_estimated_time_min">
  40. @for($i=0;$i<=59;$i=$i+5)
  41. <option value="{{$i}}">{{$i}}</option>
  42. @endfor
  43. </select>
  44. </div>
  45. <div class="form-group">
  46. <button class="btn btn-primary assign-task-user">Assign</button>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="row" style="margin-top: 50px;">
  51. <div class="col-md-12">
  52. <div style="margin-bottom:10px;">
  53. <b>Details:</b> <span class="cls-task-details"></span>
  54. </div>
  55. <!-- Add Comments ... -->
  56. <textarea class="form-control" name="comment_txt" id="comment_txt" cols="" rows="2" placeholder="Post comment here"></textarea>
  57. <button class="btn btn-success add-task-comment" style="margin-top:5px;">Post</button>
  58. <button class="btn btn-success add-task-comment-doc" style="margin-top:5px;" data-toggle="modal" data-target="#add_doc_task_modal">Attach Documnet</button>
  59. <br><br>
  60. <b>Comments:</b><br>
  61. <div class="comments-cls" style="height:400px;overflow:scroll;">
  62. </div>
  63. </div>
  64. </div>
  65. <div class="row">
  66. <div class="col-md-12">
  67. <br/>
  68. <b>Activity Logs:</b><br>
  69. <div class="show-logs" style="height:150px;overflow:scroll;">
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="modal-footer">
  75. <div class="row">
  76. <div class="col-md-10">
  77. Change status to:
  78. <button data-id='2' class="btn btn-primary cls-change-created btn-xs">In-process</button>
  79. <span class="show-change-btn">
  80. <button data-id='3' class="btn btn-primary cls-change-created btn-xs">Completed</button>
  81. <button data-id='4' class="btn btn-primary cls-change-created btn-xs">Checking</button>
  82. <button data-id='5' class="btn btn-primary cls-change-created btn-xs">Bug-fixing</button>
  83. <button data-id='6' class="btn btn-primary cls-change-created btn-xs">Done</button>
  84. </span>
  85. </div>
  86. <div class="col-md-2">
  87. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <!-- Task details finished -->
  95. <!-- Modal Add Task -->
  96. {{-- <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel">
  97. <div class="modal-dialog" role="document">
  98. <div class="modal-content">
  99. <div class="modal-header">
  100. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  101. <h4 class="modal-title" id="gridSystemModalLabel">ADD TASK</h4>
  102. </div>
  103. <div class="modal-body">
  104. <form role="form" action="{{url('user/add_task')}}" method="POST">
  105. {!! csrf_field() !!}
  106. <input type="hidden" name="proj_id" value="{{$project_id}}">
  107. <div class="form-group">
  108. <label for="Add new Project">
  109. New Task
  110. </label>
  111. <input name="name" class="form-control" id="new-project" placeholder="Add new task" required="" type="new-project">
  112. </input>
  113. </div>
  114. <div class="form-group">
  115. <label for="Add new Project">
  116. Type
  117. </label>
  118. <select name="task_type" id="" class="form-control">
  119. <option value="2">Normal</option>
  120. <option value="1">Regular</option>
  121. </select>
  122. </div>
  123. <div class="form-group">
  124. <label for="Add new Project">
  125. Description
  126. </label>
  127. <textarea name="description" class="form-control" id="editor1" placeholder="Description" rows="5">
  128. </textarea>
  129. </div>
  130. <div class="form-group">
  131. <label for="Add new Project">
  132. Estimated Time
  133. </label>
  134. <br> --}}
  135. {{-- <input name="estimated_time" class="form-control" id="new-project" required="" placeholder="Estimated time in hour" type="new-project"> --}}
  136. {{-- Hours:
  137. <select name="estimated_time_hour" id="id_estimated_time_hours">
  138. @for($i=0;$i<=20;$i++)
  139. <option value="{{$i}}">{{$i}}</option>
  140. @endfor
  141. </select>
  142. Min:
  143. <select name="estimated_time_min" id="id_estimated_time_min">
  144. @for($i=0;$i<=59;$i=$i+5)
  145. <option value="{{$i}}">{{$i}}</option>
  146. @endfor
  147. </select>
  148. </input>
  149. </div>
  150. </div>
  151. <div class="modal-footer">
  152. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  153. <button type="submit" class="btn btn-primary">Add</button>
  154. </div>
  155. </form>
  156. </div>
  157. </div>
  158. </div> --}}
  159. <!-- modal add task finished -->
  160. <!-- Edit comment MODAL -->
  161. <div class="modal fade bs-example-modal-sm modal-edit" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
  162. <div class="modal-dialog modal-sm">
  163. <div class="modal-content">
  164. <div class="modal-header">
  165. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  166. <h4 class="modal-title" id="gridSystemModalLabel">Edit comment</h4>
  167. </div>
  168. <div class="modal-body">
  169. <input type="hidden" class="update-comment-id" value="">
  170. <textarea name="" class="update-comment form-control" id="" cols="2" rows=""></textarea>
  171. </div>
  172. <div class="modal-footer">
  173. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  174. <button type="button" class="btn btn-primary save-updated-comment">Update</button>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. <!-- Comment model finished -->
  180. <!-- MODAL ATTATCHMENTSSS start -->
  181. <div class="modal fade" tabindex="-1" id="att_modal" role="dialog">
  182. <div class="modal-dialog" role="document">
  183. <div class="modal-content">
  184. <div class="modal-header">
  185. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  186. <h4 class="modal-title">Attachment</h4>
  187. </div>
  188. <div class="modal-body">
  189. <form action="{{url('user/add_file')}}" class="dropzone" id="my-awesome-dropzone">
  190. {!! csrf_field() !!}
  191. <input type="hidden" name="proj_id" class="cls-proj-id" value="">
  192. </form>
  193. </div>
  194. <div class="modal-footer">
  195. <button type="button" class="btn btn-default attatch-close-btn" data-dismiss="modal">Close</button>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <!-- Proj attatchment finished -->
  201. <!-- Add document as comment for task -->
  202. <div class="modal fade" tabindex="-1" id="add_doc_task_modal" role="dialog">
  203. <div class="modal-dialog" role="document">
  204. <div class="modal-content">
  205. <div class="modal-header">
  206. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  207. <h4 class="modal-title">Task Attachment</h4>
  208. </div>
  209. <div class="modal-body">
  210. <form action="{{url('user/add_task_doc')}}" class="dropzone" id="my-awesome-dropzone">
  211. {!! csrf_field() !!}
  212. <input type="hidden" name="task_id" class="cls-task-doc-id" value="">
  213. </form>
  214. </div>
  215. <div class="modal-footer">
  216. <button type="button" class="btn btn-default attatchment-doc-comment" data-dismiss="modal">Close</button>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. <!-- document add finished