Work on cleaning up login page
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
|
||||
<!-- page title -->
|
||||
|
||||
<title>Swarmops Alpha - Login</title>
|
||||
<title>Swarmops Beta- Login</title>
|
||||
|
||||
<!-- custom styles -->
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<body class="login-page">
|
||||
<form id="form2" runat="server">
|
||||
<asp:ScriptManager runat="server" ID="ScriptManagerBlahblah" />
|
||||
<script type="text/javascript">
|
||||
@@ -179,33 +179,15 @@
|
||||
<!-- Main menu, emptied out here -->
|
||||
|
||||
<div class="center980px">
|
||||
<div class="currentuserinfo"><div style="background-image: url('/Images/Icons/iconshock-user-16px.png'); background-repeat: no-repeat; padding-left: 16px; float: left"><asp:Label ID="LabelCurrentUserName" runat="server" /> | </div><div style="background-image: url('/Images/Icons/iconshock-workchair-16px.png'); background-repeat: no-repeat; padding-left: 17px; float: left"><asp:Label ID="LabelCurrentOrganizationName" runat="server" /> | </div><div style="background-image: url('/Images/Icons/iconshock-gamepad-16px.png'); background-repeat: no-repeat; padding-left: 20px; float: left"><asp:Label ID="LabelPreferences" runat="server" /> | </div><a href="/User/SelectLanguage"><asp:Image ID="ImageCultureIndicator" runat="server" ImageUrl="~/Images/Flags/uk-24px.png" /></a></div>
|
||||
<div class="logoimage"><a href="/"><img style="border: none" src="/Security/Images/Swarmops-Logo.png" alt="Swarmops Logo" /></a></div>
|
||||
<div class="break"></div>
|
||||
<div class="topmenu">
|
||||
<div class="topSearchBox"><asp:TextBox ID="SearchBox" ReadOnly="true" runat="server" /></div>
|
||||
</div>
|
||||
|
||||
<div class="mainbar">
|
||||
<div class="box">
|
||||
|
||||
<div class="login-page-logo"><asp:Image ID="ImageLogo" runat="server" ImageUrl="/Images/Swarmops-logo-256px.png" Width="128"/></div>
|
||||
<div class="box qrlogin">
|
||||
<div class="content">
|
||||
|
||||
<h2><asp:Label ID="LabelHeader" runat="server" Text="XYZ Login with blockchain technology (BitID)" /></h2>
|
||||
<div align="center"><asp:Image ID="ImageBitIdQr" runat="server"/></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="sidebar">
|
||||
<h2 class="blue"><asp:Label ID="LabelSidebarInfoHeader" runat="server" /><span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content">
|
||||
<asp:Label ID="LabelSidebarInfoContent" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="blue"><asp:Label ID="LabelSidebarManualLoginHeader" runat="server" /><span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content" style="line-height: 24px">
|
||||
@@ -218,48 +200,17 @@
|
||||
</div>
|
||||
|
||||
<asp:Panel ID="PanelCheat" runat="server" Visible="false">
|
||||
<h2 class="blue">Dev's Cheat Button<span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content" style="line-height: 14px">
|
||||
<h2>Dev's Cheat Button</h2>
|
||||
<p>Since we're running on localhost, on a nonstandard port, with a debugger attached, and under Windows, this is clearly not a production environment. Since it's unlikely that the outside Internet has access to this machine, which means you can't login with BitID, a cheat button has been provided for you.</p><p>Press the button below to log on as Sandbox Administrator.</p>
|
||||
|
||||
<div align="right"><asp:Button ID="ButtonCheat" runat="server" OnClick="ButtonCheat_Click" Text="Cheat Button" /></div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
<h2 class="orange"><asp:Label ID="LabelSidebarHelpHeader" runat="server" /><span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content">
|
||||
<div class="link-row-encaps" onclick=" document.location='/Security/RequestPasswordReset'; return false; " >
|
||||
<div class="link-row-icon" style="background-image: url('/Images/Icons/iconshock-databaseconnect-16px.png')"></div>
|
||||
<asp:Label ID="LabelSidebarResetPassword" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<asp:Panel runat="server" ID="PanelJoin" Visible="false">
|
||||
|
||||
<h2 class="blue"><asp:Label ID="LabelSelfSignupHeader" runat="server" /><span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content">
|
||||
<div class="link-row-encaps" onclick=" document.location=linkSelfSignup; return false; " >
|
||||
<div class="link-row-icon" style="background-image: url('/Images/Icons/iconshock-add-16px.png'); position:relative; top:-1px; left: -5px"></div>
|
||||
<asp:Label ID="LabelSelfSignup" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Panel>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<!-- some javascript in footer -->
|
||||
|
||||
@@ -137,10 +137,10 @@ namespace Swarmops.Pages.Security
|
||||
|
||||
if (vanityOrganization != null)
|
||||
{
|
||||
this.LiteralSelfSignupLink.Text = @"//" + vanityOrganization.VanityDomain + @"/Signup";
|
||||
this.LabelSelfSignup.Text = String.Format (Resources.Pages.Security.Login_SelfSignup, vanityOrganization.Name);
|
||||
this.LabelSelfSignupHeader.Text = Resources.Pages.Security.Login_SelfSignupHeader;
|
||||
this.PanelJoin.Visible = true;
|
||||
// this.LiteralSelfSignupLink.Text = @"//" + vanityOrganization.VanityDomain + @"/Signup";
|
||||
// this.LabelSelfSignup.Text = String.Format (Resources.Pages.Security.Login_SelfSignup, vanityOrganization.Name);
|
||||
// this.LabelSelfSignupHeader.Text = Resources.Pages.Security.Login_SelfSignupHeader;
|
||||
// this.PanelJoin.Visible = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -158,9 +158,9 @@ namespace Swarmops.Pages.Security
|
||||
}
|
||||
|
||||
|
||||
this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginTop] = "-3px";
|
||||
this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginRight] = "3px";
|
||||
this.ImageCultureIndicator.Style[HtmlTextWriterStyle.Cursor] = "pointer";
|
||||
// this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginTop] = "-3px";
|
||||
// this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginRight] = "3px";
|
||||
// this.ImageCultureIndicator.Style[HtmlTextWriterStyle.Cursor] = "pointer";
|
||||
|
||||
_cacheVersionMark = Logic.Support.Formatting.SwarmopsVersion;
|
||||
if (_cacheVersionMark.StartsWith("Debug"))
|
||||
@@ -388,7 +388,7 @@ namespace Swarmops.Pages.Security
|
||||
|
||||
private void Localize()
|
||||
{
|
||||
this.LabelCurrentOrganizationName.Text = Global.Global_Organization;
|
||||
/*this.LabelCurrentOrganizationName.Text = Global.Global_Organization;
|
||||
this.LabelCurrentUserName.Text = Participant.Localized (ParticipantTitle.Person, TitleVariant.Generic);
|
||||
this.LabelPreferences.Text = Global.Global_NA;
|
||||
this.LabelSidebarInfoHeader.Text = Global.Sidebar_Information;
|
||||
@@ -396,7 +396,7 @@ namespace Swarmops.Pages.Security
|
||||
this.LabelSidebarInfoContent.Text = Resources.Pages.Security.Login_Info;
|
||||
this.LabelSidebarManualLoginHeader.Text = Resources.Pages.Security.Login_ManualLogin;
|
||||
this.LabelHeader.Text = Resources.Pages.Security.Login_Header;
|
||||
this.LabelSidebarResetPassword.Text = Resources.Pages.Security.Login_ResetPassword;
|
||||
this.LabelSidebarResetPassword.Text = Resources.Pages.Security.Login_ResetPassword; */
|
||||
this.LiteralCredentialsUser.Text = Resources.Pages.Security.Login_Username;
|
||||
this.LiteralCredentialsPass.Text = Resources.Pages.Security.Login_Password;
|
||||
this.LiteralCredentials2FA.Text = Resources.Pages.Security.Login_GoogleAuthenticatorCode;
|
||||
|
||||
Generated
+2
-119
@@ -94,58 +94,13 @@ namespace Swarmops.Pages.Security {
|
||||
protected global::System.Web.UI.WebControls.Literal LiteralSelfSignupLink;
|
||||
|
||||
/// <summary>
|
||||
/// LabelCurrentUserName control.
|
||||
/// ImageLogo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelCurrentUserName;
|
||||
|
||||
/// <summary>
|
||||
/// LabelCurrentOrganizationName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelCurrentOrganizationName;
|
||||
|
||||
/// <summary>
|
||||
/// LabelPreferences control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelPreferences;
|
||||
|
||||
/// <summary>
|
||||
/// ImageCultureIndicator control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image ImageCultureIndicator;
|
||||
|
||||
/// <summary>
|
||||
/// SearchBox control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox SearchBox;
|
||||
|
||||
/// <summary>
|
||||
/// LabelHeader control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelHeader;
|
||||
protected global::System.Web.UI.WebControls.Image ImageLogo;
|
||||
|
||||
/// <summary>
|
||||
/// ImageBitIdQr control.
|
||||
@@ -156,33 +111,6 @@ namespace Swarmops.Pages.Security {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image ImageBitIdQr;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSidebarInfoHeader control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelSidebarInfoHeader;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSidebarInfoContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelSidebarInfoContent;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSidebarManualLoginHeader control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelSidebarManualLoginHeader;
|
||||
|
||||
/// <summary>
|
||||
/// LiteralCredentialsUser control.
|
||||
/// </summary>
|
||||
@@ -227,50 +155,5 @@ namespace Swarmops.Pages.Security {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button ButtonCheat;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSidebarHelpHeader control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelSidebarHelpHeader;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSidebarResetPassword control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelSidebarResetPassword;
|
||||
|
||||
/// <summary>
|
||||
/// PanelJoin control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel PanelJoin;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSelfSignupHeader control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelSelfSignupHeader;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSelfSignup control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelSelfSignup;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -984,6 +984,7 @@
|
||||
<Content Include="Images\PageIcons\transparency-16px.png" />
|
||||
<Content Include="Images\swarmops-logo-128px.png" />
|
||||
<Content Include="Images\swarmops-logo-16x9.png" />
|
||||
<Content Include="Images\Swarmops-logo-256px.png" />
|
||||
<Content Include="MainMenu-v5.xml" />
|
||||
<Content Include="Pages\v5\Admin\BitcoinEchoTest.aspx" />
|
||||
<Content Include="Pages\v5\Admin\CreateOrganization.aspx" />
|
||||
|
||||
+19
-3
@@ -44,6 +44,10 @@ html, body
|
||||
background-position-y: 35px; /* move shading past top bar */
|
||||
}
|
||||
|
||||
body.login-page {
|
||||
background-position-y: 0; /* login page doesn't have a top bar */
|
||||
}
|
||||
|
||||
strong
|
||||
{
|
||||
font-weight: 700; /* bugfix for Chrome */
|
||||
@@ -355,6 +359,12 @@ body.rtl .sidebar {
|
||||
border-bottom-left-radius: 5px 5px;
|
||||
}
|
||||
|
||||
.box.qrlogin {
|
||||
width: 420px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.content
|
||||
{
|
||||
margin: 5px 10px 5px 10px;
|
||||
@@ -528,14 +538,20 @@ body.rtl .elementFloatFar {
|
||||
|
||||
/* LOGINBOX */
|
||||
|
||||
body.loginpage
|
||||
body.login-page
|
||||
{
|
||||
background-image: none;
|
||||
background-color: #06173d;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
div.login-page-logo {
|
||||
width: 128px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
div.loginbox
|
||||
{
|
||||
-webkit-box-shadow: 0 1px 3px #1C397E;
|
||||
|
||||
Reference in New Issue
Block a user