Project

General

Profile

« Previous | Next » 

Revision 9558

Added by Chris Jones over 8 years ago

Add a funding input textbox into the entry form (not hidden per Matt), and add the hidden inputs into the confirmData and genericResponse templates for maintaining state across stages.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

View differences:

lib/style/common/templates/metacatui/confirmData.tmpl
40 40
      <p><span class="text-info">[% config.site | ucfirst %] Name:</span>  [%site%]</p>
41 41
    [% END %]
42 42
[% END %]
43
<p><span class="text-info">Grant Number:</span>  [%funding%]</p>
43 44

  
44 45
<hr class="rule" />
45 46
<a name="DataSetOriginator"></a>
lib/style/common/templates/metacatui/entryForm.tmpl
121 121
										<input type="text" name="title" value="[%title%]">
122 122
									</div>
123 123
								</div>
124

  
124 125
								[% IF show.siteList == 'true' %]
125 126
									<div class="control-group">
126 127
										<label class="control-label" for="site">*[% config.site | ucfirst %] Name</label>
......
138 139
										</div>
139 140
									</div>
140 141
								[% END %]
142

  
141 143
								[% IF show.wgList == 'true' %]
142 144
									<div class="control-group">
143 145
										<label class="control-label" for="site">*NCEAS Project(s):</label>
......
162 164
										</div>
163 165
									</div>
164 166
								[% END %]
167

  
165 168
								[% IF show.organization == 'true' %]
166 169
									<div class="control-group">
167 170
										<label class="control-label" for="site">*Organization</label>
......
170 173
										</div>
171 174
									</div>
172 175
								[% END %]
176

  
177
								[% IF show.funding == 'true' %]
178
									<div id="funding-group" class="control-group">
179
										<label class="control-label" for="site">Grant Number</label>
180
										<div class="controls">
181
											<input type="text" id="funding" name="funding" value="[%funding%]">
182
										</div>
183
									</div>
184
								[% END %]
173 185
								
174 186
						    </div>
175 187
						</div>
lib/style/common/templates/metacatui/genericResponse.tmpl
65 65
                                <input type="hidden" name="wg" value="[%group%]">
66 66
                            [% END %]
67 67
                        [% END %]
68
                        <input type="hidden" name="funding" value="[%funding%]">
68 69
                        <input type="hidden" name="identifier" value="[%identifier%]">
69 70
                        <input type="hidden" name="title" value="[%title%]">
70 71
                        <input type="hidden" name="origNamefirst0" value="[%origNamefirst0%]">

Also available in: Unified diff