Files
yavsc/web/Views/FrontOffice/Skills.aspx
Paul Schneider 029a80e2c4 Fixes the Site wize skills page,
makes use of Mono.Web.Xdt at deploy time

* PayPalController.cs: implements a Paypal controller

* Abort.aspx: Paypal paiement aborting page

* Commit.aspx: Paypal paiement commit page

* IPN.aspx: Paypal paiement notification page

* Index.aspx: Paypal paiement form page

* WebTasks.dll: thanks to he Marcelo Zabani's coding blog:
<https://mzabani.wordpress.com/2013/09/24/mono-asp-net-project-deployment-with-web-config-xdt-transformations/>

* .gitignore: ignore my new config transformation sources

* pkg.mdproj:
* Presta.csproj:
* TestAPI.csproj:
* fortune.csproj:
* SalesCatalog.csproj:
* ITContentProvider.csproj:
* NpgsqlMRPProviders.csproj:
* NpgsqlBlogProvider.csproj:
* NpgsqlContentProvider.csproj: adds a build target named "Lua"

* Makefile: instead of `deploy`, start Xsp, in the `dist` folder

* Yavsc.sln:
* YavscModel.csproj:
* WebControls.csproj:
* YavscClient.csproj: Lua config

* yavsc.rate.js: refactoring, still needs a cleanning

* RateSkillControl.ascx: give it the `rate-site-skill` `data-type`
  html attribute

* RateUserSkillControl.ascx: cleans an obsolete code chunk

* Web.csproj: Fixes the missing RateSkillControl at deploy time,
adds my deployment config
2015-11-19 16:30:45 +01:00

39 lines
1.2 KiB
Plaintext

<%@ 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() {
var $sname = $('#SkillName').val();
Skills.createSkill($sname, function(sid) {
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>