~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/impact_analysis.tpl.html

  • Committer: Elan Ruusamäe
  • Date: 2015-04-03 17:16:08 UTC
  • Revision ID: glen@delfi.ee-20150403171608-u41tcmt49uayv0g4
discard {literal} from templates

it is rarely needed in Smarty3

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  <tr>
5
5
    <td>
6
6
      <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2">
7
 
        {literal}
 
7
 
8
8
        <script type="text/javascript">
9
9
        <!--
10
10
        function validateImpactAnalysis(f)
11
11
        {
12
12
            if (isWhitespace(f.dev_time.value)) {
13
 
                alert('{/literal}{t escape=js}Please enter the estimated development time for this task.{/t}{literal}');
 
13
                alert('{t escape=js}Please enter the estimated development time for this task.{/t}');
14
14
                selectField(f, 'dev_time');
15
15
                return false;
16
16
            }
17
17
            if (!isFloat(f.dev_time.value)) {
18
 
                alert('{/literal}{t escape=js}Please use only floating point numbers (or integers) on the estimated development time field.{/t}{literal}');
 
18
                alert('{t escape=js}Please use only floating point numbers (or integers) on the estimated development time field.{/t}');
19
19
                selectField(f, 'dev_time');
20
20
                return false;
21
21
            }
22
22
            if (isWhitespace(f.impact_analysis.value)) {
23
 
                alert('{/literal}{t escape=js}Please enter the analysis for the changes required by this issue.{/t}{literal}');
 
23
                alert('{t escape=js}Please enter the analysis for the changes required by this issue.{/t}');
24
24
                selectField(f, 'impact_analysis');
25
25
                return false;
26
26
            }
31
31
        }
32
32
        //-->
33
33
        </script>
34
 
        {/literal}
 
34
 
35
35
        <form name="set_initial_impact_form" onSubmit="return validateImpactAnalysis(this);" target="_impact" method="post" action="popup.php">
36
36
        <input type="hidden" name="cat" value="set_initial_impact">
37
37
        <input type="hidden" name="issue_id" value="{$smarty.get.id|intval}">
77
77
        </tr>
78
78
        {/if}
79
79
        </form>
80
 
        {literal}
 
80
 
81
81
        <script type="text/javascript">
82
82
        <!--
83
83
        function validateDeleteReq(f)
84
84
        {
85
85
            if (!hasOneChecked(f, 'item[]')) {
86
 
                alert('{/literal}{t escape=js}Please choose which entries need to be removed.{/t}{literal}');
 
86
                alert('{t escape=js}Please choose which entries need to be removed.{/t}');
87
87
                return false;
88
88
            }
89
 
            if (!confirm('{/literal}{t escape=js}This action will permanently delete the selected entries.{/t}{literal}')) {
 
89
            if (!confirm('{t escape=js}This action will permanently delete the selected entries.{/t}')) {
90
90
                return false;
91
91
            } else {
92
92
                var features = 'width=420,height=200,top=30,left=30,resizable=yes,scrollbars=yes,toolbar=no,location=no,menubar=no,status=no';
103
103
        }
104
104
        //-->
105
105
        </script>
106
 
        {/literal}
 
106
 
107
107
        <tr id="{if $core.current_role > $core.roles.reporter}impact_analysis4{else}impact_analysis1{/if}" {get_display_style element_name="impact_analysis"}>
108
108
          <td colspan="2" width="100%">
109
109
            <b>{t}Further Requirements{/t}:</b>
165
165
        <tr id="impact_analysis5" {get_display_style element_name="impact_analysis"}>
166
166
          <td colspan="2" width="100%">
167
167
            <table width="100%" border="0" cellpadding="2" cellspacing="1">
168
 
              {literal}
 
168
 
169
169
              <script type="text/javascript">
170
170
              <!--
171
171
              function validateNewRequirement(f)
172
172
              {
173
173
                  if (isWhitespace(f.new_requirement.value)) {
174
 
                      alert('{/literal}{t escape=js}Please enter the new requirement for this issue.{/t}{literal}');
 
174
                      alert('{t escape=js}Please enter the new requirement for this issue.{/t}');
175
175
                      selectField(f, 'new_requirement');
176
176
                      return false;
177
177
                  }
182
182
              }
183
183
              //-->
184
184
              </script>
185
 
              {/literal}
 
185
 
186
186
              <form name="add_requirement_form" onSubmit="return validateNewRequirement(this);" target="_requirement" method="post" action="popup.php">
187
187
              <input type="hidden" name="cat" value="add_requirement">
188
188
              <input type="hidden" name="issue_id" value="{$smarty.get.id|intval}">