|
Lines 236-242
elsif ($op eq 'save') {
Link Here
|
| 236 |
elsif ($op eq 'new') { # this is a new layout |
236 |
elsif ($op eq 'new') { # this is a new layout |
| 237 |
$layout = C4::Patroncards::Layout->new(); |
237 |
$layout = C4::Patroncards::Layout->new(); |
| 238 |
my @fields = (); |
238 |
my @fields = (); |
| 239 |
for (my $field; $field < 4; $field++) { # limit 3 text fields |
239 |
for (my $field = 0; $field < 4; $field++) { # limit 3 text fields |
| 240 |
push @fields, ( |
240 |
push @fields, ( |
| 241 |
"field_$field" . "_font" => get_font_types(), |
241 |
"field_$field" . "_font" => get_font_types(), |
| 242 |
"field_$field" . "_text_alignment" => get_text_justification_types(), |
242 |
"field_$field" . "_text_alignment" => get_text_justification_types(), |
|
Lines 244-250
elsif ($op eq 'new') { # this is a new layout
Link Here
|
| 244 |
} |
244 |
} |
| 245 |
|
245 |
|
| 246 |
my @images = (); |
246 |
my @images = (); |
| 247 |
for (my $image; $image < 3; $image++) { #limit 2 images |
247 |
for (my $image = 0; $image < 3; $image++) { #limit 2 images |
| 248 |
push @images, ( |
248 |
push @images, ( |
| 249 |
"image_$image" . "_image_source" => $image_sources, |
249 |
"image_$image" . "_image_source" => $image_sources, |
| 250 |
"image_$image" . "_image_name" => $image_names, |
250 |
"image_$image" . "_image_name" => $image_names, |
| 251 |
- |
|
|