Merge from booking branch
This commit is contained in:
parent
8c5de206e1
commit
25906d0227
60 changed files with 6228 additions and 0 deletions
29
web/Views/Admin/AddUserToRole.ascx
Normal file
29
web/Views/Admin/AddUserToRole.ascx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using(Html.BeginForm("AddUserToRole", "Admin"))
|
||||
{ %>
|
||||
<fieldset>
|
||||
<div id="roleaddedresult"></div>
|
||||
<% if (ViewData ["UserName"] != null) { %>
|
||||
<%= Html.Hidden("RoleName",ViewData ["RoleName"]) %>
|
||||
<% } else { %>
|
||||
<div>
|
||||
<label for="UserName" >Utilisateur : </label><input type="text" name="UserName" id="UserName">
|
||||
<%= Html.ValidationMessage("UserName", "*") %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (ViewData ["RoleName"] != null) { %>
|
||||
<%= Html.Hidden("RoleName",ViewData ["RoleName"]) %>
|
||||
<% } else { %>
|
||||
<div>
|
||||
<label for="RoleName" >Nom du rôle : </label>
|
||||
<input type="text" name="RoleName" id="RoleName">
|
||||
<%= Html.ValidationMessage("RoleName", "*") %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<%= Html.Hidden("ReturnUrl", Request.Url.PathAndQuery ) %>
|
||||
<input type="submit">
|
||||
</fieldset>
|
||||
<% } %>
|
||||
3
web/Views/Admin/UserCard.ascx
Normal file
3
web/Views/Admin/UserCard.ascx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
|
||||
|
||||
6
web/Views/Blogs/RateControl.ascx
Normal file
6
web/Views/Blogs/RateControl.ascx
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %>
|
||||
<div data-id="<%=Model.Id%>" data-type="rate-bill" ><% int i = 0; for (; i<NbFilled; i++) {
|
||||
%><i class="fa fa-star" ></i><% }
|
||||
%><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; }
|
||||
%><% for (int j=0; j<NbEmpty; j++, i++ ) { %><i class="fa fa-star-o"></i><% }
|
||||
%></div>
|
||||
6
web/Views/FrontOffice/RateControl.ascx
Normal file
6
web/Views/FrontOffice/RateControl.ascx
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %>
|
||||
<div data-id="<%=Model.Id%>" data-type="rate-bill" ><% int i = 0; for (; i<NbFilled; i++) {
|
||||
%><i class="fa fa-star" ></i><% }
|
||||
%><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; }
|
||||
%><% for (int j=0; j<NbEmpty; j++, i++ ) { %><i class="fa fa-star-o"></i><% }
|
||||
%></div>
|
||||
7
web/Views/FrontOffice/RateSkillControl.ascx
Normal file
7
web/Views/FrontOffice/RateSkillControl.ascx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %>
|
||||
<% Rate = Model.Rate; %>
|
||||
<div data-id="<%=Model.Id%>" data-type="rate-skill" ><% int i = 0; for (; i<NbFilled; i++) {
|
||||
%><i class="fa fa-star" ></i><% }
|
||||
%><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; }
|
||||
%><% for (int j=0; j<NbEmpty; j++, i++ ) { %><i class="fa fa-star-o"></i><% }
|
||||
%></div>
|
||||
7
web/Views/FrontOffice/RateUserSkillControl.ascx
Normal file
7
web/Views/FrontOffice/RateUserSkillControl.ascx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %>
|
||||
<% Rate = Model.Rate; %>
|
||||
<div data-id="<%=Model.Id%>" data-type="rate-user-skill" ><% int i = 0; for (; i<NbFilled; i++) {
|
||||
%><i class="fa fa-star" ></i><% }
|
||||
%><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; }
|
||||
%><% for (int j=0; j<NbEmpty; j++, i++ ) { %><i class="fa fa-star-o"></i><% }
|
||||
%></div>
|
||||
38
web/Views/FrontOffice/Skills.aspx
Normal file
38
web/Views/FrontOffice/Skills.aspx
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<%@ Page Title="Skills" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Skill>>" %>
|
||||
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
<script src="<%=Url.Content("~/Scripts/yavsc.skills.js")%>"></script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
|
||||
<aside class="control">
|
||||
<form method="post" action="DeclareSkill">
|
||||
<fieldset>
|
||||
<div id="Err_skillName" class="field-validation-error"></div>
|
||||
<input type="text" name="SkillName" id="SkillName" >
|
||||
<input type="button" value="Créer la compétence" id="btncreate" >
|
||||
</fieldset>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#btncreate').click( function() {
|
||||
Skills.createSkill(sname, function(sid) {
|
||||
var sname = $('#SkillName').val();
|
||||
console.log(' Skill created id : '+sid);
|
||||
$('<li>'+sname+'</li>').data('sid',sid).addClass('skillname').appendTo('#skills');
|
||||
$('#SkillName').val('');
|
||||
}); } ); });
|
||||
</script>
|
||||
</aside>
|
||||
|
||||
<ul id="skills">
|
||||
<% foreach (var skill in Model) { %>
|
||||
<li class="skillname" data-sid="<%= skill.Id %>">
|
||||
<%= skill.Name %> <%=Html.Partial("RateSkillControl", skill) %>
|
||||
</li>
|
||||
<% } %>
|
||||
</ul>
|
||||
|
||||
</asp:Content>
|
||||
2
web/Views/FrontOffice/UserCard.ascx
Normal file
2
web/Views/FrontOffice/UserCard.ascx
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
|
||||
51
web/Views/FrontOffice/UserSkills.aspx
Normal file
51
web/Views/FrontOffice/UserSkills.aspx
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<%@ Page Title="Skills" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<PerformerProfile>" %>
|
||||
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
<script src="<%=Url.Content("~/Scripts/yavsc.skills.js")%>"></script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<aside class="control">
|
||||
<form method="post" action="DeclareUserSkill">
|
||||
<fieldset>
|
||||
<legend>Declarer une compétence supplémentaire</legend>
|
||||
<div id="Err_skillId" class="field-validation-error"></div>
|
||||
<h2>
|
||||
<select id="SkillId" >
|
||||
<% foreach (var skill in (Skill[]) ViewData["SiteSkills"]) {
|
||||
if (Model.HasSkill(skill.Id)) {%>
|
||||
<option value="<%=skill.Id%>" disabled>
|
||||
<%=skill.Name%></option>
|
||||
<% } else { %>
|
||||
<option value="<%=skill.Id%>"><%=skill.Name%></option>
|
||||
<% } } %>
|
||||
</select></h2>
|
||||
<label for="Comment">Si vous le désirez, faites un commentaire sur cette compétence</label>
|
||||
<textarea id="Comment"></textarea>
|
||||
<input type="button" value="Ajouter la compétence à votre profile" id="btndeclare" >
|
||||
</fieldset>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#btndeclare').click( function() {
|
||||
var sid = $('#SkillId').val();
|
||||
var cmnt = $('#Comment').val();
|
||||
var sname = $('#SkillId').text();
|
||||
Skills.declareUserSkill({ username: <%=YavscAjaxHelper.QuoteJavascriptString(Model.UserName) %> ,
|
||||
skillid: sid, rate: 50, comment: cmnt }, function(usid) {
|
||||
console.log('User skill created, id : '+usid);
|
||||
$('<li>'+sname+'</li>').data('sid',sid).data('id',usid).addClass('skillname').appendTo('#userskills');
|
||||
$('#SkillId').val(0);
|
||||
}); }); });
|
||||
</script>
|
||||
</aside>
|
||||
|
||||
<ul id="userskills">
|
||||
<% foreach (var userskill in Model.Skills) { %>
|
||||
<li class="skillname" data-sid="<%= userskill.Id %>">
|
||||
<h2><%= userskill.SkillName %></h2><br> <div data-type="comment"><%= userskill.Comment %></div> <%=Html.Partial("RateUserSkillControl", userskill) %>
|
||||
</li>
|
||||
<% } %>
|
||||
</ul>
|
||||
|
||||
</asp:Content>
|
||||
37
web/Views/Home/Contact.template.aspx
Normal file
37
web/Views/Home/Contact.template.aspx
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<%@ Page Title="Contact" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div class="panel">
|
||||
<p>
|
||||
Directeur : <br>
|
||||
Adresse postale : <br>
|
||||
Tél. : +33 <br>
|
||||
Tél. : +33 <br>
|
||||
SIREN : <br>
|
||||
SIRET : <br>
|
||||
Activité Principalement Exercée (APE) : <br>
|
||||
</p>
|
||||
<% using (Html.BeginForm("Contact", "Home")) { %>
|
||||
<fieldset>
|
||||
<legend>Message</legend>
|
||||
<p>
|
||||
<%= Html.Label("email") %>:
|
||||
<%= Html.ValidationMessage("email") %><br/>
|
||||
<%= Html.TextBox("email") %>
|
||||
</p>
|
||||
<p>
|
||||
<%= Html.Label("reason") %>:
|
||||
<%= Html.ValidationMessage("reason") %><br/>
|
||||
<%= Html.TextBox("reason") %>
|
||||
</p>
|
||||
<p>
|
||||
<%= Html.Label("body") %>:
|
||||
<%= Html.ValidationMessage("body") %><br/>
|
||||
<%= Html.TextArea("body") %>
|
||||
</p>
|
||||
</fieldset>
|
||||
<input type="submit" value="<%=Html.Translate("Submit")%>">
|
||||
|
||||
<% } %>
|
||||
</div>
|
||||
</asp:Content>
|
||||
7
web/Views/Home/RestrictedArea.aspx
Normal file
7
web/Views/Home/RestrictedArea.aspx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEntryCollection>" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
Ce contenu est d'accès restreint : <<%= Html.Encode(ViewData["ControllerName"]) %>/<%= Html.Encode(ViewData["ActionName"]) %>>
|
||||
|
||||
Demandez à l'administrateur les autorisations suffisantes pour accèder à cet emplacement.
|
||||
|
||||
</asp:Content>
|
||||
Loading…
Add table
Add a link
Reference in a new issue