Project

General

Profile

« Previous | Next » 

Revision 7896

accordian-ize the first two entry sections. https://projects.ecoinformatics.org/ecoinfo/issues/5951

View differences:

entryForm.tmpl
6 6
  <script language="JavaScript" type="text/javascript" src="[% styleCommonPath %]/templates/metacatui/entryForm.js">
7 7
  </script>
8 8

  
9
      
10
      
11
      
12 9
	<!-- CONTENT SECTION
13 10
    ======================================================================= -->
14 11
	<article id="EntryForm">
......
54 51
				<p class="text-info">*Denotes a required field.</p>
55 52
			</div>
56 53

  
57

  
58
<form action="[% cgiPrefix %]/register-dataset.cgi" enctype="multipart/form-data" method="post">
54
			<!--  the main form -->
55
			<div class="row-fluid">
56
			
57
<form action="[% cgiPrefix %]/register-dataset.cgi" enctype="multipart/form-data" method="post" class="form-horizontal">
59 58
  <input type="hidden" name="cfg" value="[% cfg %]">
60 59
  <input type="hidden" name="docid" value="[% docid %]">
61 60
  <input type="hidden" name="stage" value="insert">
62 61
  
63
        <table class="tables" cellpadding="5" cellspacing="0">
64
        <tr class="sectheader">
65
          <td colspan="5" align="left">
66
            <span class="label">NAME OF SUBMITTER</span> 
67
            <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Submitter" target="guide" class="smalltext">(What's this?)</a>
68
          </td>
69
          <td class="rightCol"><span><a onClick="submitterBit=swap(event, 'submitterTable', submitterBit)" style="cursor:pointer">Hide</a></span></td>
70
        </tr>
71
  </table>
72
        
73
        <table class="tables" cellpadding="5" cellspacing="0" id="submitterTable">
74
        <tr class="sectbody" id="firstName"><td class="rightCol"><span class="label">*First Name</span><td colspan="5"><input type="TEXT" name="providerGivenName" class="shortwidth" value="[%providerGivenName%]">
75
        </td></tr>
76
  <tr class="sectbody" id="lastName"><td class="rightCol"><span class="label">*Last Name</span><td colspan="5"><input type="TEXT" name="providerSurName" class="shortwidth" value="[%providerSurName%]">
77
        </td></tr>
78
  </table>
79
  
80
  
81
        <table class="tables" cellpadding="5" cellspacing="0">
82
        <tr class="sectheader">
83
          <td colspan="5" align="left">
84
            <span class="label">BASIC INFORMATION</span>
85
            <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation" target="guide" class="smalltext">(What's this?)</a>
86
          </td>
87
          <td class="rightCol"><span><a onClick="basicInfoBit=swap(event, 'basicInfoTable', basicInfoBit)" style="cursor:pointer">Hide</a></span></td>
88
        </tr>
89
  </table>
90
        
91
        <table class="tables" cellpadding="5" cellspacing="0" id="basicInfoTable">
92
  <tr class="sectbody" id="title"><td class="rightCol"><span class="label">*Data Set Title</span></td><td colspan="5"><input type="TEXT" name="title" value="[%title%]" class="longwidth">
93
        </td></tr>
94
    
95
  [% IF show.siteList == 'true' %]
96
        <tr class="sectbody" id="sitelist"><td class="rightCol"><span class="label">*[% config.site | ucfirst %] Name</span></td>
97
    <td colspan="5"><select name="site" class="longwidth">
98
      [% IF form == 're_entry' %]
99
        <option selected>[%site%]</option>
100
      [% ELSE %]
101
          <option>Select your [% config.site %] here.</option>
102
      [% END %]
103
            [% FOREACH site = siteList %]
104
              <option>[% site %]</option>
105
            [% END %]
106
          </select></td></tr>
107
[% END %]
108
        
109
  [% IF show.wgList == 'true' %]
110
        <tr class="sectbody"><td class="rightCol"><span class="label">*NCEAS Project(s):</span></td>
111
            <td colspan="5"><select name="wg" multiple="multiple" size="5" class="longwidth">
112
            [% FOREACH project = projects %]
113
              [% SET pname = $project.3 %]
114
              [% IF pname.length > 50 %]
115
                [% SET sname = $project.4 %]
116
              [% END %]
