Project

General

Profile

« Previous | Next » 

Revision 2001

Added by Matt Jones over 20 years ago

Adjusted the text on the NCEAS repository page. Changed the project list
so that it now displays short title but uses the long title in the
entry. This was doen because the long titles were far too long to display
decently in the list (the box scrolled way off the right of the page).

View differences:

entryForm.tmpl
148 148
          <span class="required">*</span><span class="label">NCEAS Project(s):</span></p>
149 149
          <select name="wg" multiple="multiple" size="5">
150 150
            [% FOREACH project = projects %]
151
              [% SET label = "${project.1}: $project.3 (NCEAS ${project.0})" %]
151
              [% SET pname = $project.3 %]
152
              [% IF pname.length > 50 %]
153
                [% SET sname = $project.4 %]
154
              [% END %]
155
              [% SET label = "${project.1}: $project.4 (NCEAS ${project.0})" %]
156
              [% SET value = "${project.1}: $project.3 (NCEAS ${project.0})" %]
152 157
              [% SET sel = '' %]
153 158
              [% FOREACH group = wg %]
154
                  [% IF group == label %]
159
                  [% IF group == value %]
155 160
                      [% SET sel = 'selected="selected"' %]
156 161
                  [% END %]
157 162
              [% END %]
158
              <option [% sel %]>[% label %]</option>
163
              <option value="[% value %]" [% sel %]>[% label %]</option>
159 164
            [% END %]
160 165
          </select>
161 166
[% END %]

Also available in: Unified diff