Project

General

Profile

Revision 7875

use fluid layout from metacatui/bootstrap css. https://projects.ecoinformatics.org/ecoinfo/issues/5951

View differences:

loginForm.tmpl
1 1
[% INCLUDE "genericHeader.tmpl" %]
2
[% IF message != '' %]
3
	<p>[% message %]</p>
4
	<br />
5
	Dont have an account yet? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">Create a new account</a>
6
	<br />
7
	Forgot your password? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">Reset your password</a>
8
	<br />
9
[% END %]
10 2
	
11 3
<script language="JavaScript" type="text/javascript" src="[% styleCommonPath %]/templates/metacatui/login.js"></script>
4

  
5
	<!-- CONTENT SECTION
6
    ======================================================================= -->
7
	<article id="Login">
8
		<div class="container">
9
			<div class="row-fluid">
10
				<div class="span6 pagination-left">
11
					<h2>Login</h2>
12 12
  
13
<form method="post" action="[% cgiPrefix %]/register-dataset.cgi" onsubmit="return submitform(this);" >
14
	<input type="hidden" name="stage" value="login"> 
15
	<input type="hidden" name="username" value=""> 
16
	<input type="hidden" name="cfg" value="[%cfg%]"> 
13
					<form method="post" action="[% cgiPrefix %]/register-dataset.cgi" onsubmit="return submitform(this);" >
14
						<input type="hidden" name="stage" value="login"> 
15
						<input type="hidden" name="username" value=""> 
16
						<input type="hidden" name="cfg" value="[%cfg%]"> 
17
					
18
						<div>
19
							<div class="row-fluid">
20
								<div class="span2 text-left">Username</div>
21
								<div class="span4 text-left"><input name="uid" type="text" value=""></div>
22
							</div>
23
							<div class="row-fluid">
24
								<div class="span2 text-left">Organization</div>
25
								<div class="span4 text-left"><select name="organization">
26
										<option value="" selected>&#8212; choose one &#8212;</option>
27
										<option value="NCEAS">NCEAS</option>
28
										<option value="LTER">LTER</option>
29
										<option value="KU">KU</option>
30
										<option value="OBFS">OBFS</option>
31
										<option value="OSUSB">OSUSB</option>
32
										<option value="PARC">PARC</option>
33
										<option value="PISCO">PISCO</option>
34
										<option value="SAEON">SAEON</option>
35
										<option value="SANParks">SANParks</option>
36
										<option value="SDSC">SDSC</option>
37
										<option value="UCNRS">UCNRS</option>
38
										<option value="unaffiliated">unaffiliated</option>
39
								</select></div>
40
							</div>
41
							<div class="row-fluid">
42
								<div class="span2 text-left">Password</div>
43
								<div class="span4 text-left"><input name="password" type="password" maxlength="50"
44
									value=""></div>
45
							</div>
46
							<div class="row-fluid">
47
								<div class="offset2 span4 text-left">
48
									<input type="submit" name="loginAction" value="Login">
49
								</div>
50
							</div>
51
						</div>
52
						
53
					</form>
54
				</div>
55
				
56
				<div class="span6 pagination-left">
57
					[% IF message != '' %]
58
						<p class="lead">[% message %]</p>
59
					[% END %]
60
					
61
					<div class="row-fluid">
62
						<div class="span6 text-left">
63
							<p>Don't have an account yet?</p>
64
						</div>
65
						<div class="span6 text-left">
66
							<a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">
67
								<i class="icon-user"></i>
68
								Create a new account
69
							</a>
70
						</div>
71
					</div>
72
					
73
					<div class="row-fluid">
74
						<div class="span6 text-left">
75
							<p>Forgot your password?</p>
76
						</div>
77
						<div class="span6 text-left">							
78
							<a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">
79
								<i class="icon-key"></i>
80
								Reset your password
81
							</a>
82
						</div>
83
					</div>
84
						
85
				</div>
86
				
87
			</div>
88
		</div>
89
	</article>
17 90

  
18
	<table>
19
		<tr>
20
	        <td>Username:</td>
21
	        <td>
22
				<input name="uid" type="text" value="">
23
			</td>
24
		</tr>
25

  
26
		<tr>
27
			<td>Organization:</td>
28
	        <td>
29
		        <select name="organization">
30
		          <option value=""    selected>&#8212; choose one &#8212;</option>
31
		          <option value="NCEAS"       >NCEAS</option>
32
		          <option value="LTER"        >LTER</option>
33
		          <option value="KU"          >KU</option>
34
		          <option value="OBFS"        >OBFS</option>
35
		          <option value="OSUSB"       >OSUSB</option>
36
		          <option value="PARC"        >PARC</option>
37
		          <option value="PISCO"       >PISCO</option>
38
		          <option value="SAEON"       >SAEON</option>
39
		          <option value="SANParks"    >SANParks</option>
40
		          <option value="SDSC"        >SDSC</option>
41
		          <option value="UCNRS"       >UCNRS</option>
42
		          <option value="unaffiliated">unaffiliated</option>
43
		        </select>
44
	        </td>
45
		</tr>
46

  
47
		<tr>
48
	        <td>Password:</td>
49
	        <td>
50
	        	<input name="password" type="password" maxlength="50" value="">
51
	        </td>
52
		</tr>
53
      
54
		<tr>
55
			<td>&nbsp;</td>
56
	      	<td>
57
				<input type="submit" name="loginAction" value="Login">
58
			</td>
59
		</tr>
60
	</table>
61
</form>
62

  
63 91
[% INCLUDE "genericFooter.tmpl" %]

Also available in: Unified diff