* stupidtable.js:
* jquery.tablesorter.js: * jquery.tablesorter.min.js: now using "stupid table", that fixes the row additions and deletions * ChooseADate.aspx: Page to choose a date between valid candidates * YavscModel.csproj: * FreeDate.cs: a free date * FrontOfficeApiController.cs: cleanning using clauses * FrontOfficeController.cs: - cleanning using clauses - check user role before editing the model object * GoogleController.cs: view "ChooseADate" in successfull response to "DateQuery" * WorkFlowController.cs: check user's role to drop the estimate. * Estimate.aspx: * now using "stupid table", that fixes the row additions and deletions. * the user interface more intuitive at row deletion * DateQuery.aspx: changed the query parameters * Web.csproj: google date + stupidtable - tablesorter * IContentProvider.cs: cleaned an unused "using" clause * WorkFlowManager.cs: cleanning spaces
This commit is contained in:
parent
a81701008d
commit
e99c03e54a
15 changed files with 286 additions and 1092 deletions
15
web/Views/Google/ChooseADate.aspx
Normal file
15
web/Views/Google/ChooseADate.aspx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<%@ Page Title="Google calendar usage" Language="C#" Inherits="System.Web.Mvc.ViewPage<FreeDateSet>" MasterPageFile="~/Models/App.master" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<% using ( Html.BeginForm("SetCalendar","Google") ) { %>
|
||||
<% foreach (CalendarListEntry e in Model.items.Where(x=>x.accessRole=="owner")) { %>
|
||||
<input type="radio" name="calchoice" id="calchoice" value="<%=e.id%>" >
|
||||
<%=Html.Encode(e.summary)%> <br>
|
||||
<i><%=Html.Encode(e.description)%></i> <br>
|
||||
<% } %>
|
||||
<input type="hidden" name="returnUrl" id="returnUrl" value="<%=Html.Encode(ViewData["returnUrl"])%>">
|
||||
<input type="submit">
|
||||
<% } %>
|
||||
|
||||
</asp:Content>
|
||||
|
|
@ -46,27 +46,32 @@ return Globalize.format( new Date(value), "t" );
|
|||
</script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<% using ( Html.BeginForm("DateQuery","Google") ) { %>
|
||||
|
||||
<p>Période de recherche:</p>
|
||||
|
||||
<p>
|
||||
<%= Html.LabelFor(model=>model.PreferedDate) %>:<br>
|
||||
Le <%= Html.TextBoxFor(model=>model.PreferedDate) %>
|
||||
<%= Html.ValidationMessageFor(model=>model.PreferedDate) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= Html.LabelFor(model=>model.PreferedHour) %>:<br>
|
||||
Le <%= Html.TextBoxFor(model=>model.PreferedHour) %>
|
||||
<%= Html.ValidationMessageFor(model=>model.PreferedHour) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= Html.LabelFor(model=>model.MaxDate) %>:<br>
|
||||
Le <%= Html.TextBoxFor(model=>model.MaxDate) %>
|
||||
<%= Html.ValidationMessageFor(model=>model.MaxDate) %>
|
||||
à
|
||||
<%= Html.TextBoxFor(model=>model.MaxTime) %>
|
||||
<%= Html.ValidationMessageFor(model=>model.MaxTime) %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Durée minimale : <%= Html.TextBoxFor(model=>model.Duration) %>
|
||||
<%= Html.ValidationMessageFor(model=>model.Duration) %>
|
||||
<%= Html.LabelFor(model=>model.MinDuration) %>:<br>
|
||||
<%= Html.TextBoxFor(model=>model.MinDuration) %>
|
||||
<%= Html.ValidationMessageFor(model=>model.MinDuration) %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= Html.LabelFor(model=>model.UserName) %>:<br>
|
||||
<%= Html.TextBoxFor(model=>model.UserName) %><br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue