* InputUserName.cs:

* WebControls.csproj:
* Estimate.aspx: UserName input control

* IValueProvider.cs:
* TemplateException.cs:
* ResultPages.cs: code cleanning

* WorkFlowController.cs: Admin now can register new users

* LocalizedText.resx:
* LocalizedText.Designer.cs: new registration messages

* RegisterModel.cs: The registration message contains the user
  validation decision
This commit is contained in:
Paul Schneider 2015-04-02 23:38:42 +02:00
commit cce43b9daf
10 changed files with 228 additions and 6 deletions

View file

@ -1,4 +1,5 @@
<%@ Page Title="Devis" Language="C#" Inherits="System.Web.Mvc.ViewPage<Estimate>" MasterPageFile="~/Models/App.master" %>
<%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>
<asp:Content ContentPlaceHolderID="head" ID="head1" runat="server" >
<script type="text/javascript" src="<%=Url.Content("~/Scripts/stupidtable.js")%>"></script>
@ -18,7 +19,12 @@ $("#tbwrts").stupidtable();
<%= Html.ValidationMessage("Title", "*") %>
<br/>
<%= Html.Hidden ("Responsible") %>
<%= Html.LabelFor(model => model.Client) %>:<%=Html.TextBox( "Client" ) %>
<%= Html.LabelFor(model => model.Client) %>:
<% Client.Value = Model.Client ; %>
<yavsc:InputUserName id="Client" name="Client" runat="server">
</yavsc:InputUserName>
<%= Html.ValidationMessage("Client", "*") %>
<br/>
<%= Html.LabelFor(model => model.Description) %>:<%=Html.TextArea( "Description") %>