<%@ Page Title="Profile" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %> <% Title = ViewData["UserName"]+" at "+ YavscHelpers.SiteName +" - profile edition" ; %> <%= Html.ValidationSummary() %> <% using(Html.BeginForm("Profile", "Account", FormMethod.Post, new { enctype = "multipart/form-data" })) %> <% { %>

Informations générales

<%= Html.LabelFor(model => model.Name) %> <%= Html.TextBox("Name") %> <%= Html.ValidationMessage("Name", "*") %>
<%= Html.LabelFor(model => model.Phone) %> <%= Html.TextBox("Phone") %> <%= Html.ValidationMessage("Phone", "*") %>
<%= Html.LabelFor(model => model.Mobile) %> <%= Html.TextBox("Mobile") %> <%= Html.ValidationMessage("Mobile", "*") %>
<%= Html.LabelFor(model => model.Address) %> <%= Html.TextBox("Address") %> <%= Html.ValidationMessage("Address", "*") %>
<%= Html.LabelFor(model => model.CityAndState) %> <%= Html.TextBox("CityAndState") %> <%= Html.ValidationMessage("CityAndState", "*") %>
<%= Html.LabelFor(model => model.ZipCode) %> <%= Html.TextBox("ZipCode") %> <%= Html.ValidationMessage("ZipCode", "*") %>
<%= Html.LabelFor(model => model.Country) %> <%= Html.TextBox("Country") %> <%= Html.ValidationMessage("Country", "*") %>
<%= Html.LabelFor(model => model.WebSite) %> <%= Html.TextBox("WebSite") %> <%= Html.ValidationMessage("WebSite", "*") %>
<%= Html.LabelFor(model => model.BlogVisible) %> <%= Html.CheckBox("BlogVisible") %> <%= Html.ValidationMessage("BlogVisible", "*") %>
<%= Html.LabelFor(model => model.BlogTitle) %> <%= Html.TextBox("BlogTitle") %> <%= Html.ValidationMessage("BlogTitle", "*") %>
Avatar : "<%=Model.avatar%>" <%= Html.ValidationMessage("AvatarFile", "*") %>
<%= Html.LabelFor(model => model.GoogleCalendar) %>: <%= Html.Encode(Model.GoogleCalendar) %> <%= Html.ActionLink("Choisir l'agenda","ChooseCalendar","Google",new { returnUrl= Request.Url.AbsolutePath }, new { @class="actionlink" }) %>

Informations de facturation

<%= Html.LabelFor(model => model.BankCode) %> <%= Html.TextBox("BankCode") %> <%= Html.ValidationMessage("BankCode", "*") %>
<%= Html.LabelFor(model => model.WicketCode) %> <%= Html.TextBox("WicketCode") %> <%= Html.ValidationMessage("WicketCode", "*") %>
<%= Html.LabelFor(model => model.AccountNumber) %> <%= Html.TextBox("AccountNumber") %> <%= Html.ValidationMessage("AccountNumber", "*") %>
<%= Html.LabelFor(model => model.BankedKey) %> <%= Html.TextBox("BankedKey") %> <%= Html.ValidationMessage("BankedKey", "*") %>
<%= Html.LabelFor(model => model.BIC) %> <%= Html.TextBox("BIC") %> <%= Html.ValidationMessage("BIC", "*") %>
<%= Html.LabelFor(model => model.IBAN) %> <%= Html.TextBox("IBAN") %> <%= Html.ValidationMessage("IBAN", "*") %>
<% } %>
<% if (Roles.IsUserInRole((string)ViewData ["UserName"],"Admin")) { %> This user is Admin. <% } %> HasBankAccount:<%= Model.HasBankAccount %>, IsBillable:<%=Model.IsBillable%> <%= Html.ActionLink("Changer de mot de passe","ChangePassword", "Account",null, new { @class="actionlink" })%> <%= Html.ActionLink("Désincription","Unregister", "Account",null, new { @class="actionlink" })%>