<%@ Page Title="Profile_edition" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %> <% Title = ViewData["UserName"] + " : " +Html.Translate("Profile_edition"); %> <% if (Roles.IsUserInRole((string)ViewData ["UserName"],"Admin")) { // TODO View all roles %> <% } %> <%= Html.ValidationSummary() %> <% using(Html.BeginForm("Profile", "Account", FormMethod.Post, new { enctype = "multipart/form-data" })) %> <% { %> <%= Html.ValidationSummary() %> <%= Html.Hidden("UserName",ViewData["ProfileUserName"]) %>
Informations publiques avatar <%=Html.Encode(Model.UserName)%> APE:<%=Model.MEACode%> <%=Model.WebSite%> <%= Html.LabelFor(model => model.MEACode) %> : <%= Html.DropDownList("MEACode") %> <%= Html.ValidationMessage("MEACode", "*") %>
<%= Html.LabelFor(model => model.NewUserName) %> : <%= Html.TextBox("NewUserName") %> <%= Html.ValidationMessage("NewUserName", "*") %>
<%= Html.LabelFor(model => model.WebSite) %> : <%= Html.TextBox("WebSite") %> <%= Html.ValidationMessage("WebSite", "*") %>
Avatar : <%= Html.ValidationMessage("AvatarFile", "*") %>
Informations administratives <%= string.IsNullOrWhiteSpace(Model.Name)?"KO":Html.Encode(Model.Name) %> <%= Html.LabelFor(model => model.Name) %> : <%= Html.TextBox("Name") %> <%= Html.ValidationMessage("Name", "*") %>
Blog <%=Html.Encode(Model.BlogTitle)%> <%= Model.BlogVisible?null:Html.Translate("hidden") %>
<%= Html.LabelFor(model => model.BlogVisible) %> : <%= Html.CheckBox("BlogVisible") %> <%= Html.ValidationMessage("BlogVisible", "*") %>
<%= Html.LabelFor(model => model.BlogTitle) %> : <%= Html.TextBox("BlogTitle") %> <%= Html.ValidationMessage("BlogTitle", "*") %>
Contact <%=Html.Encode(Model.Phone)%> <%=Html.Encode(Model.Mobile)%> <%=Html.Encode(Model.HasPostalAddress?"adresse OK":"adresse KO")%>
<%= 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", "*") %>
Profile préstataire
Disponibilité <%=Html.Encode( string.IsNullOrWhiteSpace(Model.GoogleCalendar)?"KO":"OK")%>
<%= Html.LabelFor(model => model.GoogleCalendar) %> : <%= Html.Encode(Model.GoogleCalendar) %> <%= Html.TranslatedActionLink("Choisir l'agenda","ChooseCalendar","Google",new { returnUrl= Request.Url.AbsolutePath }, new { @class="actionlink" }) %>
Informations de facturation <%=Html.Encode(Model.HasBankAccount?"OK":"KO")%>

Saisissez ici vos informations de facturation.

Par le numéro de compte
<%= 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", "*") %>
Par codes BIC et IBAN
<%= Html.LabelFor(model => model.BIC) %> : <%= Html.TextBox("BIC") %> <%= Html.ValidationMessage("BIC", "*") %>
<%= Html.LabelFor(model => model.IBAN) %> : <%= Html.TextBox("IBAN") %> <%= Html.ValidationMessage("IBAN", "*") %>
Interface utilisateur <%=Html.Encode(Model.UITheme)%> <%= Html.LabelFor(model => model.UITheme) %> : <%= Html.TextBox("UITheme") %> <%= Html.ValidationMessage("UITheme", "*") %>
" /> <% } %>