View | Details | Raw Unified | Return to bug 11770
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tt (-40 / +5 lines)
Lines 1-41 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Administration &rsaquo; [% IF ( add_form ) %]Road types &rsaquo; [% IF ( roadtypeid ) %] Modify road type[% ELSE %] New road type[% END %][% ELSE %][% IF ( delete_confirm ) %]Road types &rsaquo; Confirm deletion of road type[% ELSE %] Road type[% END %][% END %]</title>
2
<title>Koha &rsaquo; Administration &rsaquo; [% IF ( add_form ) %]Road types &rsaquo; [% IF ( roadtypeid ) %] Modify road type[% ELSE %] New road type[% END %][% ELSE %][% IF ( delete_confirm ) %]Road types &rsaquo; Confirm deletion of road type[% ELSE %] Road type[% END %][% END %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript">
5
//<![CDATA[
6
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
        function isNotNull(f,noalert) {
8
                if (f.value.length == 0) {
9
        return false;
10
                }
11
        return true;
12
        }
13
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
14
        function isNum(v,maybenull) {
15
        var n = new Number(v.value);
16
        if (isNaN(n)) {
17
                return false;
18
                }
19
        if (maybenull == 0 && v.value =='') {
20
                return false;
21
        }
22
        return true;
23
        }
24
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
25
        function Check(f) {
26
                var ok=1;
27
                var _alertString="";
28
                var alertString2;
29
                if (f.road_type.value.length == 0  ) {
30
                        _alertString += "\n- " + _("Road type");
31
                        alert(_alertString);	
32
                }
33
                else{
34
                document.Aform.submit();
35
                }
36
        }
37
//]]>
38
</script>
39
</head>
4
</head>
40
<body id="admin_roadtype" class="admin">
5
<body id="admin_roadtype" class="admin">
41
[% INCLUDE 'header.inc' %]
6
[% INCLUDE 'header.inc' %]
Lines 55-61 Link Here
55
		<h1>New road type</h1>
20
		<h1>New road type</h1>
56
	[% END %]
21
	[% END %]
57
22
58
	<form action="[% script_name %]" name="Aform" method="post">
23
    <form action="[% script_name %]" name="Aform" method="post" class="validated">
59
	<input type="hidden" name="op" value="add_validate" />
24
	<input type="hidden" name="op" value="add_validate" />
60
	<input type="hidden" name="checked" value="0" />
25
	<input type="hidden" name="checked" value="0" />
61
	<input type="hidden" name="roadtypeid" value="[% roadtypeid %]" />
26
	<input type="hidden" name="roadtypeid" value="[% roadtypeid %]" />
Lines 67-78 Link Here
67
	</li>
32
	</li>
68
[% END %]
33
[% END %]
69
	<li>			
34
	<li>			
70
		<label for="road_type">Road type: </label>
35
        <label for="road_type" class="required">Road type: </label>
71
	<input  type="text" name="road_type" id="road_type" size="80" maxlength="100" value="[% road_type |html %]" />
36
        <input  type="text" name="road_type" id="road_type" size="80" maxlength="100" value="[% road_type |html %]" required="required" class="required" /> <span class="required">Required</span>
72
	</li></ol></fieldset>
37
	</li></ol></fieldset>
73
	
38
	
74
	<fieldset class="action">					  
39
	<fieldset class="action">					  
75
	<input class="button" type="button" onclick="Check(this.form)" value="Submit" />	<a class="cancel" href="/cgi-bin/koha/admin/roadtype.pl">Cancel</a>
40
    <input class="button" type="submit" value="Submit" />
41
    <a class="cancel" href="/cgi-bin/koha/admin/roadtype.pl">Cancel</a>
76
	</fieldset>
42
	</fieldset>
77
	</form>
43
	</form>
78
[% END %]
44
[% END %]
79
- 

Return to bug 11770