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

(-)a/admin/preferences.pl (+2 lines)
Lines 63-68 sub _get_chunk { Link Here
63
63
64
    if ( $options{'class'} && $options{'class'} eq 'password' ) {
64
    if ( $options{'class'} && $options{'class'} eq 'password' ) {
65
        $chunk->{'input_type'} = 'password';
65
        $chunk->{'input_type'} = 'password';
66
    } elsif ( $options{'class'} && $options{'class'} eq 'date' ) {
67
        $chunk->{'dateinput'} = 1;
66
    } elsif ( $options{'type'} && ( $options{'type'} eq 'opac-languages' || $options{'type'} eq 'staff-languages' ) ) {
68
    } elsif ( $options{'type'} && ( $options{'type'} eq 'opac-languages' || $options{'type'} eq 'staff-languages' ) ) {
67
        my $current_languages = { map { +$_, 1 } split( /\s*,\s*/, $value ) };
69
        my $current_languages = { map { +$_, 1 } split( /\s*,\s*/, $value ) };
68
70
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl (-2 / +1 lines)
Lines 75-81 Link Here
75
                    <!-- TMPL_IF NAME="type_text" -->
75
                    <!-- TMPL_IF NAME="type_text" -->
76
                    <!-- TMPL_VAR NAME="contents" -->
76
                    <!-- TMPL_VAR NAME="contents" -->
77
                    <!-- TMPL_ELSIF NAME="type_input" -->
77
                    <!-- TMPL_ELSIF NAME="type_input" -->
78
                    <input type="<!-- TMPL_VAR NAME="input_type" DEFAULT="text" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="short" -->" value="<!-- TMPL_VAR NAME="value" -->" autocomplete="off" />
78
                    <input type="<!-- TMPL_VAR NAME="input_type" DEFAULT="text" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="short" -->" value="<!-- TMPL_VAR NAME="value" -->" autocomplete="off" /> <!-- TMPL_IF NAME="dateinput" --><span class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></span><!-- /TMPL_IF -->
79
                    <!-- TMPL_ELSIF NAME="type_select" -->
79
                    <!-- TMPL_ELSIF NAME="type_select" -->
80
                    <select name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="choice" -->">
80
                    <select name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="choice" -->">
81
                        <!-- TMPL_LOOP NAME="CHOICES" -->
81
                        <!-- TMPL_LOOP NAME="CHOICES" -->
82
- 

Return to bug 4963