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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (+27 lines)
Lines 1053-1058 Link Here
1053
                        </div> <!-- /.row -->
1053
                        </div> <!-- /.row -->
1054
                    [% END %]
1054
                    [% END %]
1055
1055
1056
                    [% USE Dumper %]
1057
                    [% IF consent_types.size %]
1058
                        [% FOREACH consent_type IN consent_types.keys %]
1059
                            [% IF consent_type != 'GDPR_PROCESSING' %]
1060
                            [% SET consent_title = ( consent_types.$consent_type.title.$lang || consent_type.title.en ) %]
1061
                            [% SET consent_desc  = ( consent_types.$consent_type.description.$lang || consent_type.description.en )  %]
1062
                            <div class="row">
1063
                                <div class="col">
1064
                                    <fieldset class="rows memberentry_plugin_consent">
1065
                                        <legend>[% consent_title | html %]</legend>
1066
                                        <ol>
1067
                                            <li>
1068
                                                <div class="label"></div>
1069
                                                <p>[% consent_desc | html %]</p>
1070
                                                <label class="checkbox-label" for="check_[% consent_type | html %]">
1071
                                                    <input type="checkbox" name="check_[% consent_type | html %]" id="check_[% consent_type | html %]" value="agreed">
1072
                                                    <span>Do you agree?</span>
1073
                                                </label>
1074
                                            </li>
1075
                                        </ol>
1076
                                    </fieldset>
1077
                                </div> <!-- /.col -->
1078
                            </div> <!-- /.row -->
1079
                            [% END %]
1080
                        [% END %]
1081
                    [% END %]
1082
1056
                    [% IF Koha.Preference('PrivacyPolicyConsent') && op != 'edit' %]
1083
                    [% IF Koha.Preference('PrivacyPolicyConsent') && op != 'edit' %]
1057
                        <div class="row">
1084
                        <div class="row">
1058
                            <div class="col">
1085
                            <div class="col">
(-)a/opac/opac-memberentry.pl (-1 / +4 lines)
Lines 33-38 use C4::Members::Messaging qw( SetMessagingPreferencesFromDefaults ); Link Here
33
use Koha::AuthUtils;
33
use Koha::AuthUtils;
34
use Koha::Patrons;
34
use Koha::Patrons;
35
use Koha::Patron::Consent;
35
use Koha::Patron::Consent;
36
use Koha::Patron::Consents;
36
use Koha::Patron::Modification;
37
use Koha::Patron::Modification;
37
use Koha::Patron::Modifications;
38
use Koha::Patron::Modifications;
38
use C4::Scrubber;
39
use C4::Scrubber;
Lines 128-133 foreach my $attr (@$attributes) { Link Here
128
    }
129
    }
129
}
130
}
130
131
132
my $consent_types = Koha::Patron::Consents->available_types;
133
$template->param( consent_types => $consent_types );
134
131
if ( $op eq 'cud-create' ) {
135
if ( $op eq 'cud-create' ) {
132
136
133
    my %borrower = ParseCgiForBorrower($cgi);
137
    my %borrower = ParseCgiForBorrower($cgi);
134
- 

Return to bug 38769