Bug 10565: (follow-up) make add list/edit list labels sensitive to context

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>
This commit is contained in:
Galen Charlton 2013-10-14 22:03:58 +00:00
parent 32e662f0c7
commit 353e000e2a

View 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>