1
1
{extends "manage/manage.tpl.html"}
3
3
{block "manage_content"}
5
5
<script type="text/javascript">
7
7
function validateForm()
9
9
if (Validation.isFieldWhitespace('title')) {
10
alert('{/literal}{t escape=js}Please enter the title of this status.{/t}{literal}');
10
alert('{t escape=js}Please enter the title of this status.{/t}');
11
11
Validation.selectField('title');
14
14
if (Validation.isFieldWhitespace('abbreviation')) {
15
alert('{/literal}{t escape=js}Please enter the abbreviation of this status.{/t}{literal}');
15
alert('{t escape=js}Please enter the abbreviation of this status.{/t}');
16
16
Validation.selectField('abbreviation');
19
19
if (Validation.isFieldWhitespace('rank')) {
20
alert('{/literal}{t escape=js}Please enter the rank of this status.{/t}{literal}');
20
alert('{t escape=js}Please enter the rank of this status.{/t}');
21
21
Validation.selectField('rank');
24
24
if (!Validation.hasOneSelected('projects[]')) {
25
alert('{/literal}{t escape=js}Please assign the appropriate projects for this status.{/t}{literal}');
25
alert('{t escape=js}Please assign the appropriate projects for this status.{/t}');
26
26
Validation.selectField('projects[]');
29
29
if (Validation.isFieldWhitespace('color')) {
30
alert('{/literal}{t escape=js}Please enter the color of this status.{/t}{literal}');
30
alert('{t escape=js}Please enter the color of this status.{/t}');
31
31
Validation.selectField('color');
37
37
function checkDelete()
39
39
if (!Validation.hasOneChecked('items[]')) {
40
alert('{/literal}{t escape=js}Please select at least one of the statuses.{/t}{literal}');
40
alert('{t escape=js}Please select at least one of the statuses.{/t}');
43
if (!confirm("{/literal}{t escape=js}This action will remove the selected entries. This will also update any issues currently set to this status to a new status 'undefined'.{/t}{literal}")) {
43
if (!confirm("{t escape=js}This action will remove the selected entries. This will also update any issues currently set to this status to a new status 'undefined'.{/t}")) {