Project

General

Profile

« Previous | Next » 

Revision 8541

Added by Jing Tao almost 11 years ago

Read the organization label and name from a hash.

View differences:

lib/style/common/templates/ldapRegister.tmpl
74 74
                   value="[% allParams.o %]"/>
75 75
            [% ELSE %]
76 76
            <select name="o">
77
                [% FOREACH org = orgList %]
78
                  [% IF allParams.o == org %]
79
                    <option value="[% org %]" selected>[% org %]</option>
80
                  [% ELSE %]
81
                    <option value="[% org %]">[% org %]</option>
77
                [% FOREACH orgDisplayHash = orgList %]
78
                  [% FOREACH pair IN orgDisplayHash.pairs %]
79
                    [% IF allParams.o == pair.key %]
80
                        <option value="[% pair.key %]" selected>[% pair.value %]</option>
81
                    [% ELSE %]
82
                        <option value="[% pair.key %]">[% pair.value %]</option>
83
                    [% END %]
82 84
                  [% END %]
83 85
                [% END %]
84 86
               </select>

Also available in: Unified diff