Project

General

Profile

Revision 7966

add class="btn" to all buttons (bootstrap look and feel)

View differences:

lib/style/common/templates/metacatui/entryForm.js
43 43
    var labelTD = createTD("","right");
44 44
    var TD = createTD("5","left");
45 45
    var button = document.createElement("input");
46
    button.setAttribute("type", "button"); 
46
    button.setAttribute("type", "button");
47
    button.setAttribute("class", "btn"); 
47 48
    button.setAttribute("value", "Add Paragraph to Method Description"); 
48 49
    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
49 50
        button.attachEvent("onclick", new Function("addParagraph("+ index + ", '" + buttonId + "')"));
......
1118 1119
        // Delete button
1119 1120
        var new_row_button = document.createElement( 'input' );
1120 1121
        new_row_button.type = 'button';
1122
        new_row_button.setAttribute("class", "btn"); 
1121 1123
        new_row_button.value = 'Delete';
1122 1124

  
1123 1125
        // Permissions check boxes
lib/style/common/templates/metacatui/entryForm.tmpl
342 342
								<div class="control-group">
343 343
									<label class="control-label" for="addaobutton1"></label>
344 344
									<div class="controls">
345
										<input type="button" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
345
										<input type="button" class="btn" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
346 346
									</div>
347 347
								</div>
348 348
								<div class="control-group">
......
467 467
								<div class="control-group">
468 468
									<label class="control-label" for="addKeywordButton"></label>
469 469
									<div class="controls">
470
										<input type="button" value="Add Keyword" onClick="addKeyword()">
470
										<input type="button" class="btn" value="Add Keyword" onClick="addKeyword()">
471 471
									</div>
472 472
								</div>
473 473
								
......
878 878
								<div class="control-group">
879 879
									<label class="control-label" for="addTaxonButton"></label>
880 880
									<div class="controls">
881
										<input type="button" value="Add Taxon" onClick="addTaxon()">
881
										<input type="button" class="btn" value="Add Taxon" onClick="addTaxon()">
882 882
									</div>
883 883
								</div>
884 884
								
......
979 979
								        [% END %]
980 980
								        	<tr class="sectbody" id="addparabutton1">
981 981
									    		<td align="left">
982
									          		<input type="button" value="Add Paragraph to Method Description" onClick="addParagraph()">
982
									          		<input type="button" class="btn" value="Add Paragraph to Method Description" onClick="addParagraph()">
983 983
									          	</td>
984 984
											</tr>
985 985
										</table>	
......
1364 1364
													          	<input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1365 1365
													          </label>
1366 1366
													          <label class="text inline">	
1367
																<input type="button" value="Delete" onclick="deleteFile(event, [%fileName%]);"/>
1367
																<input type="button" class="btn" value="Delete" onclick="deleteFile(event, [%fileName%]);"/>
1368 1368
															</div>
1369 1369
														[% END %]
1370 1370
												
......
1391 1391
    					</div>
1392 1392
					</div> <!-- end the accordinan -->
1393 1393
					
1394
					<input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="submit">
1394
					<input type="submit" class="btn" onClick="sortInputTags()" value="Submit Data Set Description" name="submit">
1395 1395
				</form>
1396 1396
				
1397 1397
			</div> <!-- end the row -->
lib/style/common/templates/metacatui/confirmData.tmpl
560 560
  	<!-- form submission -->
561 561
	<a name="buttons"></a>
562 562
	<p><span class="text-info">Is the information above correct?</span></p> 
563
	<input type="SUBMIT" value="     Yes, submit    " name="dataCorrect">
564
	<input type="SUBMIT" value="No, go back to editing" name="dataWrong">
563
	<input type="submit" class="btn" value="     Yes, submit    " name="dataCorrect">
564
	<input type="submit" class="btn" value="No, go back to editing" name="dataWrong">
565 565

  
566 566
</form>
567 567

  
......
616 616
							</div>
617 617
							<div class="row-fluid">
618 618
								<div class="offset2 span4 text-left">
619
									<input type="submit" name="loginAction" value="Login">
619
									<input type="submit" class="btn" name="loginAction" value="Login">
620 620
								</div>
621 621
							</div>
622 622
						</div>
lib/style/common/templates/metacatui/genericResponse.tmpl
207 207
                            <em>Do NOT use the back button on your browser.</em>
208 208
                            Submit the description again when you are finished.
209 209
                        </span>
210
                    	<input type="submit" value="Return to Form"/>
210
                    	<input type="submit" class="btn" value="Return to Form"/>
211 211
                    	
212 212
                    </form>
213 213
                [% END %]
lib/style/common/templates/metacatui/deleteData.tmpl
53 53
					</div>
54 54
					<div class="row-fluid">
55 55
						<p>Are you sure you want to delete this document?</p> 
56
				        <input type="SUBMIT" value="Delete document" name="deleteData">
57
				        <input type="SUBMIT" value="   Cancel  " name="cancelData">
56
				        <input type="submit" class="btn" value="Delete document" name="deleteData">
57
				        <input type="submit" class="btn" value="   Cancel  " name="cancelData">
58 58
				    </div>
59 59
				    
60 60
				</form>
lib/style/common/templates/metacatui/loginForm.tmpl
45 45
							</div>
46 46
							<div class="row-fluid">
47 47
								<div class="offset2 span4 text-left">
48
									<input type="submit" name="loginAction" value="Login">
48
									<input type="submit" class="btn" name="loginAction" value="Login">
49 49
								</div>
50 50
							</div>
51 51
						</div>

Also available in: Unified diff