117
              [% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
118
              [% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
119
              [% SET sel = '' %]
120
              [% FOREACH group = wg %]
121
                  [% IF group == value %]
122
                      [% SET sel = 'selected="selected"' %]
123
                  [% END %]
124
              [% END %]
125
              <option value="[% value %]" [% sel %]>[% label %]</option>
126
            [% END %]
127
          </select></td></tr>
128
[% END %]
129
[% IF show.organization == 'true' %]
130
        <tr class="sectbody"><td class="rightCol"><span class="label">*Organization Name</span></td>
131
            <td colspan="5"><input type="TEXT" name="site" class="longwidth" value="[%site%]"></td></tr>
132
[% END %]
133
    </table>
62
  				<div class="accordion" id="entryFormAccordian">
63
					<div class="accordion-group">
64
					
65
						<!-- SUBMITTER -->
66
						<div class="accordion-heading">
67
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSubmitter" href="#none">
68
								Submitter  
69
							</a>
70
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Submitter"><i class="icon-question-sign"></i></a>
71
						</div>
72
						<div id="collapseSubmitter" class="accordion-body collapse in">
73
							<div class="accordion-inner">
74
								<!--  the INPUT -->
75
								<div class="control-group">
76
									<label class="control-label" for="providerGivenName">*First Name</label>
77
									<div class="controls">
78
										<input type="text" name="providerGivenName" value="[%providerGivenName%]">
79
									</div>
80
								</div>
81
								<div class="control-group">
82
									<label class="control-label" for="providerSurName">*Last Name</label>
83
									<div class="controls">
84
										<input type="text" name="providerSurName" value="[%providerSurName%]">
85
									</div>
86
								</div>
87
								
88
						    </div>
89
						</div>
90
						
91
						<!-- TEMPLATE -->
92
						<div class="accordion-heading">
93
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
94
								Basic Information  
95
							</a>
96
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
97
						</div>
98
						<div id="collapseTemplate" class="accordion-body collapse in">
99
							<div class="accordion-inner">
100
								<!--  the INPUT -->
101
								<div class="control-group">
102
									<label class="control-label" for="template">*template</label>
103
									<div class="controls">
104
										<input type="text" name="template" value="[%template%]">
105
									</div>
106
								</div>
107
								
108
						    </div>
109
						</div>
110
						
111
						<!-- BASIC -->
112
						<div class="accordion-heading">
113
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseBasic" href="#none">
114
								Basic Information  
115
							</a>
116
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
117
						</div>
118
						<div id="collapseBasic" class="accordion-body collapse in">
119
							<div class="accordion-inner">
120
								<!--  the INPUT -->
121
								<div class="control-group">
122
									<label class="control-label" for="title">*Data Set Title</label>
123
									<div class="controls">
124
										<input type="text" name="title" value="[%title%]">
125
									</div>
126
								</div>
127
								[% IF show.siteList == 'true' %]
128
									<div class="control-group">
129
										<label class="control-label" for="site">*[% config.site | ucfirst %] Name</label>
130
										<div class="controls">
131
											<select name="site">
132
												[% IF form == 're_entry' %]
133
													<option selected>[%site%]</option>
134
												[% ELSE %]
135
													<option>Select your [% config.site %] here.</option>
136
												[% END %]
137
												[% FOREACH site = siteList %]
138
													<option>[% site %]</option>
139
												[% END %]
140
											</select>
141
										</div>
142
									</div>
143
								[% END %]
144
								[% IF show.wgList == 'true' %]
145
									<div class="control-group">
146
										<label class="control-label" for="site">*NCEAS Project(s):</label>
147
										<div class="controls">
148
											<select name="wg" multiple="multiple" size="5">
149
												[% FOREACH project = projects %]
150
													[% SET pname = $project.3 %]
151
													[% IF pname.length > 50 %]
152
														[% SET sname = $project.4 %]
153
													[% END %]
154
													[% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
155
													[% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
156
													[% SET sel = '' %]
157
													[% FOREACH group = wg %]
158
														[% IF group == value %]
159
															[% SET sel = 'selected="selected"' %]
160
														[% END %]
161
													[% END %]
162
													<option value="[% value %]" [% sel %]>[% label %]</option>
163
												[% END %]
164
											</select>
165
										</div>
166
									</div>
167
								[% END %]
168
								[% IF show.organization == 'true' %]
169
									<div class="control-group">
170
										<label class="control-label" for="site">*Organization</label>
171
										<div class="controls">
172
											<input type="text" name="site" value="[%site%]">
173
										</div>
174
									</div>
175
								[% END %]
176
								
177
						    </div>
178
						</div>
179
   
180

  
134 181
       
135 182
    <table class="tables" cellpadding="5" cellspacing="0">
136 183
        <tr class="sectheader">
......
1127 1174
              
1128 1175
    </table>
1129 1176
    <p></p>
1177
    
1178
    					</div>
1179
					</div> <!-- end the accordinan -->
1130 1180
   
1131 1181
</form>
1132

  
1182
			</div> <!-- end the row -->
1183
			
1133 1184
		</div>
1134 1185
	</article>
1135 1186

  

Also available in: Unified diff