Project

General

Profile

« Previous | Next » 

Revision 8543

Added by Jing Tao almost 11 years ago

Add the code to dispaly the label for the organization selection.

View differences:

lib/style/common/templates/ldapResetPass.tmpl
35 35
          </td>
36 36
          <td align="right">
37 37
            <select name="o">
38
 [% FOREACH org = orgList %]
39
		[% IF allParams.o == org %]
40
                  <option value="[% org %]" selected>[% org %]</option>
41
                [% ELSE %]
42
                  <option value="[% org %]">[% org %]</option>
38
                [% FOREACH orgDisplayHash = orgList %]
39
                  [% FOREACH pair IN orgDisplayHash.pairs %]
40
                    [% IF allParams.o == pair.key %]
41
                        <option value="[% pair.key %]" selected>[% pair.value %]</option>
42
                    [% ELSE %]
43
                        <option value="[% pair.key %]">[% pair.value %]</option>
44
                    [% END %]
45
                  [% END %]
43 46
                [% END %]
44
              [% END %]
45 47
            </select>
46 48
          </td>
47 49
        </tr>
lib/style/common/templates/ldapChangePass.tmpl
35 35
          </td>
36 36
          <td align="right">
37 37
            <select name="o">
38
              [% FOREACH org = orgList %]
39
		[% IF allParams.o == org %]
40
                  <option value="[% org %]" selected>[% org %]</option>
41
                [% ELSE %]
42
                  <option value="[% org %]">[% org %]</option>
43
                [% END %]
44
              [% END %]
38
              [% FOREACH orgDisplayHash = orgList %]
39
                  [% FOREACH pair IN orgDisplayHash.pairs %]
40
                    [% IF allParams.o == pair.key %]
41
                        <option value="[% pair.key %]" selected>[% pair.value %]</option>
42
                    [% ELSE %]
43
                        <option value="[% pair.key %]">[% pair.value %]</option>
44
                    [% END %]
45
                  [% END %]
46
               [% END %]
45 47
            </select>
46 48
          </td>
47 49
        </tr>

Also available in: Unified diff