* style.css: black them for input controls

* Profile.aspx: inline css
main
Paul Schneider 11 years ago
parent 206e16686b
commit e64d50e94a
2 changed files with 25 additions and 20 deletions

@ -7,13 +7,15 @@ body {
font-family: 'Arial', cursive; font-family: 'Arial', cursive;
margin-bottom:3em; margin-bottom:3em;
} }
textarea { textarea {
width:25em; width:25em;
height:5em; height:5em;
} }
input { input, textarea, checkbox {
width:25em; color: #FFFFA0;
} background: black;
}
main { main {
background-color: rgba(17,0,23,0.65); background-color: rgba(17,0,23,0.65);
float:left; float:left;
@ -128,10 +130,6 @@ padding-left: 20px;
white-space: pre-wrap; white-space: pre-wrap;
} }
.layout {
border-width: 0;
}
.avatar { .avatar {
max-width: 64px; max-width: 64px;
max-height: 64px; max-height: 64px;

@ -5,13 +5,18 @@
</asp:Content> </asp:Content>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server"> <asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
<style>
fieldset { float:left; }
table.layout { border-width: 0; }
table.layout TR TD { max-width:40%; }
</style>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<% using(Html.BeginForm("Profile", "Account", FormMethod.Post, new { enctype = "multipart/form-data" })) %> <% using(Html.BeginForm("Profile", "Account", FormMethod.Post, new { enctype = "multipart/form-data" })) %>
<% { %> <% { %>
<h2>Informations générales</h2> <fieldset><legend>Informations générales</legend>
<table class="layout"> <table class="layout">
<tr><td align="right"> <tr><td align="right" style="">
<%= Html.LabelFor(model => model.Name) %></td><td> <%= Html.LabelFor(model => model.Name) %></td><td>
<%= Html.TextBox("Name") %> <%= Html.TextBox("Name") %>
<%= Html.ValidationMessage("Name", "*") %></td></tr> <%= Html.ValidationMessage("Name", "*") %></td></tr>
@ -63,8 +68,10 @@ Avatar : "<%=Model.avatar%>" </td><td> <img class="avatar" src="<%=Model.avatar
</td> </td>
</tr> </tr>
</table> </table>
</fieldset>
<h2>Informations de facturation</h2> <fieldset><legend>Informations de facturation</legend>
<table class="layout"> <table class="layout">
<tr> <tr>
<td align="right"> <td align="right">
@ -124,20 +131,20 @@ Avatar : "<%=Model.avatar%>" </td><td> <img class="avatar" src="<%=Model.avatar
</table> </table>
</fieldset>
<input type="submit"/> <input type="submit"/>
<% } %> <% } %>
<aside>
<%= Html.ActionLink("Changer de mot de passe","ChangePassword", "Account",null, new { @class="actionlink" })%>
</asp:Content> <%= Html.ActionLink("Désincription","Unregister", "Account",null, new { @class="actionlink" })%>
</aside>
<aside>
<asp:Content ID="MASC1" ContentPlaceHolderID="MASContent" runat="server">
<% if (Roles.IsUserInRole((string)ViewData ["UserName"],"Admin")) { %> <% if (Roles.IsUserInRole((string)ViewData ["UserName"],"Admin")) { %>
This user is Admin. This user is Admin.
<% } %> <% } %>
HasBankAccount:<%= Model.HasBankAccount %>, IsBillable:<%=Model.IsBillable%> HasBankAccount:<%= Model.HasBankAccount %>, IsBillable:<%=Model.IsBillable%>
</aside>
<%= Html.ActionLink("Changer de mot de passe","ChangePassword", "Account",null, new { @class="actionlink" })%>
<%= Html.ActionLink("Désincription","Unregister", "Account",null, new { @class="actionlink" })%>
</asp:Content> </asp:Content>

Loading…