bugfix on adding a subfield

This commit is contained in:
tipaul 2007-06-26 09:17:56 +00:00
parent 9b05e0f475
commit 8b29900d24
2 changed files with 5 additions and 7 deletions

View File

@ -377,7 +377,6 @@ if ( $op eq 'add_form' ) {
$row_data{row} = $j;
push( @loop_data, \%row_data );
use Data::Dumper;
warn "push : ".Dumper(%row_data);
}
$template->param( 'use-heading-flags-p' => 1 );
$template->param( 'heading-edit-subfields-p' => 1 );

View File

@ -24,9 +24,6 @@
<div id="tabs">
<p>Edit subfield
<!-- TMPL_LOOP NAME="loop" -->
<!-- TMPL_IF name="subfieldcode" -->
<input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" />
<!-- /TMPL_IF -->
<a
href="javascript:active('sub<!-- TMPL_VAR NAME='subfieldcode' -->');"
class="tab_inactive"
@ -44,9 +41,11 @@
<div id="content_sub<!-- TMPL_VAR NAME="subfieldcode" -->" class="content_hidden">
<h3>Basic constaints</h3>
<!-- TMPL_UNLESS name="subfieldcode" -->
<p>Subfield code: <input type="text" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
<!-- /TMPL_UNLESS -->
<!-- TMPL_IF name="subfieldcode" -->
<p>Subfield code: <!-- TMPL_VAR NAME="subfieldcode" --> <input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
<!-- TMPL_ELSE -->
<p>Subfield code: <input type="text" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
<!-- /TMPL_IF -->
<p><label for="liblibrarian<!-- TMPL_VAR NAME="row" -->">Text for librarian</label><input id="liblibrarian<!-- TMPL_VAR NAME="row" -->" type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" -->" size="40" maxlength="80" /></p>
<p><label for="libopac<!-- TMPL_VAR NAME="row" -->">Text for OPAC</label><input type="text" id="libopac<!-- TMPL_VAR NAME="row" -->" name="libopac" value="<!-- TMPL_VAR NAME="libopac" -->" size="40" maxlength="80" /></p>
<p><label for="repeatable<!-- TMPL_VAR NAME="row" -->">Repeatable</label><!-- TMPL_VAR NAME="repeatable" -->&nbsp;</p>