~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/customer_notes.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:
5
5
<!--
6
6
var url = '{$smarty.server.PHP_SELF}';
7
7
var cno_id = {$smarty.get.id|intval|default:''};
8
 
{literal}
 
8
 
9
9
function populateCustomerComboBox()
10
10
{
11
11
  if (cno_id == '') {
18
18
function validateForm()
19
19
{
20
20
  if (Eventum.getField('customer').val() == '') {
21
 
      alert('{/literal}{t escape=js}Please choose the customer for this new note.{/t}{literal}');
 
21
      alert('{t escape=js}Please choose the customer for this new note.{/t}');
22
22
      Validation.selectField('customer');
23
23
      return false;
24
24
  }
27
27
function checkDelete()
28
28
{
29
29
  if (!Validation.hasOneChecked('items[]')) {
30
 
      alert('{/literal}{t escape=js}Please select at least one of the notes.{/t}{literal}');
 
30
      alert('{t escape=js}Please select at least one of the notes.{/t}');
31
31
      return false;
32
32
  }
33
 
  if (!confirm('{/literal}{t escape=js}This action will permanently remove the selected entries.{/t}{literal}')) {
 
33
  if (!confirm('{t escape=js}This action will permanently remove the selected entries.{/t}')) {
34
34
      return false;
35
35
  } else {
36
36
      return true;
46
46
  });
47
47
//-->
48
48
</script>
49
 
{/literal}
 
49
 
50
50
<form name="release_form" onSubmit="return validateForm(this);" method="post">
51
51
{if $smarty.get.cat|default:'' == 'edit'}
52
52
<input type="hidden" name="cat" value="update">