Bug 10565: (follow-up) make add list/edit list labels sensitive to context
authorGalen Charlton <gmc@esilibrary.com>
Mon, 14 Oct 2013 22:03:58 +0000 (22:03 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 14 Oct 2013 22:43:02 +0000 (22:43 +0000)
This patch fixes a problem where the form for editing an existing list
would be labeled as if a new list were being created.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt

index 5ec0cd1..bbc7b7e 100644 (file)
@@ -27,12 +27,24 @@ function CheckForm() {
 
 <div class="yui-t7">
     <div class="yui-main">
-        <h1>New patron list</h1>
+        <h1>
+            [% IF list.patron_list_id %]
+                Modify patron list
+            [% ELSE %]
+                New patron list
+            [% END %]
+        </h1>
 
         <form method="post" onsubmit="return CheckForm()">
             <fieldset class="rows">
 
-                <legend>Create a new patron list</legend>
+                <legend>
+                    [% IF list.patron_list_id %]
+                    Modify patron list
+                    [% ELSE %]
+                    Create a new patron list
+                    [% END %]
+                </legend>
 
                 <ol>
                     <li>