QwikClock is an employee time tracking app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

messages.php 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. define("MESSAGES", [
  6. "invalid_parameters" => [
  7. "string" => "invalid parameters",
  8. "type" => "danger"
  9. ],
  10. "account_state_error" => [
  11. "string" => "account state error",
  12. "type" => "danger"
  13. ],
  14. "404_error" => [
  15. "string" => "page not found",
  16. "type" => "info"
  17. ],
  18. "already_in" => [
  19. "string" => "already punched in",
  20. "type" => "danger"
  21. ],
  22. "already_out" => [
  23. "string" => "already punched out",
  24. "type" => "danger"
  25. ],
  26. "punched_in" => [
  27. "string" => "punched in",
  28. "type" => "success"
  29. ],
  30. "punched_out" => [
  31. "string" => "punched out",
  32. "type" => "success"
  33. ],
  34. "no_permission" => [
  35. "string" => "missing permission",
  36. "type" => "danger"
  37. ],
  38. "shift_added" => [
  39. "string" => "shift added",
  40. "type" => "success"
  41. ],
  42. "invalid_time" => [
  43. "string" => "invalid time format",
  44. "type" => "danger"
  45. ],
  46. "shift_saved" => [
  47. "string" => "shift saved",
  48. "type" => "success"
  49. ],
  50. "shift_deleted" => [
  51. "string" => "shift deleted",
  52. "type" => "success"
  53. ],
  54. "shift_has_users" => [
  55. "string" => "shift has users",
  56. "type" => "danger"
  57. ],
  58. "shift_name_used" => [
  59. "string" => "shift name used",
  60. "type" => "danger"
  61. ],
  62. "invalid_shiftid" => [
  63. "string" => "invalid shiftid",
  64. "type" => "danger"
  65. ],
  66. "you_arent_my_supervisor" => [
  67. "string" => "you are not the manager of user",
  68. "type" => "danger"
  69. ],
  70. "shift_assigned" => [
  71. "string" => "shift assigned",
  72. "type" => "success"
  73. ],
  74. "shift_assigned_removefailed" => [
  75. "string" => "shift assigned but removal failed",
  76. "type" => "info"
  77. ],
  78. "not_assigned_to_work" => [
  79. "string" => "not assigned to work now",
  80. "type" => "danger"
  81. ],
  82. "invalid_user" => [
  83. "string" => "invalid user",
  84. "type" => "danger"
  85. ],
  86. "no_editself_permission" => [
  87. "string" => "no editself permission",
  88. "type" => "danger"
  89. ],
  90. "in_before_out" => [
  91. "string" => "in must be before out",
  92. "type" => "danger"
  93. ],
  94. "punch_saved" => [
  95. "string" => "punch saved",
  96. "type" => "success"
  97. ],
  98. "invalid_datetime" => [
  99. "string" => "invalid datetime",
  100. "type" => "danger"
  101. ],
  102. "punch_deleted" => [
  103. "string" => "punch deleted",
  104. "type" => "success"
  105. ],
  106. "job_changed" => [
  107. "string" => "job changed",
  108. "type" => "success"
  109. ],
  110. "job_invalid" => [
  111. "string" => "invalid job",
  112. "type" => "danger"
  113. ],
  114. "job_added" => [
  115. "string" => "job added",
  116. "type" => "success"
  117. ],
  118. "job_saved" => [
  119. "string" => "job saved",
  120. "type" => "success"
  121. ],
  122. "job_deleted" => [
  123. "string" => "job deleted",
  124. "type" => "success"
  125. ],
  126. "job_name_used" => [
  127. "string" => "job name in use",
  128. "type" => "danger"
  129. ],
  130. "invalid_jobid" => [
  131. "string" => "invalid job",
  132. "type" => "danger"
  133. ],
  134. ]);