PageRenderTime 72ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 1ms

/data/template/template/en/default/global/user-error.html.tmpl

https://github.com/andywiens/Bugzilla-Custom-CAS
Go Template | 6509 lines | 5270 code | 1239 blank | 0 comment | 0 complexity | 40e4fe2bc2fdca4d411c84c6755469e7 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. use utf8;
  2. #------------------------------------------------------------------------
  3. # Compiled template generated by the Template Toolkit version 2.22
  4. #------------------------------------------------------------------------
  5. Template::Document->new({
  6. METADATA => {
  7. 'modtime' => '1297790525',
  8. 'name' => 'global/user-error.html.tmpl',
  9. },
  10. BLOCK => sub {
  11. my $context = shift || die "template sub called without context\n";
  12. my $stash = $context->stash;
  13. my $output = '';
  14. my $_tt_error;
  15. eval { BLOCK: {
  16. $output .= "\n\n";
  17. $output .= "\n\n";
  18. $output .= "\n";
  19. #line 42 "template/en/default/global/user-error.html.tmpl"
  20. $output .= $context->process('global/variables.none.tmpl');
  21. $output .= "\n";
  22. #line 44 "template/en/default/global/user-error.html.tmpl"
  23. $output .= $context->process('global/field-descs.none.tmpl');
  24. $output .= "\n";
  25. #line 46 "template/en/default/global/user-error.html.tmpl"
  26. $stash->set('title', 'Error', 1);
  27. $output .= "\n";
  28. #line 1705 "template/en/default/global/user-error.html.tmpl"
  29. # CAPTURE
  30. $stash->set('error_message', do {
  31. my $output = '';
  32. #line 1704 "template/en/default/global/user-error.html.tmpl"
  33. if ($stash->get('error') eq 'account_creation_disabled') {
  34. #line 50 "template/en/default/global/user-error.html.tmpl"
  35. $stash->set('title', 'Account Creation Disabled');
  36. $output .= "\n User account creation has been disabled.\n <hr>\n New accounts must be created by an administrator. The\n maintainer is ";
  37. #line 54 "template/en/default/global/user-error.html.tmpl"
  38. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  39. $output .= ".\n";
  40. }
  41. elsif ($stash->get('error') eq 'account_creation_restricted') {
  42. #line 57 "template/en/default/global/user-error.html.tmpl"
  43. $stash->set('title', 'Account Creation Restricted');
  44. $output .= "\n User account creation has been restricted.\n <hr>\n Contact your administrator or the maintainer\n (";
  45. #line 61 "template/en/default/global/user-error.html.tmpl"
  46. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  47. $output .= ") for information about\n creating an account.\n";
  48. }
  49. elsif ($stash->get('error') eq 'account_disabled') {
  50. #line 65 "template/en/default/global/user-error.html.tmpl"
  51. $stash->set('title', 'Account Disabled');
  52. #line 66 "template/en/default/global/user-error.html.tmpl"
  53. # FILTER
  54. $output .= do {
  55. my $output = '';
  56. my $_tt_filter = $context->filter('none')
  57. || $context->throw($context->error);
  58. $output .= $stash->get('disabled_reason');
  59. &$_tt_filter($output);
  60. };
  61. $output .= "\n <hr>\n If you believe your account should be restored, please\n send email to ";
  62. #line 69 "template/en/default/global/user-error.html.tmpl"
  63. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  64. $output .= " explaining why.\n";
  65. }
  66. elsif ($stash->get('error') eq 'account_exists') {
  67. #line 72 "template/en/default/global/user-error.html.tmpl"
  68. $stash->set('title', 'Account Already Exists');
  69. $output .= "\n There is already an account with";
  70. #line 78 "template/en/default/global/user-error.html.tmpl"
  71. if ($stash->get('email')) {
  72. $output .= "\n the login name ";
  73. #line 75 "template/en/default/global/user-error.html.tmpl"
  74. # FILTER
  75. $output .= do {
  76. my $output = '';
  77. my $_tt_filter = $context->filter('html')
  78. || $context->throw($context->error);
  79. $output .= $stash->get('email');
  80. &$_tt_filter($output);
  81. };
  82. $output .= ".";
  83. }
  84. else {
  85. $output .= "\n that login name.";
  86. }
  87. $output .= "\n";
  88. }
  89. elsif ($stash->get('error') eq 'account_locked') {
  90. #line 81 "template/en/default/global/user-error.html.tmpl"
  91. $stash->set('title', 'Account Locked');
  92. $output .= "\n Your IP (";
  93. #line 82 "template/en/default/global/user-error.html.tmpl"
  94. # FILTER
  95. $output .= do {
  96. my $output = '';
  97. my $_tt_filter = $context->filter('html')
  98. || $context->throw($context->error);
  99. $output .= $stash->get('ip_addr');
  100. &$_tt_filter($output);
  101. };
  102. $output .= ") has been locked out of this\n account until ";
  103. #line 83 "template/en/default/global/user-error.html.tmpl"
  104. # FILTER
  105. $output .= do {
  106. my $output = '';
  107. my $_tt_filter = $context->filter('time')
  108. || $context->throw($context->error);
  109. $output .= $stash->get('unlock_at');
  110. &$_tt_filter($output);
  111. };
  112. $output .= ", as you have\n exceeded the maximum number of login attempts.\n";
  113. }
  114. elsif ($stash->get('error') eq 'alias_has_comma_or_space') {
  115. #line 87 "template/en/default/global/user-error.html.tmpl"
  116. $stash->set('title', 'Invalid Characters In Alias');
  117. $output .= "\n The alias you entered, <em>";
  118. #line 88 "template/en/default/global/user-error.html.tmpl"
  119. # FILTER
  120. $output .= do {
  121. my $output = '';
  122. my $_tt_filter = $context->filter('html')
  123. || $context->throw($context->error);
  124. $output .= $stash->get('alias');
  125. &$_tt_filter($output);
  126. };
  127. $output .= "</em>,\n contains one or more commas or spaces. Aliases cannot contain\n commas or spaces because those characters are used to separate\n aliases from each other in lists. Please choose an alias\n that does not contain commas and spaces.\n";
  128. }
  129. elsif ($stash->get('error') eq 'alias_in_use') {
  130. #line 95 "template/en/default/global/user-error.html.tmpl"
  131. $stash->set('title', 'Alias In Use');
  132. #line 96 "template/en/default/global/user-error.html.tmpl"
  133. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  134. $output .= " ";
  135. #line 96 "template/en/default/global/user-error.html.tmpl"
  136. # FILTER
  137. $output .= do {
  138. my $output = '';
  139. my $_tt_filter = $context->filter('none')
  140. || $context->throw($context->error);
  141. # FILTER
  142. $output .= do {
  143. my $output = '';
  144. my $_tt_filter = $context->filter('bug_link', [ $stash->get('bug_id') ])
  145. || $context->throw($context->error);
  146. $output .= $stash->get('bug_id');
  147. &$_tt_filter($output);
  148. };
  149. &$_tt_filter($output);
  150. };
  151. $output .= "\n has already taken the alias <em>";
  152. #line 97 "template/en/default/global/user-error.html.tmpl"
  153. # FILTER
  154. $output .= do {
  155. my $output = '';
  156. my $_tt_filter = $context->filter('html')
  157. || $context->throw($context->error);
  158. $output .= $stash->get('alias');
  159. &$_tt_filter($output);
  160. };
  161. $output .= "</em>.\n Please choose another one.\n";
  162. }
  163. elsif ($stash->get('error') eq 'alias_is_numeric') {
  164. #line 101 "template/en/default/global/user-error.html.tmpl"
  165. $stash->set('title', 'Alias Is Numeric');
  166. $output .= "\n You tried to give this ";
  167. #line 102 "template/en/default/global/user-error.html.tmpl"
  168. $output .= $stash->get(['terms', 0, 'bug', 0]);
  169. $output .= " the alias <em>";
  170. #line 102 "template/en/default/global/user-error.html.tmpl"
  171. # FILTER
  172. $output .= do {
  173. my $output = '';
  174. my $_tt_filter = $context->filter('html')
  175. || $context->throw($context->error);
  176. $output .= $stash->get('alias');
  177. &$_tt_filter($output);
  178. };
  179. $output .= "</em>,\n but aliases cannot be merely numbers, since they could\n then be confused with ";
  180. #line 104 "template/en/default/global/user-error.html.tmpl"
  181. $output .= $stash->get(['terms', 0, 'bug', 0]);
  182. $output .= " IDs. Please choose an\n alias containing at least one letter.\n";
  183. }
  184. elsif ($stash->get('error') eq 'alias_too_long') {
  185. #line 108 "template/en/default/global/user-error.html.tmpl"
  186. $stash->set('title', 'Alias Too Long');
  187. #line 109 "template/en/default/global/user-error.html.tmpl"
  188. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  189. $output .= " aliases cannot be longer than 20 characters.\n Please choose a shorter alias.\n";
  190. }
  191. elsif ($stash->get('error') eq 'auth_cant_create_account') {
  192. #line 113 "template/en/default/global/user-error.html.tmpl"
  193. $stash->set('title', 'Can\'t create accounts');
  194. $output .= "\n This site is using an authentication scheme which does not permit\n account creation. Please contact an administrator to get a new account\n created.\n";
  195. }
  196. elsif ($stash->get('error') eq 'auth_failure') {
  197. #line 119 "template/en/default/global/user-error.html.tmpl"
  198. $stash->set('title', 'Authorization Required');
  199. #line 120 "template/en/default/global/user-error.html.tmpl"
  200. $stash->set('admindocslinks', { 'groups.html' => 'Group Security' });
  201. $output .= "\n Sorry,";
  202. #line 124 "template/en/default/global/user-error.html.tmpl"
  203. if ($stash->get('group')) {
  204. $output .= "\n you aren't a member of the '";
  205. #line 123 "template/en/default/global/user-error.html.tmpl"
  206. # FILTER
  207. $output .= do {
  208. my $output = '';
  209. my $_tt_filter = $context->filter('html')
  210. || $context->throw($context->error);
  211. $output .= $stash->get('group');
  212. &$_tt_filter($output);
  213. };
  214. $output .= "' group,";
  215. }
  216. $output .= "\n";
  217. #line 133 "template/en/default/global/user-error.html.tmpl"
  218. if ($stash->get('reason')) {
  219. #line 127 "template/en/default/global/user-error.html.tmpl"
  220. if ($stash->get('group')) {
  221. $output .= " and ";
  222. }
  223. #line 132 "template/en/default/global/user-error.html.tmpl"
  224. if ($stash->get('reason') eq 'cant_bless') {
  225. $output .= "\n you don't have permissions to add or remove people from a group,";
  226. }
  227. elsif ($stash->get('reason') eq 'not_visible') {
  228. $output .= "\n there are visibility restrictions on certain user groups,";
  229. }
  230. }
  231. $output .= "\n";
  232. #line 135 "template/en/default/global/user-error.html.tmpl"
  233. if ($stash->get('group') || $stash->get('reason')) {
  234. $output .= " and so ";
  235. }
  236. $output .= " you are not authorized to";
  237. #line 158 "template/en/default/global/user-error.html.tmpl"
  238. if ($stash->get('action') eq 'access') {
  239. $output .= "\n access";
  240. }
  241. elsif ($stash->get('action') eq 'add') {
  242. $output .= "\n add new";
  243. }
  244. elsif ($stash->get('action') eq 'begin') {
  245. $output .= "\n begin";
  246. }
  247. elsif ($stash->get('action') eq 'modify') {
  248. $output .= "\n modify";
  249. }
  250. elsif ($stash->get('action') eq 'delete') {
  251. $output .= "\n delete";
  252. }
  253. elsif ($stash->get('action') eq 'edit') {
  254. $output .= "\n add, modify or delete";
  255. }
  256. elsif ($stash->get('action') eq 'run') {
  257. $output .= "\n run";
  258. }
  259. elsif ($stash->get('action') eq 'schedule') {
  260. $output .= "\n schedule";
  261. }
  262. elsif ($stash->get('action') eq 'use') {
  263. $output .= "\n use";
  264. }
  265. elsif ($stash->get('action') eq 'approve') {
  266. $output .= "\n approve";
  267. }
  268. else {
  269. $output .= "\n ";
  270. #line 157 "template/en/default/global/user-error.html.tmpl"
  271. $output .= $stash->get(['Hook', 0, 'process', [ 'auth_failure_action' ]]);
  272. }
  273. $output .= "\n";
  274. #line 217 "template/en/default/global/user-error.html.tmpl"
  275. if ($stash->get('object') eq 'administrative_pages') {
  276. $output .= "\n administrative pages";
  277. }
  278. elsif ($stash->get('object') eq 'attachment') {
  279. #line 167 "template/en/default/global/user-error.html.tmpl"
  280. if ($stash->get('attach_id')) {
  281. $output .= "\n attachment #";
  282. #line 164 "template/en/default/global/user-error.html.tmpl"
  283. # FILTER
  284. $output .= do {
  285. my $output = '';
  286. my $_tt_filter = $context->filter('html')
  287. || $context->throw($context->error);
  288. $output .= $stash->get('attach_id');
  289. &$_tt_filter($output);
  290. };
  291. }
  292. else {
  293. $output .= "\n this attachment";
  294. }
  295. }
  296. elsif ($stash->get('object') eq 'bugs') {
  297. $output .= "\n ";
  298. #line 169 "template/en/default/global/user-error.html.tmpl"
  299. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  300. }
  301. elsif ($stash->get('object') eq 'charts') {
  302. $output .= "\n the \"New Charts\" feature";
  303. }
  304. elsif ($stash->get('object') eq 'classifications') {
  305. $output .= "\n classifications";
  306. }
  307. elsif ($stash->get('object') eq 'components') {
  308. $output .= "\n components";
  309. }
  310. elsif ($stash->get('object') eq 'custom_fields') {
  311. $output .= "\n custom fields";
  312. }
  313. elsif ($stash->get('object') eq 'field_values') {
  314. $output .= "\n field values";
  315. }
  316. elsif ($stash->get('object') eq 'flagtypes') {
  317. $output .= "\n flag types";
  318. }
  319. elsif ($stash->get('object') eq 'group_access') {
  320. $output .= "\n group access";
  321. }
  322. elsif ($stash->get('object') eq 'groups') {
  323. $output .= "\n groups";
  324. }
  325. elsif ($stash->get('object') eq 'keywords') {
  326. $output .= "\n keywords";
  327. }
  328. elsif ($stash->get('object') eq 'milestones') {
  329. $output .= "\n milestones";
  330. }
  331. elsif ($stash->get('object') eq 'multiple_bugs') {
  332. $output .= "\n multiple ";
  333. #line 191 "template/en/default/global/user-error.html.tmpl"
  334. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  335. $output .= " at once";
  336. }
  337. elsif ($stash->get('object') eq 'parameters') {
  338. $output .= "\n parameters";
  339. }
  340. elsif ($stash->get('object') eq 'products') {
  341. $output .= "\n products";
  342. }
  343. elsif ($stash->get('object') eq 'quips') {
  344. $output .= "\n quips";
  345. }
  346. elsif ($stash->get('object') eq 'reports') {
  347. $output .= "\n whine reports";
  348. }
  349. elsif ($stash->get('object') eq 'sanity_check') {
  350. $output .= "\n a sanity check";
  351. }
  352. elsif ($stash->get('object') eq 'settings') {
  353. $output .= "\n settings";
  354. }
  355. elsif ($stash->get('object') eq 'sudo_session') {
  356. $output .= "\n a sudo session";
  357. }
  358. elsif ($stash->get('object') eq 'timetracking_summaries') {
  359. $output .= "\n time-tracking summary reports";
  360. }
  361. elsif ($stash->get('object') eq 'user') {
  362. $output .= " \n the user ";
  363. #line 210 "template/en/default/global/user-error.html.tmpl"
  364. if ($stash->get('userid')) {
  365. $output .= " with ID '";
  366. #line 209 "template/en/default/global/user-error.html.tmpl"
  367. # FILTER
  368. $output .= do {
  369. my $output = '';
  370. my $_tt_filter = $context->filter('html')
  371. || $context->throw($context->error);
  372. $output .= $stash->get('userid');
  373. &$_tt_filter($output);
  374. };
  375. $output .= "'";
  376. }
  377. else {
  378. $output .= "you specified ";
  379. }
  380. }
  381. elsif ($stash->get('object') eq 'users') {
  382. $output .= "\n users";
  383. }
  384. elsif ($stash->get('object') eq 'versions') {
  385. $output .= "\n versions";
  386. }
  387. elsif ($stash->get('object') eq 'workflow') {
  388. $output .= "\n the workflow";
  389. }
  390. $output .= ".\n";
  391. #line 219 "template/en/default/global/user-error.html.tmpl"
  392. $output .= $stash->get(['Hook', 0, 'process', [ 'auth_failure' ]]);
  393. $output .= "\n";
  394. }
  395. elsif ($stash->get('error') eq 'attachment_deletion_disabled') {
  396. #line 222 "template/en/default/global/user-error.html.tmpl"
  397. $stash->set('title', 'Attachment Deletion Disabled');
  398. $output .= "\n Attachment deletion is disabled on this installation.\n";
  399. }
  400. elsif ($stash->get('error') eq 'attachment_illegal_url') {
  401. #line 226 "template/en/default/global/user-error.html.tmpl"
  402. $stash->set('title', 'Illegal Attachment URL');
  403. $output .= "\n <em>";
  404. #line 227 "template/en/default/global/user-error.html.tmpl"
  405. # FILTER
  406. $output .= do {
  407. my $output = '';
  408. my $_tt_filter = $context->filter('html')
  409. || $context->throw($context->error);
  410. $output .= $stash->get('url');
  411. &$_tt_filter($output);
  412. };
  413. $output .= "</em> is not a legal URL for attachments.\n It must start either with http://, https:// or ftp://.\n";
  414. }
  415. elsif ($stash->get('error') eq 'attachment_removed') {
  416. #line 231 "template/en/default/global/user-error.html.tmpl"
  417. $stash->set('title', 'Attachment Removed');
  418. $output .= "\n The attachment you are attempting to access has been removed.\n";
  419. }
  420. elsif ($stash->get('error') eq 'bug_access_denied') {
  421. #line 235 "template/en/default/global/user-error.html.tmpl"
  422. $stash->set('title', 'Access Denied');
  423. #line 236 "template/en/default/global/user-error.html.tmpl"
  424. $stash->set('admindocslinks', { 'groups.html' => 'Group Security' });
  425. $output .= "\n You are not authorized to access ";
  426. #line 237 "template/en/default/global/user-error.html.tmpl"
  427. $output .= $stash->get(['terms', 0, 'bug', 0]);
  428. $output .= " #";
  429. #line 237 "template/en/default/global/user-error.html.tmpl"
  430. # FILTER
  431. $output .= do {
  432. my $output = '';
  433. my $_tt_filter = $context->filter('html')
  434. || $context->throw($context->error);
  435. $output .= $stash->get('bug_id');
  436. &$_tt_filter($output);
  437. };
  438. $output .= ".\n";
  439. }
  440. elsif ($stash->get('error') eq 'bug_access_query') {
  441. #line 240 "template/en/default/global/user-error.html.tmpl"
  442. $stash->set('title', 'Access Denied');
  443. #line 241 "template/en/default/global/user-error.html.tmpl"
  444. $stash->set('docslinks', { 'myaccount.html' => 'Creating an account' });
  445. $output .= "\n You are not authorized to access ";
  446. #line 242 "template/en/default/global/user-error.html.tmpl"
  447. $output .= $stash->get(['terms', 0, 'bug', 0]);
  448. $output .= " #";
  449. #line 242 "template/en/default/global/user-error.html.tmpl"
  450. # FILTER
  451. $output .= do {
  452. my $output = '';
  453. my $_tt_filter = $context->filter('html')
  454. || $context->throw($context->error);
  455. $output .= $stash->get('bug_id');
  456. &$_tt_filter($output);
  457. };
  458. $output .= ".\n To see this ";
  459. #line 243 "template/en/default/global/user-error.html.tmpl"
  460. $output .= $stash->get(['terms', 0, 'bug', 0]);
  461. $output .= ", you must\n first <a href=\"show_bug.cgi?id=";
  462. #line 245 "template/en/default/global/user-error.html.tmpl"
  463. # FILTER
  464. $output .= do {
  465. my $output = '';
  466. my $_tt_filter = $context->filter('url_quote')
  467. || $context->throw($context->error);
  468. $output .= $stash->get('bug_id');
  469. &$_tt_filter($output);
  470. };
  471. $output .= "&amp;GoAheadAndLogIn=1\">log\n in to an account</a> with the appropriate permissions.\n";
  472. }
  473. elsif ($stash->get('error') eq 'bug_url_invalid') {
  474. #line 1 "template/en/default/global/user-error.html.tmpl"
  475. $stash->set('title', ("Invalid " . $stash->get(['terms', 0, 'Bug', 0]) . " URL"));
  476. $output .= "\n <code>";
  477. #line 250 "template/en/default/global/user-error.html.tmpl"
  478. # FILTER
  479. $output .= do {
  480. my $output = '';
  481. my $_tt_filter = $context->filter('html')
  482. || $context->throw($context->error);
  483. $output .= $stash->get('url');
  484. &$_tt_filter($output);
  485. };
  486. $output .= "</code> is not a valid URL to ";
  487. #line 250 "template/en/default/global/user-error.html.tmpl"
  488. $output .= $stash->get(['terms', 0, 'abug', 0]);
  489. $output .= ".";
  490. #line 266 "template/en/default/global/user-error.html.tmpl"
  491. if ($stash->get('reason') eq 'http') {
  492. $output .= "\n URLs must start with \"http\" or \"https\".";
  493. }
  494. elsif ($stash->get('reason') eq 'path_only') {
  495. $output .= "\n You must specify a full URL.";
  496. }
  497. elsif ($stash->get('reason') eq 'show_bug') {
  498. $output .= "\n ";
  499. #line 256 "template/en/default/global/user-error.html.tmpl"
  500. # FILTER
  501. $output .= do {
  502. my $output = '';
  503. my $_tt_filter = $context->filter('html')
  504. || $context->throw($context->error);
  505. $output .= $stash->get(['field_descs', 0, 'see_also', 0]);
  506. &$_tt_filter($output);
  507. };
  508. $output .= " URLs should point to one of:\n <ul>\n <li><code>show_bug.cgi</code> in a ";
  509. #line 258 "template/en/default/global/user-error.html.tmpl"
  510. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  511. $output .= "\n installation.</li>\n <li>A b";
  512. $output .= "ug on launchpad.net</li>\n <li>An issue on code.google.com.</li>\n <li>A b";
  513. $output .= "ug on b";
  514. $output .= "ugs.debian.org.</li>\n </ul>";
  515. }
  516. elsif ($stash->get('reason') eq 'id') {
  517. $output .= "\n There is no valid ";
  518. #line 265 "template/en/default/global/user-error.html.tmpl"
  519. $output .= $stash->get(['terms', 0, 'bug', 0]);
  520. $output .= " id in that URL.";
  521. }
  522. $output .= "\n";
  523. }
  524. elsif ($stash->get('error') eq 'bug_url_too_long') {
  525. #line 1 "template/en/default/global/user-error.html.tmpl"
  526. $stash->set('title', ("Invalid " . $stash->get(['terms', 0, 'Bug', 0]) . " URL"));
  527. #line 270 "template/en/default/global/user-error.html.tmpl"
  528. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  529. $output .= " URLs can not be longer than \n ";
  530. #line 271 "template/en/default/global/user-error.html.tmpl"
  531. # FILTER
  532. $output .= do {
  533. my $output = '';
  534. my $_tt_filter = $context->filter('none')
  535. || $context->throw($context->error);
  536. $output .= '255';
  537. &$_tt_filter($output);
  538. };
  539. $output .= " characters long.\n <code>";
  540. #line 272 "template/en/default/global/user-error.html.tmpl"
  541. # FILTER
  542. $output .= do {
  543. my $output = '';
  544. my $_tt_filter = $context->filter('html')
  545. || $context->throw($context->error);
  546. $output .= $stash->get('url');
  547. &$_tt_filter($output);
  548. };
  549. $output .= "</code> is too long.\n";
  550. }
  551. elsif ($stash->get('error') eq 'buglist_parameters_required') {
  552. #line 275 "template/en/default/global/user-error.html.tmpl"
  553. $stash->set('title', 'Parameters Required');
  554. #line 1 "template/en/default/global/user-error.html.tmpl"
  555. $stash->set('docslinks', { 'query.html' => ("Searching for " . $stash->get(['terms', 0, 'bugs', 0])), 'query.html#list' => ($stash->get(['terms', 0, 'Bug', 0]) . " lists") });
  556. $output .= "\n You may not search, or create saved searches, without any search terms.\n";
  557. }
  558. elsif ($stash->get('error') eq 'chart_too_large') {
  559. #line 281 "template/en/default/global/user-error.html.tmpl"
  560. $stash->set('title', 'Chart Too Large');
  561. $output .= "\n Sorry, but 2000 x 2000 is the maximum size for a chart.\n";
  562. }
  563. elsif ($stash->get('error') eq 'comment_id_invalid') {
  564. #line 285 "template/en/default/global/user-error.html.tmpl"
  565. # FILTER
  566. $output .= do {
  567. my $output = '';
  568. my $_tt_filter = $context->filter('html')
  569. || $context->throw($context->error);
  570. $output .= $stash->get('id');
  571. &$_tt_filter($output);
  572. };
  573. $output .= " is not a valid comment id.\n";
  574. }
  575. elsif ($stash->get('error') eq 'comment_invalid_isprivate') {
  576. $output .= "\n You tried to modify the privacy of comment id ";
  577. #line 288 "template/en/default/global/user-error.html.tmpl"
  578. # FILTER
  579. $output .= do {
  580. my $output = '';
  581. my $_tt_filter = $context->filter('html')
  582. || $context->throw($context->error);
  583. $output .= $stash->get('id');
  584. &$_tt_filter($output);
  585. };
  586. $output .= ",\n but that is not a valid comment on this ";
  587. #line 289 "template/en/default/global/user-error.html.tmpl"
  588. $output .= $stash->get(['terms', 0, 'bug', 0]);
  589. $output .= ".\n";
  590. }
  591. elsif ($stash->get('error') eq 'comment_is_private') {
  592. $output .= "\n Comment id ";
  593. #line 292 "template/en/default/global/user-error.html.tmpl"
  594. # FILTER
  595. $output .= do {
  596. my $output = '';
  597. my $_tt_filter = $context->filter('html')
  598. || $context->throw($context->error);
  599. $output .= $stash->get('id');
  600. &$_tt_filter($output);
  601. };
  602. $output .= " is private.\n";
  603. }
  604. elsif ($stash->get('error') eq 'comment_required') {
  605. #line 295 "template/en/default/global/user-error.html.tmpl"
  606. $stash->set('title', 'Comment Required');
  607. $output .= "\n You have to specify a";
  608. #line 304 "template/en/default/global/user-error.html.tmpl"
  609. if ($stash->get('old') && $stash->get('new')) {
  610. $output .= "\n <b>comment</b> when changing the status of ";
  611. #line 298 "template/en/default/global/user-error.html.tmpl"
  612. $output .= $stash->get(['terms', 0, 'abug', 0]);
  613. $output .= " from\n ";
  614. #line 299 "template/en/default/global/user-error.html.tmpl"
  615. # FILTER
  616. $output .= do {
  617. my $output = '';
  618. my $_tt_filter = $context->filter('html')
  619. || $context->throw($context->error);
  620. $output .= $stash->get(['old', 0, 'name', 0]);
  621. &$_tt_filter($output);
  622. };
  623. $output .= " to ";
  624. #line 299 "template/en/default/global/user-error.html.tmpl"
  625. # FILTER
  626. $output .= do {
  627. my $output = '';
  628. my $_tt_filter = $context->filter('html')
  629. || $context->throw($context->error);
  630. $output .= $stash->get(['new', 0, 'name', 0]);
  631. &$_tt_filter($output);
  632. };
  633. $output .= ".";
  634. }
  635. elsif ($stash->get('new')) {
  636. $output .= "\n description for this ";
  637. #line 301 "template/en/default/global/user-error.html.tmpl"
  638. $output .= $stash->get(['terms', 0, 'bug', 0]);
  639. $output .= ".";
  640. }
  641. else {
  642. $output .= "\n <b>comment</b> on this change.";
  643. }
  644. $output .= "\n";
  645. }
  646. elsif ($stash->get('error') eq 'comment_too_long') {
  647. #line 307 "template/en/default/global/user-error.html.tmpl"
  648. $stash->set('title', 'Comment Too Long');
  649. $output .= "\n Comments cannot be longer than \n ";
  650. #line 309 "template/en/default/global/user-error.html.tmpl"
  651. # FILTER
  652. $output .= do {
  653. my $output = '';
  654. my $_tt_filter = $context->filter('html')
  655. || $context->throw($context->error);
  656. $output .= '65535';
  657. &$_tt_filter($output);
  658. };
  659. $output .= " characters.\n";
  660. }
  661. elsif ($stash->get('error') eq 'auth_classification_not_enabled') {
  662. #line 312 "template/en/default/global/user-error.html.tmpl"
  663. $stash->set('title', 'Classification Not Enabled');
  664. $output .= "\n Sorry, classification is not enabled.\n";
  665. }
  666. elsif ($stash->get('error') eq 'classification_name_too_long') {
  667. #line 316 "template/en/default/global/user-error.html.tmpl"
  668. $stash->set('title', 'Classification Name Too Long');
  669. $output .= "\n The name of a classification is limited to ";
  670. #line 317 "template/en/default/global/user-error.html.tmpl"
  671. # FILTER
  672. $output .= do {
  673. my $output = '';
  674. my $_tt_filter = $context->filter('html')
  675. || $context->throw($context->error);
  676. $output .= '64';
  677. &$_tt_filter($output);
  678. };
  679. $output .= "\n characters. '";
  680. #line 318 "template/en/default/global/user-error.html.tmpl"
  681. # FILTER
  682. $output .= do {
  683. my $output = '';
  684. my $_tt_filter = $context->filter('html')
  685. || $context->throw($context->error);
  686. $output .= $stash->get('name');
  687. &$_tt_filter($output);
  688. };
  689. $output .= "' is too long (";
  690. #line 318 "template/en/default/global/user-error.html.tmpl"
  691. $output .= $stash->get(['name', 0, 'length', 0]);
  692. $output .= " characters).\n";
  693. }
  694. elsif ($stash->get('error') eq 'classification_not_specified') {
  695. #line 321 "template/en/default/global/user-error.html.tmpl"
  696. $stash->set('title', 'You Must Supply A Classification Name');
  697. $output .= "\n You must enter a classification name.\n";
  698. }
  699. elsif ($stash->get('error') eq 'classification_already_exists') {
  700. #line 325 "template/en/default/global/user-error.html.tmpl"
  701. $stash->set('title', 'Classification Already Exists');
  702. $output .= "\n A classification with the name '";
  703. #line 326 "template/en/default/global/user-error.html.tmpl"
  704. # FILTER
  705. $output .= do {
  706. my $output = '';
  707. my $_tt_filter = $context->filter('html')
  708. || $context->throw($context->error);
  709. $output .= $stash->get('name');
  710. &$_tt_filter($output);
  711. };
  712. $output .= "' already exists.\n";
  713. }
  714. elsif ($stash->get('error') eq 'classification_invalid_sortkey') {
  715. #line 329 "template/en/default/global/user-error.html.tmpl"
  716. $stash->set('title', 'Invalid Sortkey for Classification');
  717. $output .= "\n The sortkey '";
  718. #line 330 "template/en/default/global/user-error.html.tmpl"
  719. # FILTER
  720. $output .= do {
  721. my $output = '';
  722. my $_tt_filter = $context->filter('html')
  723. || $context->throw($context->error);
  724. $output .= $stash->get('sortkey');
  725. &$_tt_filter($output);
  726. };
  727. $output .= "' is invalid. It must be an\n integer between 0 and ";
  728. #line 331 "template/en/default/global/user-error.html.tmpl"
  729. # FILTER
  730. $output .= do {
  731. my $output = '';
  732. my $_tt_filter = $context->filter('html')
  733. || $context->throw($context->error);
  734. $output .= '32767';
  735. &$_tt_filter($output);
  736. };
  737. $output .= ".\n";
  738. }
  739. elsif ($stash->get('error') eq 'classification_not_deletable') {
  740. #line 334 "template/en/default/global/user-error.html.tmpl"
  741. $stash->set('title', 'Default Classification Can Not Be Deleted');
  742. $output .= "\n You can not delete the default classification\n";
  743. }
  744. elsif ($stash->get('error') eq 'classification_has_products') {
  745. $output .= "\n Sorry, there are products for this classification. You\n must reassign those products to another classification before you\n can delete this one.\n";
  746. }
  747. elsif ($stash->get('error') eq 'component_already_exists') {
  748. #line 343 "template/en/default/global/user-error.html.tmpl"
  749. $stash->set('title', 'Component Already Exists');
  750. $output .= "\n The <em>";
  751. #line 344 "template/en/default/global/user-error.html.tmpl"
  752. # FILTER
  753. $output .= do {
  754. my $output = '';
  755. my $_tt_filter = $context->filter('html')
  756. || $context->throw($context->error);
  757. $output .= $stash->get(['product', 0, 'name', 0]);
  758. &$_tt_filter($output);
  759. };
  760. $output .= "</em> product already has\n a component named <em>";
  761. #line 345 "template/en/default/global/user-error.html.tmpl"
  762. # FILTER
  763. $output .= do {
  764. my $output = '';
  765. my $_tt_filter = $context->filter('html')
  766. || $context->throw($context->error);
  767. $output .= $stash->get('name');
  768. &$_tt_filter($output);
  769. };
  770. $output .= "</em>.\n";
  771. }
  772. elsif ($stash->get('error') eq 'component_blank_description') {
  773. #line 348 "template/en/default/global/user-error.html.tmpl"
  774. $stash->set('title', 'Blank Component Description Not Allowed');
  775. $output .= "\n You must enter a non-blank description for this component.\n";
  776. }
  777. elsif ($stash->get('error') eq 'component_blank_name') {
  778. #line 352 "template/en/default/global/user-error.html.tmpl"
  779. $stash->set('title', 'Blank Component Name Not Allowed');
  780. $output .= "\n You must enter a name for this new component.\n";
  781. }
  782. elsif ($stash->get('error') eq 'component_has_bugs') {
  783. #line 356 "template/en/default/global/user-error.html.tmpl"
  784. # CAPTURE
  785. $stash->set('title', do {
  786. my $output = '';
  787. $output .= "Component has ";
  788. #line 356 "template/en/default/global/user-error.html.tmpl"
  789. $output .= $stash->get(['terms', 0, 'Bugs', 0]);
  790. $output;
  791. });
  792. $output .= "\n There are ";
  793. #line 357 "template/en/default/global/user-error.html.tmpl"
  794. # FILTER
  795. $output .= do {
  796. my $output = '';
  797. my $_tt_filter = $context->filter('html')
  798. || $context->throw($context->error);
  799. $output .= $stash->get('nb');
  800. &$_tt_filter($output);
  801. };
  802. $output .= " ";
  803. #line 357 "template/en/default/global/user-error.html.tmpl"
  804. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  805. $output .= " entered for this component!\n You must reassign those ";
  806. #line 358 "template/en/default/global/user-error.html.tmpl"
  807. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  808. $output .= " to another component before you\n can delete this one.\n";
  809. }
  810. elsif ($stash->get('error') eq 'component_name_too_long') {
  811. #line 362 "template/en/default/global/user-error.html.tmpl"
  812. $stash->set('title', 'Component Name Is Too Long');
  813. $output .= "\n The name of a component is limited to ";
  814. #line 363 "template/en/default/global/user-error.html.tmpl"
  815. # FILTER
  816. $output .= do {
  817. my $output = '';
  818. my $_tt_filter = $context->filter('html')
  819. || $context->throw($context->error);
  820. $output .= '64';
  821. &$_tt_filter($output);
  822. };
  823. $output .= "\n characters. '";
  824. #line 364 "template/en/default/global/user-error.html.tmpl"
  825. # FILTER
  826. $output .= do {
  827. my $output = '';
  828. my $_tt_filter = $context->filter('html')
  829. || $context->throw($context->error);
  830. $output .= $stash->get('name');
  831. &$_tt_filter($output);
  832. };
  833. $output .= "' is too long (";
  834. #line 364 "template/en/default/global/user-error.html.tmpl"
  835. $output .= $stash->get(['name', 0, 'length', 0]);
  836. $output .= " characters).\n";
  837. }
  838. elsif ($stash->get('error') eq 'component_need_initialowner') {
  839. #line 367 "template/en/default/global/user-error.html.tmpl"
  840. $stash->set('title', 'Component Requires Default Assignee');
  841. $output .= "\n A default assignee is required for this component.\n";
  842. }
  843. elsif ($stash->get('error') eq 'customfield_nonexistent') {
  844. #line 371 "template/en/default/global/user-error.html.tmpl"
  845. $stash->set('title', 'Unknown Custom Field');
  846. $output .= "\n There is no custom field with the name '";
  847. #line 372 "template/en/default/global/user-error.html.tmpl"
  848. # FILTER
  849. $output .= do {
  850. my $output = '';
  851. my $_tt_filter = $context->filter('html')
  852. || $context->throw($context->error);
  853. $output .= $stash->get('name');
  854. &$_tt_filter($output);
  855. };
  856. $output .= "'.\n";
  857. }
  858. elsif ($stash->get('error') eq 'customfield_not_obsolete') {
  859. #line 375 "template/en/default/global/user-error.html.tmpl"
  860. $stash->set('title', 'Custom Field Not Obsolete');
  861. $output .= "\n The custom field '";
  862. #line 376 "template/en/default/global/user-error.html.tmpl"
  863. # FILTER
  864. $output .= do {
  865. my $output = '';
  866. my $_tt_filter = $context->filter('html')
  867. || $context->throw($context->error);
  868. $output .= $stash->get('name');
  869. &$_tt_filter($output);
  870. };
  871. $output .= "' is not obsolete.\n Please obsolete a custom field before attempting to delete it.\n";
  872. }
  873. elsif ($stash->get('error') eq 'customfield_has_activity') {
  874. #line 380 "template/en/default/global/user-error.html.tmpl"
  875. $stash->set('title', 'Custom Field Has Activity');
  876. $output .= "\n The custom field '";
  877. #line 381 "template/en/default/global/user-error.html.tmpl"
  878. # FILTER
  879. $output .= do {
  880. my $output = '';
  881. my $_tt_filter = $context->filter('html')
  882. || $context->throw($context->error);
  883. $output .= $stash->get('name');
  884. &$_tt_filter($output);
  885. };
  886. $output .= "' cannot be deleted because\n it has recorded activity.\n";
  887. }
  888. elsif ($stash->get('error') eq 'customfield_has_contents') {
  889. #line 385 "template/en/default/global/user-error.html.tmpl"
  890. $stash->set('title', 'Custom Field Has Contents');
  891. $output .= "\n The custom field '";
  892. #line 386 "template/en/default/global/user-error.html.tmpl"
  893. # FILTER
  894. $output .= do {
  895. my $output = '';
  896. my $_tt_filter = $context->filter('html')
  897. || $context->throw($context->error);
  898. $output .= $stash->get('name');
  899. &$_tt_filter($output);
  900. };
  901. $output .= "' cannot be deleted because\n at least one ";
  902. #line 387 "template/en/default/global/user-error.html.tmpl"
  903. $output .= $stash->get(['terms', 0, 'bug', 0]);
  904. $output .= " has a non empty value for this field.\n";
  905. }
  906. elsif ($stash->get('error') eq 'dependency_loop_multi') {
  907. #line 390 "template/en/default/global/user-error.html.tmpl"
  908. $stash->set('title', 'Dependency Loop Detected');
  909. $output .= "\n The following ";
  910. #line 391 "template/en/default/global/user-error.html.tmpl"
  911. $output .= $stash->get(['terms', 0, 'bug', 0]);
  912. $output .= "(s) would appear on both the \"depends on\"\n and \"blocks\" parts of the dependency tree if these changes\n are committed:";
  913. #line 396 "template/en/default/global/user-error.html.tmpl"
  914. # FOREACH
  915. do {
  916. my ($_tt_value, $_tt_error, $_tt_oldloop);
  917. my $_tt_list = $stash->get('deps');
  918. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  919. $_tt_list = Template::Config->iterator($_tt_list)
  920. || die $Template::Config::ERROR, "\n";
  921. }
  922. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  923. eval { $_tt_oldloop = $stash->get('loop') };
  924. $stash->set('loop', $_tt_list);
  925. eval {
  926. FOR1: while (! $_tt_error) {
  927. $stash->{'dep'} = $_tt_value;
  928. $output .= "\n ";
  929. #line 395 "template/en/default/global/user-error.html.tmpl"
  930. # FILTER
  931. $output .= do {
  932. my $output = '';
  933. my $_tt_filter = $context->filter('none')
  934. || $context->throw($context->error);
  935. # FILTER
  936. $output .= do {
  937. my $output = '';
  938. my $_tt_filter = $context->filter('bug_link', [ $stash->get('dep') ])
  939. || $context->throw($context->error);
  940. $output .= $stash->get('dep');
  941. &$_tt_filter($output);
  942. };
  943. &$_tt_filter($output);
  944. };
  945. ;
  946. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  947. }
  948. };
  949. $stash->set('loop', $_tt_oldloop);
  950. die $@ if $@;
  951. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  952. die $_tt_error if $_tt_error;
  953. };
  954. $output .= ".\n This would create a circular dependency, which is not allowed.\n";
  955. }
  956. elsif ($stash->get('error') eq 'dependency_loop_single') {
  957. #line 400 "template/en/default/global/user-error.html.tmpl"
  958. $stash->set('title', 'Dependency Loop Detected');
  959. $output .= "\n You can't make ";
  960. #line 401 "template/en/default/global/user-error.html.tmpl"
  961. $output .= $stash->get(['terms', 0, 'abug', 0]);
  962. $output .= " block itself or depend on itself.\n";
  963. }
  964. elsif ($stash->get('error') eq 'dupe_id_required') {
  965. #line 1 "template/en/default/global/user-error.html.tmpl"
  966. $stash->set('title', ("Duplicate " . $stash->get(['terms', 0, 'Bug', 0]) . " Id Required"));
  967. $output .= "\n You must specify ";
  968. #line 405 "template/en/default/global/user-error.html.tmpl"
  969. $output .= $stash->get(['terms', 0, 'abug', 0]);
  970. $output .= " id to mark this ";
  971. #line 405 "template/en/default/global/user-error.html.tmpl"
  972. $output .= $stash->get(['terms', 0, 'bug', 0]);
  973. $output .= "\n as a duplicate of.\n";
  974. }
  975. elsif ($stash->get('error') eq 'dupe_not_allowed') {
  976. #line 1 "template/en/default/global/user-error.html.tmpl"
  977. $stash->set('title', ("Cannot mark " . $stash->get(['terms', 0, 'bugs', 0]) . " as duplicates"));
  978. $output .= "\n You cannot mark ";
  979. #line 410 "template/en/default/global/user-error.html.tmpl"
  980. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  981. $output .= " as duplicates when\n changing several ";
  982. #line 411 "template/en/default/global/user-error.html.tmpl"
  983. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  984. $output .= " at once.\n";
  985. }
  986. elsif ($stash->get('error') eq 'dupe_loop_detected') {
  987. #line 414 "template/en/default/global/user-error.html.tmpl"
  988. $stash->set('title', 'Loop detected among duplicates');
  989. $output .= "\n You cannot mark ";
  990. #line 415 "template/en/default/global/user-error.html.tmpl"
  991. $output .= $stash->get(['terms', 0, 'bug', 0]);
  992. $output .= " ";
  993. #line 415 "template/en/default/global/user-error.html.tmpl"
  994. # FILTER
  995. $output .= do {
  996. my $output = '';
  997. my $_tt_filter = $context->filter('html')
  998. || $context->throw($context->error);
  999. $output .= $stash->get('bug_id');
  1000. &$_tt_filter($output);
  1001. };
  1002. $output .= " as\n a duplicate of";
  1003. #line 422 "template/en/default/global/user-error.html.tmpl"
  1004. if ($stash->get('dupe_of') eq $stash->get('bug_id')) {
  1005. $output .= "\n itself";
  1006. }
  1007. else {
  1008. $output .= "\n ";
  1009. #line 420 "template/en/default/global/user-error.html.tmpl"
  1010. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1011. $output .= " ";
  1012. #line 420 "template/en/default/global/user-error.html.tmpl"
  1013. # FILTER
  1014. $output .= do {
  1015. my $output = '';
  1016. my $_tt_filter = $context->filter('html')
  1017. || $context->throw($context->error);
  1018. $output .= $stash->get('dupe_of');
  1019. &$_tt_filter($output);
  1020. };
  1021. $output .= ", because it\n would create a duplicate loop";
  1022. }
  1023. $output .= ".\n";
  1024. }
  1025. elsif ($stash->get('error') eq 'email_change_in_progress') {
  1026. #line 425 "template/en/default/global/user-error.html.tmpl"
  1027. $stash->set('title', 'Email Change Already In Progress');
  1028. $output .= "\n Email change already in progress; please check your email.\n";
  1029. }
  1030. elsif ($stash->get('error') eq 'email_confirmation_failed') {
  1031. #line 429 "template/en/default/global/user-error.html.tmpl"
  1032. $stash->set('title', 'Email Address Confirmation Failed');
  1033. $output .= "\n Email address confirmation failed.\n";
  1034. }
  1035. elsif ($stash->get('error') eq 'email_no_text_plain') {
  1036. $output .= "\n Your message did not contain any text.";
  1037. #line 433 "template/en/default/global/user-error.html.tmpl"
  1038. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  1039. $output .= " does not\n accept HTML-only email, or HTML email with attachments.\n";
  1040. }
  1041. elsif ($stash->get('error') eq 'empty_group_description') {
  1042. #line 437 "template/en/default/global/user-error.html.tmpl"
  1043. $stash->set('title', 'The group description can not be empty');
  1044. $output .= "\n You must enter a description for the group.\n";
  1045. }
  1046. elsif ($stash->get('error') eq 'empty_group_name') {
  1047. #line 441 "template/en/default/global/user-error.html.tmpl"
  1048. $stash->set('title', 'The group name can not be empty');
  1049. $output .= "\n You must enter a name for the group.\n ";
  1050. }
  1051. elsif ($stash->get('error') eq 'entry_access_denied') {
  1052. #line 445 "template/en/default/global/user-error.html.tmpl"
  1053. $stash->set('title', 'Permission Denied');
  1054. #line 446 "template/en/default/global/user-error.html.tmpl"
  1055. $stash->set('admindocslinks', { 'groups.html' => 'Group Security' });
  1056. $output .= "\n Sorry, either the product <em>";
  1057. #line 447 "template/en/default/global/user-error.html.tmpl"
  1058. # FILTER
  1059. $output .= do {
  1060. my $output = '';
  1061. my $_tt_filter = $context->filter('html')
  1062. || $context->throw($context->error);
  1063. $output .= $stash->get('product');
  1064. &$_tt_filter($output);
  1065. };
  1066. $output .= "</em>\n does not exist or you aren't authorized to\n enter ";
  1067. #line 449 "template/en/default/global/user-error.html.tmpl"
  1068. $output .= $stash->get(['terms', 0, 'abug', 0]);
  1069. $output .= " into it.\n";
  1070. }
  1071. elsif ($stash->get('error') eq 'extension_create_no_name') {
  1072. $output .= "\n You must specify a name for your extension, as an argument to this script.\n";
  1073. }
  1074. elsif ($stash->get('error') eq 'extension_first_letter_caps') {
  1075. $output .= "\n The first letter of your extension's name must be a capital letter.\n (You specified '";
  1076. #line 456 "template/en/default/global/user-error.html.tmpl"
  1077. # FILTER
  1078. $output .= do {
  1079. my $output = '';
  1080. my $_tt_filter = $context->filter('html')
  1081. || $context->throw($context->error);
  1082. $output .= $stash->get('name');
  1083. &$_tt_filter($output);
  1084. };
  1085. $output .= "'.)\n";
  1086. }
  1087. elsif ($stash->get('error') eq 'field_already_exists') {
  1088. #line 459 "template/en/default/global/user-error.html.tmpl"
  1089. $stash->set('title', 'Field Already Exists');
  1090. $output .= "\n The field '";
  1091. #line 460 "template/en/default/global/user-error.html.tmpl"
  1092. # FILTER
  1093. $output .= do {
  1094. my $output = '';
  1095. my $_tt_filter = $context->filter('html')
  1096. || $context->throw($context->error);
  1097. $output .= $stash->get(['field', 0, 'name', 0]);
  1098. &$_tt_filter($output);
  1099. };
  1100. $output .= "' \n (";
  1101. #line 461 "template/en/default/global/user-error.html.tmpl"
  1102. # FILTER
  1103. $output .= do {
  1104. my $output = '';
  1105. my $_tt_filter = $context->filter('html')
  1106. || $context->throw($context->error);
  1107. $output .= $stash->get(['field', 0, 'description', 0]);
  1108. &$_tt_filter($output);
  1109. };
  1110. $output .= ") already exists. Please\n choose another name.\n";
  1111. }
  1112. elsif ($stash->get('error') eq 'field_cant_control_self') {
  1113. #line 465 "template/en/default/global/user-error.html.tmpl"
  1114. $stash->set('title', 'Field Can\'t Control Itself');
  1115. $output .= "\n The ";
  1116. #line 466 "template/en/default/global/user-error.html.tmpl"
  1117. # FILTER
  1118. $output .= do {
  1119. my $output = '';
  1120. my $_tt_filter = $context->filter('html')
  1121. || $context->throw($context->error);
  1122. $output .= $stash->get(['field', 0, 'description', 0]);
  1123. &$_tt_filter($output);
  1124. };
  1125. $output .= " field can't be set to control \n itself.\n";
  1126. }
  1127. elsif ($stash->get('error') eq 'field_control_must_be_select') {
  1128. #line 470 "template/en/default/global/user-error.html.tmpl"
  1129. $stash->set('title', 'Invalid Field Type Selected');
  1130. $output .= "\n Only drop-down and multi-select fields can be used to control\n the visibility/values of other fields. ";
  1131. #line 472 "template/en/default/global/user-error.html.tmpl"
  1132. # FILTER
  1133. $output .= do {
  1134. my $output = '';
  1135. my $_tt_filter = $context->filter('html')
  1136. || $context->throw($context->error);
  1137. $output .= $stash->get(['field', 0, 'description', 0]);
  1138. &$_tt_filter($output);
  1139. };
  1140. $output .= "\n is not the right type of field.\n";
  1141. }
  1142. elsif ($stash->get('error') eq 'field_invalid_name') {
  1143. #line 476 "template/en/default/global/user-error.html.tmpl"
  1144. $stash->set('title', 'Invalid Field Name');
  1145. $output .= "\n '";
  1146. #line 477 "template/en/default/global/user-error.html.tmpl"
  1147. # FILTER
  1148. $output .= do {
  1149. my $output = '';
  1150. my $_tt_filter = $context->filter('html')
  1151. || $context->throw($context->error);
  1152. $output .= $stash->get('name');
  1153. &$_tt_filter($output);
  1154. };
  1155. $output .= "' is not a valid name for a field.\n A name may contain only letters, numbers, and the underscore character.\n";
  1156. }
  1157. elsif ($stash->get('error') eq 'field_invalid_sortkey') {
  1158. #line 481 "template/en/default/global/user-error.html.tmpl"
  1159. $stash->set('title', 'Invalid Sortkey for Field');
  1160. $output .= "\n The sortkey ";
  1161. #line 482 "template/en/default/global/user-error.html.tmpl"
  1162. # FILTER
  1163. $output .= do {
  1164. my $output = '';
  1165. my $_tt_filter = $context->filter('html')
  1166. || $context->throw($context->error);
  1167. $output .= $stash->get('sortkey');
  1168. &$_tt_filter($output);
  1169. };
  1170. $output .= " that you have provided for\n this field is not a valid positive integer.\n";
  1171. }
  1172. elsif ($stash->get('error') eq 'field_missing_description') {
  1173. #line 486 "template/en/default/global/user-error.html.tmpl"
  1174. $stash->set('title', 'Missing Description for Field');
  1175. $output .= "\n You must enter a description for this field.\n";
  1176. }
  1177. elsif ($stash->get('error') eq 'field_missing_name') {
  1178. #line 490 "template/en/default/global/user-error.html.tmpl"
  1179. $stash->set('title', 'Missing Name for Field');
  1180. $output .= "\n You must enter a name for this field.\n";
  1181. }
  1182. elsif ($stash->get('error') eq 'field_value_control_select_only') {
  1183. #line 494 "template/en/default/global/user-error.html.tmpl"
  1184. $stash->set('title', 'Inval…

Large files files are truncated, but you can click here to view the full file