Réorganisations.
La page de reservation par défaut est maintenant la reservation dite simple. Fonctionnalités en cours de développement: 1) la reservation dite simple 2) la notification à la reservation 3) l'activité principale exercée 4) l'integration d'un premier thème clair * MEA.sql: définit la valeur MEA du profile (Main Exerted Activity) dans la base de donnée * Booking.aspx: Imlémente la vue du formulaire de reservation simple, c'etait avant la reservation classique, sur une période plutôt qu'un jour. La reservation classique est renomée `EavyBooking`. * SimpleBookingQuery.cs: Implémente une simple commande de rendez-vous, en tant que commande du workflow. * .gitignore: ignorer les configuration des pré et prod totem. * SkillEntity.cs: * SkillManager.cs: * Skills.aspx: * SkillProvider.cs: * SkillController.cs: * UserSkills.aspx: * NpgsqlSkillProvider.cs: refactorisation (-Skill+SkillEntity) * NpgsqlProfileProvider.cs: Fixe un bug introduit avec l'implementation des profiles anonymes. * FrontOfficeController.cs: definit l'interface de cotation des compétences attendues * UserCard.ascx: Imlémente une carte utilisateur. * Web.config: déclare le code activité principale exercée parmis les valeurs du profile authentifié. * Web.csproj: ajoute les nouveaux formulaire de reservation au projet. * PerformerProfile.cs: S'assure d'avoir une valeur pour le nom d'utilisateur à la création. * LocalizedText.resx: * LocalizedText.Designer.cs: "date préférée" en anglais * LocalizedText.fr.resx: * LocalizedText.fr.Designer.cs: "date préférée" en français * Profile.cs: à la creation d'un profile, on doit avoir un nom d'utilisateur, même dans le cas où le profile est anonyme (dans ce cas, on l'appelle identifiant anonyme). Sinon, on lève une exception. * YavscModel.csproj: * refactorisation: le nom `Skill` est celui de l'espace, celui de la classe devient `SkillEntity`. * Creation de la requête dite simple d'un rendez-vous (pour prestation) à une date donnée (sans heure), concernant simplement une activité. * EavyBooking.aspx: Implémente la reservation lourdevnext
parent
439759cb16
commit
fe97f14831
@ -0,0 +1,56 @@
|
|||||||
|
<%@ Page Title="Booking" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<SimpleBookingQuery>" %>
|
||||||
|
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||||
|
<link rel="stylesheet" type="text/css" href="/App_Themes/jquery.timepicker.css" />
|
||||||
|
<script type="text/javascript" src="/Scripts/globalize/globalize.js"></script>
|
||||||
|
<script type="text/javascript" src="/Scripts/jquery.mousewheel.js"></script>
|
||||||
|
<script type="text/javascript" src="/Scripts/globalize/cultures/globalize.culture.fr.js"></script>
|
||||||
|
<script type="text/javascript" src="/Scripts/datepicker-fr.js"></script>
|
||||||
|
<script type="text/javascript" src="/Scripts/datepicker-en-GB.js"></script>
|
||||||
|
<script type="text/javascript" src="/Scripts/jquery.timepicker.min.js"></script>
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||||
|
<% using ( Html.BeginForm("Booking") ) { %>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>Préferences musicales</legend>
|
||||||
|
<%= Html.LabelFor(model=>model.Needs) %>:
|
||||||
|
<ul>
|
||||||
|
<% foreach (var need in Model.Needs) { %>
|
||||||
|
<li><%= need.Name %> <%= Html.Partial("RateSkillControl",need)%></li>
|
||||||
|
<% } %>
|
||||||
|
</ul>
|
||||||
|
<%= Html.ValidationMessageFor(model=>model.Needs) %>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>Date de l'événement</legend>
|
||||||
|
Intervention souhaitée le
|
||||||
|
<input type="text" id="PreferedDate" name="PreferedDate" class="start date" value="<%=Model.PreferedDate.ToString("yyyy/MM/dd")%>">
|
||||||
|
<%= Html.ValidationMessageFor( model=>model.PreferedDate ) %>
|
||||||
|
</fieldset>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('[data-type="rate-site-skill"]').rate({target: 'FrontOffice/RateSkill'});
|
||||||
|
var tpconfig = {
|
||||||
|
'timeFormat': 'H:i',
|
||||||
|
'showDuration': true,
|
||||||
|
'disableTimeRanges': [
|
||||||
|
['17:01pm', '24:01pm'],
|
||||||
|
['0am', '9am']
|
||||||
|
]};
|
||||||
|
$.datepicker.setDefaults($.datepicker.regional[ "fr" ] );
|
||||||
|
var dpconfig = {
|
||||||
|
'format': 'yy/mm/dd',
|
||||||
|
'autoclose': true } ;
|
||||||
|
|
||||||
|
// $('#PreferedHour').timepicker(tpconfig);
|
||||||
|
$('#PreferedDate').datepicker(dpconfig);
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<input type="submit">
|
||||||
|
<% } %>
|
||||||
|
</asp:Content>
|
||||||
|
|
@ -1,2 +1,14 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PerformerProfile>" %>
|
||||||
|
<img src="<%=Url.AvatarUrl(HttpContext.Current.User.Identity.Name)%>" alt="avatar" class="iconsmall" />
|
||||||
|
<%=Html.Encode(Model.UserName)%> <%= Html.Partial("RateControl",Model) %>
|
||||||
|
<ul>
|
||||||
|
<% foreach (var skill in Model.Skills) { %>
|
||||||
|
<li>
|
||||||
|
<%=Html.Encode(skill.SkillName)%> <%= Html.Partial("RateControl",skill) %>
|
||||||
|
<%=Html.Encode(skill.Comment)%>
|
||||||
|
</li>
|
||||||
|
<% } %>
|
||||||
|
</ul>
|
||||||
|
<% if (Model.HasCalendar()) { %>
|
||||||
|
<i class="fa fa-check">Calendrier Google Disponible</i>
|
||||||
|
<% } %>
|
||||||
|
Loading…
Reference in New Issue