Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.90 KB | None | 0 0
  1.  
  2. @model Client_Service.Models.ModelCallDetails
  3.  
  4. @{
  5. ViewBag.Title = "EditCall";
  6. }
  7.  
  8. <style>
  9. input[type="file"] {
  10. display: none;
  11. }
  12.  
  13. .custom-file-upload {
  14. border: 1px solid #ccc;
  15. display: inline-block;
  16. padding: 6px 12px;
  17. cursor: pointer;
  18. background-color: white;
  19. }
  20. </style>
  21.  
  22. <br />
  23. <h2>Reply</h2>
  24. <style>
  25. body {
  26. overflow-y: scroll;
  27. }
  28. </style>
  29. @*This maintains scroll position for affected service selection*@
  30. <script>
  31.  
  32. $(window).scroll(function () {
  33. sessionStorage.scrollTop = $(this).scrollTop();
  34. });
  35.  
  36. $(document).ready(function () {
  37. if (sessionStorage.scrollTop != "undefined") {
  38. $(window).scrollTop(sessionStorage.scrollTop);
  39. }
  40. });
  41. </script>
  42.  
  43. <hr />
  44. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  45. <h4>@ViewBag.CallCentreHeader</h4>
  46. <hr />
  47.  
  48.  
  49. <div class="form-horizontal">
  50. @{ TempData["call_id"] = ViewBag.CallID;}
  51.  
  52. @using (Html.BeginForm("EditCall", "CallDetails", FormMethod.Post, new { enctype = "multipart/form-data" }))
  53. {
  54. @Html.AntiForgeryToken()
  55.  
  56. bool notGeneris = true;
  57. if (ViewBag.OrgID == "generis")
  58. {
  59. notGeneris = false;
  60. }
  61.  
  62. // <form action="" method="post">
  63.  
  64. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  65.  
  66. //failed email
  67. @Html.Raw(ViewBag.FailReply)
  68.  
  69. <div class="form-group">
  70. @Html.Label("Customer Ref", htmlAttributes: new { @class = "control-label col-xs-2 col-sm-2 col-md-2 col-lg-2" })
  71. @if (!notGeneris)
  72. {
  73. <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
  74. <input class="form-control" name="Customer_Ref" type="text" value="@ViewBag.Customer_Ref" />
  75. @*@Html.EditorFor(model => model.Customer_Ref, new { htmlAttributes = new { @class = "form-control", @readonly = true } })*@
  76. @Html.ValidationMessageFor(model => model.Customer_Ref, "", new { @class = "text-danger" })
  77. </div>
  78. }
  79. else
  80. {
  81. <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
  82. <input class="form-control" name="Customer_Ref" type="text" value="@ViewBag.Customer_Ref" readonly />
  83.  
  84. @*@Html.EditorFor(model => model.Customer_Ref, new { htmlAttributes = new { @class = "form-control" } })*@
  85. @Html.ValidationMessageFor(model => model.Customer_Ref, "", new { @class = "text-danger" })
  86. </div>
  87. }
  88. </div>
  89.  
  90.  
  91. <hr />
  92. <h4>Contact Details</h4>
  93. <hr />
  94.  
  95.  
  96. <div class="form-group">
  97. <div class="col-xs-6 col-sm-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 col-lg-6">
  98.  
  99. <div class="form-group">
  100. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Reported By</b></span>
  101. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  102. <input class="form-control" name="Reported_By" type="text" value="@ViewBag.Reported_By" readonly />
  103. @* @Html.EditorFor(model => model.Reported_By, new { htmlAttributes = new { @class = "form-control", @readonly = true } })*@
  104. @Html.ValidationMessageFor(model => model.Reported_By, "", new { @class = "text-danger" })
  105. </div>
  106. </div>
  107.  
  108. <div class="form-group">
  109. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Organisation Name</b></span>
  110. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  111. <input class="form-control" name="Organisation_Name" type="text" value="@ViewBag.Organisation_Name" readonly />
  112. @* @Html.EditorFor(model => model.Organisation_Name, new { htmlAttributes = new { @class = "form-control", @readonly = true } })*@
  113. @Html.ValidationMessageFor(model => model.Organisation_Name, "", new { @class = "text-danger" })
  114. </div>
  115. </div>
  116.  
  117. </div>
  118. <div class="col-xs-6 col-sm-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 col-lg-6">
  119.  
  120. <div class="form-group">
  121. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Phone Number</b></span>
  122. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  123. <input class="form-control" name="Phone_Number" type="text" value="@ViewBag.Phone_Number" readonly />
  124. @*@Html.EditorFor(model => model.Phone_Number, new { htmlAttributes = new { @class = "form-control", @readonly = true } })*@
  125. @Html.ValidationMessageFor(model => model.Phone_Number, "", new { @class = "text-danger" })
  126. </div>
  127. </div>
  128.  
  129. <div class="form-group">
  130. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Email Address</b></span>
  131. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  132. <input class="form-control" name="Email_Address" type="text" value="@ViewBag.Email_Address" readonly />
  133. @* @Html.EditorFor(model => model.Email_Address, new { htmlAttributes = new { @class = "form-control", @readonly = true } })*@
  134. @Html.ValidationMessageFor(model => model.Email_Address, "", new { @class = "text-danger" })
  135. </div>
  136. </div>
  137.  
  138. </div>
  139. </div>
  140.  
  141. <hr />
  142. <h4>Call Details</h4>
  143. <hr />
  144.  
  145. <div class="form-group">
  146. <span class="control-label col-xs-2 col-sm-2 col-md-2 col-lg-2"><b>Call Description</b></span>
  147. <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
  148. <textarea name="Call_Desc" class="form-control" style="height: 200px; width: 91.5%; min-width: 91.5%; max-width: 91.5%;" id="comment" readonly>@ViewBag.Call_Desc</textarea>
  149. @Html.ValidationMessageFor(model => model.Call_Desc, "", new { @class = "text-danger" })
  150. </div>
  151. </div>
  152.  
  153. <div class="form-group">
  154. <div class="col-xs-6 col-sm-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 col-lg-6">
  155.  
  156. <div class="form-group">
  157. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Raised Version</b></span>
  158. @if (!notGeneris)
  159. {
  160. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  161. <input class="form-control" name="Raised_Version" type="text" value="@ViewBag.Raised_Version" />
  162. @* @Html.EditorFor(model => model.Raised_Version, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })*@
  163. @Html.ValidationMessageFor(model => model.Raised_Version, "", new { @class = "text-danger" })
  164. </div>
  165. }
  166. else
  167. {
  168. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  169. <input class="form-control" name="Raised_Version" type="text" value="@ViewBag.Raised_Version" readonly />
  170.  
  171. @* @Html.EditorFor(model => model.Raised_Version, new { htmlAttributes = new { @class = "form-control" } })*@
  172. @Html.ValidationMessageFor(model => model.Raised_Version, "", new { @class = "text-danger" })
  173. </div>
  174. }
  175. </div>
  176.  
  177. <div class="form-group">
  178. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Fixed Version</b></span>
  179. @if (!notGeneris)
  180. {
  181. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  182. <input class="form-control" name="Fixed_Version" type="text" value="@ViewBag.Fixed_Version" />
  183. @* @Html.EditorFor(model => model.Fixed_Version, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })*@
  184. @Html.ValidationMessageFor(model => model.Fixed_Version, "", new { @class = "text-danger" })
  185. </div>
  186. }
  187. else
  188. {
  189. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  190. <input class="form-control" name="Fixed_Version" type="text" value="@ViewBag.Fixed_Version" readonly />
  191.  
  192. @* @Html.EditorFor(model => model.Fixed_Version, new { htmlAttributes = new { @class = "form-control" } })*@
  193. @Html.ValidationMessageFor(model => model.Fixed_Version, "", new { @class = "text-danger" })
  194. </div>
  195. }
  196. </div>
  197.  
  198. <div class="form-group">
  199. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Bespoke</b></span>
  200. @if (!notGeneris)
  201. {
  202. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  203. @*<div class="checkbox">
  204. <input name="Bespoke" type="checkbox" value="@ViewBag.Bespoke" />*@
  205. @Html.CheckBoxFor(model => model.Bespoke)
  206. @Html.ValidationMessageFor(model => model.Bespoke, "", new { @class = "text-danger" })
  207. @*</div>*@
  208. </div>
  209. }
  210. else
  211. {
  212. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  213. <div class="checkbox">
  214. <input name="Bespoke" type="checkbox" value="@ViewBag.Bespoke" disabled />
  215.  
  216. @*@Html.CheckBoxFor(model => model.Bespoke)*@
  217. @Html.ValidationMessageFor(model => model.Bespoke, "", new { @class = "text-danger" })
  218. </div>
  219. </div>
  220. }
  221. </div>
  222.  
  223. <div class="form-group">
  224. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Call Opened</b></span>
  225. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  226. <input class="form-control" name="Call_Opened" type="text" value="@ViewBag.Call_Opened" readonly />
  227. @* @Html.EditorFor(model => model.Call_Opened, new { htmlAttributes = new { @class = "form-control", @readonly = true } })*@
  228. @Html.ValidationMessageFor(model => model.Call_Opened, "", new { @class = "text-danger" })
  229. </div>
  230. </div>
  231.  
  232. <div class="form-group">
  233. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Call Type </b></span>
  234. @if (notGeneris)
  235. {
  236. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  237. <input class="form-control" name="Call_Type" type="text" value="@ViewBag.Call_Type" readonly />
  238. @* @Html.EditorFor(model => model.Call_Type, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })*@
  239. @Html.ValidationMessageFor(model => model.Call_Type, "", new { @class = "text-danger" })
  240. </div>
  241. }
  242. else
  243. {
  244. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  245. @Html.DropDownList("Call_Type", ViewBag.CallTypeList as SelectList, new { @class = "form-control" })
  246. @Html.ValidationMessageFor(model => model.Call_Type, "", new { @class = "text-danger" })
  247. </div>
  248. }
  249. </div>
  250.  
  251. <div class="form-group">
  252. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Status</b></span>
  253. @if (notGeneris)
  254. {
  255. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  256. <input class="form-control" name="Status" type="text" value="@ViewBag.Status" readonly />
  257. @* @Html.EditorFor(model => model.Status, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })*@
  258. @Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" })
  259. </div>
  260. }
  261. else
  262. {
  263. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  264. @Html.DropDownList("Status", ViewBag.StatusList as SelectList, new { @class = "form-control" })
  265. @Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" })
  266. </div>
  267. }
  268. </div>
  269.  
  270. </div>
  271.  
  272.  
  273. <div class="col-xs-6 col-sm-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 col-lg-6">
  274.  
  275. <div class="form-group">
  276. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Affected Service</b></span>
  277. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  278. @if (!notGeneris)
  279. {
  280. <select class="form-control" name="AffectedService" style="display: inline;">
  281. @if (ViewBag.AffectedService != null)
  282. {
  283. <option style="display: none;" selected>@ViewBag.AffectedService</option>}
  284. <option style="display: none;" value="Unknown">Unknown</option>
  285. }
  286. @foreach (var item in ViewBag.AffectedServiceList)
  287. {
  288. <option value="@item">@item</option>
  289. }
  290. </select>
  291. }
  292. else
  293. {
  294. <input name="AffectedService" type="text" value="@ViewBag.AffectedService" class="form-control" readonly="readonly" />
  295. }
  296. @if (!notGeneris)
  297. {
  298. <button type="submit" name="submit" class="btn btn-default" value="Find Specific Area"><span class="glyphicon glyphicon-filter"></span></button>
  299. }
  300. @Html.ValidationMessageFor(model => model.AffectedService, "", new { @class = "text-danger" })
  301. </div>
  302. </div>
  303. @if (ViewBag.Filter1 == "true" || ViewBag.Filter2 == "true" || ViewBag.Filter3 == "true")
  304. {
  305. <div class="form-group">
  306. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Specific Area</b></span>
  307. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  308. @*@Html.EditorFor(model => model.SpecificArea, new { htmlAttributes = new { @class = "form-control", @Readonly = "readonly" } })*@
  309. @if (ViewBag.Filter2 == "true" || ViewBag.Filter3 == "true")
  310. {<input name="AffectedService2" type="text" class="form-control" value="@Model.AffectedService2" readonly />}
  311. else
  312. {
  313. if (Model.Filter1.Count() != 0)
  314. {
  315. <select class="form-control" name="AffectedService2" style="display: inline;">
  316. @if (Model.AffectedService2 != null)
  317. {
  318. <option style="display: none;" selected>@Model.AffectedService2</option>}
  319. <option value="">- Select Specific Area -</option>
  320. @foreach (var item in Model.Filter1)
  321. {
  322. <option value="@item.AffectedServiceName">@item.AffectedServiceName</option>
  323. }
  324. </select>
  325. <button type="submit" name="submit" class="btn btn-default" value="Filter Specific Area"><span class="glyphicon glyphicon-filter"></span></button>
  326. }
  327. else
  328. {
  329. if (ViewBag.Filter1 == "true")
  330. {
  331. <p style="color: cornflowerblue; position: relative; top: 6px;">No specific area.</p>
  332. }
  333. }
  334. }
  335. @Html.ValidationMessageFor(model => model.SpecificArea, "", new { @class = "text-danger" })
  336. </div>
  337. </div>
  338. }
  339.  
  340.  
  341. @if (ViewBag.Filter2 == "true" || ViewBag.Filter3 == "true")
  342. {
  343. <div class="form-group">
  344. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Sub Area 1</b></span>
  345. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  346. @*@Html.EditorFor(model => model.SpecificArea, new { htmlAttributes = new { @class = "form-control", @Readonly = "readonly" } })*@
  347. @if (ViewBag.Filter3 == "true")
  348. {<input name="AffectedService3" type="text" class="form-control" value="@Model.AffectedService3" readonly />}
  349. else
  350. {
  351. if (Model.Filter2.Count() != 0)
  352. {
  353. <select class="form-control" name="AffectedService3" style="display: inline;">
  354. @if (Model.AffectedService3 != null)
  355. {
  356. <option style="display: none;" selected>@Model.AffectedService3</option>}
  357. <option value="">- Select Specific Area -</option>
  358. @foreach (var item in Model.Filter2)
  359. {
  360. <option value="@item.AffectedServiceName">@item.AffectedServiceName</option>
  361. }
  362. </select>
  363. <button type="submit" name="submit" class="btn btn-default" value="Filter Specific Area 2"><span class="glyphicon glyphicon-filter"></span></button>
  364. }
  365. else
  366. {
  367. if (ViewBag.Filter2 == "true")
  368. {
  369. <p style="color: cornflowerblue; position: relative; top: 6px;">No sub area.</p>
  370. }
  371. }
  372. }
  373. @Html.ValidationMessageFor(model => model.SpecificArea, "", new { @class = "text-danger" })
  374. </div>
  375. </div>
  376. }
  377.  
  378. @if (ViewBag.Filter3 == "true")
  379. {
  380. <div class="form-group">
  381. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Sub Area 2</b></span>
  382. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  383. @if (Model.Filter3.Count() != 0)
  384. {
  385. @*@Html.EditorFor(model => model.SpecificArea, new { htmlAttributes = new { @class = "form-control", @Readonly = "readonly" } })*@
  386. <select class="form-control" name="AffectedService4" style="display: inline;">
  387. @if (Model.AffectedService4 != null)
  388. {
  389. <option style="display: none;" selected>@Model.AffectedService4</option>}
  390. <option value="">- Select Specific Area -</option>
  391. @foreach (var item in Model.Filter3)
  392. {
  393. <option value="@item.AffectedServiceName">@item.AffectedServiceName</option>
  394. }
  395. </select>
  396. }
  397. else
  398. {
  399. if (ViewBag.Filter3 == "true")
  400. {
  401. <p style="color: cornflowerblue; position: relative; top: 6px;">No sub area.</p>
  402. }
  403. }
  404. @Html.ValidationMessageFor(model => model.SpecificArea, "", new { @class = "text-danger" })
  405. </div>
  406. </div>
  407. }
  408.  
  409.  
  410.  
  411. @*<div class="form-group">
  412. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Specific Area</b></span>
  413. @if (notGeneris)
  414. {
  415. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  416. <input class="form-control" name="CallType" type="text" value="@ViewBag.Spec_Area" readonly />
  417. @* @Html.EditorFor(model => model.Spec_Area, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  418. @Html.ValidationMessageFor(model => model.Spec_Area, "", new { @class = "text-danger" })
  419. </div>
  420. }
  421.  
  422. </div>*@
  423.  
  424. <div class="form-group">
  425. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Severity</b></span>
  426. @if (notGeneris)
  427. {
  428. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  429. <input class="form-control" name="Severity" type="text" value="@ViewBag.Severity" readonly />
  430. @* @Html.EditorFor(model => model.Severity, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })*@
  431. @Html.ValidationMessageFor(model => model.Severity, "", new { @class = "text-danger" })
  432. </div>
  433. }
  434. else
  435. {
  436. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  437. @Html.DropDownList("Severity", ViewBag.SeverityList as SelectList, new { @class = "form-control" })
  438. @Html.ValidationMessageFor(model => model.Severity, "", new { @class = "text-danger" })
  439. </div>
  440. }
  441. </div>
  442.  
  443. <div class="form-group">
  444. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Category</b></span>
  445. @if (notGeneris)
  446. {
  447. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  448. <input class="form-control" name="Category" type="text" value="@ViewBag.Category" readonly />
  449. @* @Html.EditorFor(model => model.Category, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })*@
  450. @Html.ValidationMessageFor(model => model.Category, "", new { @class = "text-danger" })
  451. </div>
  452. }
  453. else
  454. {
  455. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  456. @Html.DropDownList("Category", ViewBag.CategoryList as SelectList, new { @class = "form-control" })
  457. @Html.ValidationMessageFor(model => model.Category, "", new { @class = "text-danger" })
  458. </div>
  459. }
  460. </div>
  461.  
  462. <div class="form-group">
  463. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Technician</b></span>
  464. @if (notGeneris)
  465. {
  466. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  467. <input class="form-control" name="Technician" type="text" value="@ViewBag.Technician" readonly />
  468. @*@Html.EditorFor(model => model.Technician, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })*@
  469. @Html.ValidationMessageFor(model => model.Technician, "", new { @class = "text-danger" })
  470. </div>
  471. }
  472. else
  473. {
  474. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  475. @Html.DropDownList("Technician", ViewBag.TechnicianList as SelectList, new { @class = "form-control" })
  476. @Html.ValidationMessageFor(model => model.Technician, "", new { @class = "text-danger" })
  477. @Html.Raw(ViewBag.EmptyTechnician)
  478. </div>
  479. }
  480. </div>
  481. @if (!notGeneris)
  482. {
  483. <div class="form-group">
  484. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Time Spent</b></span>
  485. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  486. @Html.EditorFor(model => model.Time_Spent, new { htmlAttributes = new { @class = "form-control", @min = "0" } })
  487. <p style="color: green"> * Enter time in minutes</p>
  488. @*@Html.ValidationMessageFor(model => model.Time_Spent, "", new { @class = "text-danger" })*@
  489. @Html.Raw(ViewBag.EmptyTime)
  490. </div>
  491. </div>
  492. }
  493. <div class="form-group">
  494. <span class="control-label col-xs-4 col-sm-4 col-xs-4 col-sm-4 col-md-4 col-lg-4 col-lg-4"><b>Attachment(s)</b></span>
  495. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  496. <table class="table">
  497. <tr id="Att1" class="hiddenRow">
  498. <td>
  499. @*<input id="Attachment1" name="Attachment1" type="file">*@
  500. <input type="text" id="lbl-Attachment1" style=" background-color: aliceblue">
  501. <label for="Attachment1" class="custom-file-upload">
  502. Browse...
  503. </label>
  504. <input id="Attachment1" name="Attachment1" type="file" onchange="document.getElementById('lbl-Attachment1').value = document.getElementById('Attachment1').value" />
  505. </td>
  506. </tr>
  507. <tr id="Att2">
  508. <td class="hiddenRow">
  509. <input type="text" id="lbl-Attachment2" style=" background-color: aliceblue">
  510. <label for="Attachment2" class="custom-file-upload">
  511. Browse...
  512. </label>
  513. <input id="Attachment2" name="Attachment2" type="file" onchange="document.getElementById('lbl-Attachment2').value = document.getElementById('Attachment2').value" />
  514. </td>
  515. </tr>
  516. <tr id="Att3">
  517. <td class="hiddenRow">
  518. <input type="text" id="lbl-Attachment3" style=" background-color: aliceblue">
  519. <label for="Attachment3" class="custom-file-upload">
  520. Browse...
  521. </label>
  522. <input id="Attachment3" name="Attachment3" type="file" onchange="document.getElementById('lbl-Attachment3').value = document.getElementById('Attachment3').value" />
  523.  
  524. </td>
  525. </tr>
  526. <tr>
  527. <td>
  528. <button style="position: relative; left: -20px;" class="btn btn-link" type="submit" name="submit" value="removeAttachments"><i>Remove attachments</i></button>
  529. </td>
  530. </tr>
  531.  
  532. </table>
  533. </div>
  534. </div>
  535.  
  536.  
  537. </div>
  538.  
  539. </div>
  540.  
  541. <div class="form-group">
  542. <span class="control-label col-xs-2 col-sm-2 col-md-2 col-lg-2"><b>Reply</b></span>
  543. <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
  544. @* @Html.TextAreaFor(model => model.Reply_Content, new { htmlAttributes = new { @class = "form-control", @style = "width: 91.5%; min-width: 91.5%; max-height: 91.5%; height: 200px;" } })*@
  545. <textarea name="Reply_Content" class="form-control" style="width: 91.5%; min-width: 91.5%; max-height: 91.5%; height: 200px;" id="comment">@Model.Reply_Content</textarea>
  546. @Html.Raw(ViewBag.EmptyReply)
  547. </div>
  548. </div>
  549.  
  550. if (!notGeneris)
  551. {
  552. <div class="form-group">
  553. <span class="control-label col-xs-2 col-sm-2 col-md-2 col-lg-2"><b>Additional Comments</b></span>
  554. <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
  555. <textarea name="Additional_Comments" class="form-control" style="width: 91.5%; min-width: 91.5%; max-height: 91.5%; height: 200px; background-color:lemonchiffon;" id="comment">@Model.Additional_Comments</textarea>
  556. @Html.ValidationMessageFor(model => model.Additional_Comments, "", new { @class = "text-danger" })
  557. </div>
  558. </div>
  559. }
  560.  
  561. <div class="form-group">
  562. <div class="col-md-offset-2 col-md-9">
  563.  
  564. <input type="submit" name="submit" value="Cancel" class="btn btn-default" />
  565.  
  566.  
  567. <input type="submit" value="Save" class="btn btn-default" name="submit" style="float: right; position: relative; right: -18px;" />
  568. @if (!notGeneris)
  569. {
  570. <input type="submit" value="Email User" name="submit" class="btn btn-default" style="float: right; position: relative; right: -13px;" />
  571. }
  572.  
  573.  
  574. </div>
  575. </div>
  576.  
  577. <br /><br />
  578.  
  579. }
  580.  
  581. </div>
  582.  
  583. @section Scripts {
  584. @Scripts.Render("~/bundles/jqueryval")
  585. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement