Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change login, modify css

  • Loading branch information...
commit 1ad45cd64f6381e7f872200f1766712f6506ea5e 1 parent 946cd8c
Elizabeth Anne Bartos authored
Showing with 69 additions and 32 deletions.
  1. +15 −5 login.pl
  2. +54 −27 portfolio.css
View
20 login.pl
@@ -130,7 +130,17 @@
#}
print header,
- start_html('Login to portfolio manager');
+ start_html( -title=>"Login to portfolio manager",
+ -head=>[ Link({ -rel=>"stylesheet",
+ -href=>"http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css"}),
+ Link({ -rel=>"stylesheet",
+ -href=>"http://twitter.github.com/bootstrap/assets/css/bootstrap.css" })
+ ],
+ -style=>{'src'=>'portfolio.css'}
+ ),
+ "\n\n";
+#print header,
+# start_html('Login to portfolio manager');
if ($run and ($action eq "register")) {
@@ -201,11 +211,11 @@
}
print start_form(-name=>'Login'),
- "Email: ", p, textfield(-name=>'email'), p,
+ "Email: ", p, textfield(-name=>'email', -class=>'emailInput'), p,
"Password: ", p, password_field(-name=>'password'), p,
hidden(-name=>'run', -default=>['1']),
hidden(-name=>'act', -value=>'login', -override=>1),
- submit,
+ submit(-class=>'btn btn-primary', -value=>'Login'),
end_form,
"</div> <!-- end login div -->";
@@ -219,11 +229,11 @@
}
print start_form(-name=>'Register'),
- "Email: ", p, textfield(-name=>'regEmail'), p,
+ "Email: ", p, textfield(-name=>'regEmail', -class=>'emailInput'), p,
"Password: ", p, password_field(-name=>'regPassword'), p,
hidden(-name=>'run', -default=>['1']),
hidden(-name=>'act', -value=>'register', -override=>1),
- submit,
+ submit(-class=>'btn btn-danger', -value=>'Register'),
end_form,
"</div> <!-- end register div -->";
}
View
81 portfolio.css
@@ -25,34 +25,30 @@ body {
margin-right: 15px;*/
}
-.portfolio-actions {
+.container {
+ /*float: left;*/
+ padding: 15px;
+ margin: 0px;
+ /*float: left;
+ display: block;*/
}
-.returnToPorts { float: left; padding-left: 10px; }
-
.sidebar {
float: right;
-display: inline;
+ display: inline;
/*display: inline-block;
/*width: 30%; /*350px;*/
/* height: 100%;*/
/*margin-right: 20px;*/
}
-.main {float: left; display: inline; padding: 15px; margin-top: 0; /*width: 65%;*/ }
-.action-btn {
- width : 240px;
- font-weight: bold;
-}
-
-.container {
- /*float: left;*/
+.main {
+ float: left;
+ display: inline;
padding: 15px;
- margin: 0px;
- /*float: left;
- display: block;*/
-
+ margin-top: 0;
+ /*width: 65%;*/
}
h1 { font-size: 18px; color: black; }
@@ -61,6 +57,26 @@ h3 { font-size: 13.5px; color: indigo; }
hr {width: 50%; color: #333; }
+td { padding: 4px }
+th { padding: 4px }
+
+.portfolio-actions { }
+
+.action-btn {
+ width : 240px;
+ font-weight: bold;
+ /* margin-bottom: 5px;*/
+}
+
+
+
+.returnToPorts {
+ float: left;
+ padding-left: 10px;
+}
+
+
+
.stockName {
font-weight: bold;
color: turquoise;
@@ -68,15 +84,13 @@ hr {width: 50%; color: #333; }
}
.stockSymbol {
- padding-right: 50px;
-
- display: inline-block;
+ padding-right: 50px;
+ display: inline-block;
}
.numShares {
- width: 200px;
- display: inline-block;
-
+ width: 200px;
+ display: inline-block;
}
.stockPast {
@@ -93,18 +107,25 @@ hr {width: 50%; color: #333; }
/* this is all rather redundant */
.portDate {width: 100px;}
+input[type=date]#portEnd {width: 100px;}
+
input[type=date] {width: 100px; /*margin-left: 5px;*/}
-input[type=date]#portEnd {width: 100px;}
+
+input[type=int].priceField { width: 70px; }
input[type=number] {
height: 30px;
width: 55px;
+ margin-top: 4px;
}
-input[type=text] {
+
+
+input[type=text].stockSymbol {
height: 30px;
width: 55px;
+ margin-top: 4px;
}
input[type=text].addPortfolio {
@@ -112,10 +133,16 @@ input[type=text].addPortfolio {
width: 250px;
}
-input[type=int].priceField { width: 70px; }
+/* for login/register page */
+input[type=text].emailInput {
+ width: 200px;
+ height: 20px;
+}
+
+
+
+
-td { padding: 4px }
-th { padding: 4px }
/*.portfolio-summary {
border: 4px double red;
width: 350px;
Please sign in to comment.
Something went wrong with that request. Please try again.