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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-1 / +1 lines)
Lines 96-102 Link Here
96
                                                [% FOREACH text_field IN table_loo.text_fields %]
96
                                                [% FOREACH text_field IN table_loo.text_fields %]
97
                                                    [% IF ( text_field.select_field ) %]
97
                                                    [% IF ( text_field.select_field ) %]
98
                                                        <td>
98
                                                        <td>
99
                                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit&element_id=[% text_field.field_value | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
99
                                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit_form&element_id=[% text_field.field_value | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
100
                                                            [% IF ( print ) %]
100
                                                            [% IF ( print ) %]
101
                                                                <a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa-solid fa-share-from-square"></i> Export</a>
101
                                                                <a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa-solid fa-share-from-square"></i> Export</a>
102
                                                            [% END %]
102
                                                            [% END %]
(-)a/patroncards/edit-layout.pl (-1 / +1 lines)
Lines 80-86 sub _set_selected { Link Here
80
    return \@select_list;
80
    return \@select_list;
81
}
81
}
82
82
83
if ($op eq 'cud-edit') {
83
if ($op eq 'edit_form') {
84
    warn sprintf("Error performing '%s': No 'layout_id' passed in.", $op) unless ($layout_id);
84
    warn sprintf("Error performing '%s': No 'layout_id' passed in.", $op) unless ($layout_id);
85
    $layout = C4::Patroncards::Layout->retrieve(layout_id => $layout_id);
85
    $layout = C4::Patroncards::Layout->retrieve(layout_id => $layout_id);
86
    $layout_xml = XMLin($layout->get_attr('layout_xml'), ForceArray => 1);
86
    $layout_xml = XMLin($layout->get_attr('layout_xml'), ForceArray => 1);
(-)a/patroncards/edit-profile.pl (-1 / +1 lines)
Lines 45-51 my @label_template = (); Link Here
45
45
46
my $units = get_unit_values();
46
my $units = get_unit_values();
47
47
48
if ($op eq 'cud-edit') { # FIXME This looks like edit_form ?
48
if ($op eq 'edit_form') { # FIXME This looks like edit_form ?
49
    $profile = C4::Patroncards::Profile->retrieve(profile_id => $profile_id);
49
    $profile = C4::Patroncards::Profile->retrieve(profile_id => $profile_id);
50
    $template_list = get_all_templates({ fields => [ qw( template_id template_code profile_id ) ] });
50
    $template_list = get_all_templates({ fields => [ qw( template_id template_code profile_id ) ] });
51
}
51
}
(-)a/patroncards/edit-template.pl (-2 / +1 lines)
Lines 45-51 my $profile_list = undef; Link Here
45
45
46
my $units = get_unit_values();
46
my $units = get_unit_values();
47
47
48
if ($op eq 'cud-edit') { # FIXME This looks like edit_form
48
if ($op eq 'edit_form') { # FIXME This looks like edit_form
49
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
49
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
50
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, 0 ], creator => 'Patroncards'} } );
50
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, 0 ], creator => 'Patroncards'} } );
51
}
51
}
52
- 

Return to bug 36877