Thème clair opé, WIP circles
* animate.css: animations css * links.css: liens avec le fond blanc qui se déroule * links.css: WIP liens thème sombre * GitHub.ico: un petit merci à GitHub * live-concert-fg.png: image de plan rapproché : les fans * live-concert-scene.jpg: Image de fond : la scene * splash-image-2.jpg: image de fond : photo colorée, public de concert, vient de totemproduction.fr * links.css: ficher de définitions globales du style des bouttons (encore inutilisé) * yavsc.user.js: WIP implémente le widget "utilisateur", permettant l'affichage des liens rapides pour tout nom d'ulitisateur, le cas échéant, vers l'ajout à un cercle, vers son blog, vers des methodes choisies d'administateur, vers ses réseaux sociaux, voir plus. * About.aspx: Implémente une page "à propos" * Test.aspx: Page de test: désolé pour le bruit, elle n'est compilée qu'en mode `Debug` (elle n'est pas accessible en production) * NpgsqlBlogProvider.cs: Corrige la méthode pour enlever un tag à un article ... * NpgsqlBlogProvider.csproj: . * NpgsqlCircleProvider.cs: liste les cercles auquels appartient un utilisateur. * BasketController.cs: * NpgsqlContentProvider.cs: Les commandes sont fortement typée. * README.md: mise à jour des priorités * style.css: réécriture du thème clair * style.css: * implémente un classe css `clickme` pour attirer l'oeil sur le boutton de validation après la modification d'un champ de formulaire. * enlève tous les coins arrondis * modifie la chasse de caractères (une seule utilisée pour le moment) * * style.css: * integre la référence à la feuille de style des [animations](https://daneden.github.io/animate.css/) * corrige des marges, alignements * supprime ce qui reste de coin arrondi * néttoye les définitions obsolètes * définit la classe `username` * corrige le survol à la suppression de tag * FrontOfficeController.cs: renomme des methodes, refabriqué pour s'adapter aux changements de l'API du workflow, WIP propose les cercles utilisateurs pour l'ajout des profiles préstataires aux cercles. * HomeController.cs: implémente une page "à propos" * T.cs: re-autorise le titre vide de page, au cas où ... car ce n'est pas un véritable défaut fonctionnel. * YavscHelpers.cs: Implemente un outil de presentation des liens action traduits. Tous les liens action utilisent maintenant cette nouvelle methode, au profile de celle du framework `HtmlHelpers.ActionLink` * App.master: corrige l'usage du contrôle utilisateur des cotes dans le cadre des cotes de billet. * AppAdmin.master: * Index.aspx: * Service.aspx: * ProductCategory.aspx: traduction des liens action * NoLogin.master: * traduction des liens action * suppression des liens de remerciement dans le bas de page, cette information a été déplacée dans la page `/Home/Credits` * to-markdown.js: transforme maintenant les noeuds Html `div` en paragraphes Markdown. * yavsc.hidefieldset.js: Le script règle la forme de la souris au survol du bouton, le cas échéant. * yavsc.js: nouvelle fonction javascript pour logger un objet arbitraire. * yavsc.rate.js: Fixe la possibilité de mettre des cotes très basses ou très hautes (reste encore un mieux à faire), Affiche au survol des descriptions optionnelles de la cote. * Title.aspx: * UserPost.aspx: * Edit.aspx: * Index.aspx: * Brand.aspx: * Index.aspx: * PostActions.ascx: * TitleNotFound.aspx: * Booking.aspx: * Command.aspx: * ChangePasswordSuccess.aspx: Traduction des liens action * Login.aspx: * Traduction des liens actionTraduction des liens action * Profile.aspx: * Traduction des liens actionTraduction des liens action * utilisation de la classe css `mayhide` qui autorise maintenant un champ d'entrées de formulaire à être plié/déplié au click sur sa légende. * Admin.aspx: Traduction des liens actionTraduction des liens actionTraduction des liens actionTraduction des liens actionTraduction des liens actionTraduction des liens action * Backups.aspx: * RoleList.aspx: * UserList.aspx: * Index.aspx: Traduction des liens actionTraduction des liens action * Edit.aspx: * refabrication de la structure Html * Traduction des liens actionTraduction des liens action * Index.aspx: Simlpification des apperçus de blog * TagControl.ascx: refabrication pour simplifier l'implémentation du contrôle utilisateur des tags * UserPosts.aspx: Traduction des liens action, et simplification du listing de blog * Basket.aspx: Affiche les articles du panier de commandes avec leur vue dédiée à leur type (les commande sont maintenant fortement typées) * Catalog.aspx: Traduction des liens action, correctin du lien vers le produit (cassé depuis une vielle refabrication des routes) * DoAnEstimate.aspx: refabrication de la vue de création du devis: renommée depuis `Estimate` * Performer.ascx: * un message supplementaire à l'absence de compétence affichée par un préstataire * des guillemets autour du commentaire du préstataire sur sa compétence * ajout du préstataire au cercles * Performers.aspx: Décrit en détail les informations sur la disponibilité d'un préstataire, à la date demandée. * YourEstimates.aspx: renomage de cette page, pour préciser sa fonction : Vos devis. * Contact.aspx: structure Html de la page de contact * Credits.aspx: Ajoute les remerciements aux communauté du libre * Index.aspx: ne fait rien * Web.config: * import de `System.Transactions` * mise à jour des credits libres * WebDeploy.targets: utilise les séparateurs de chemin vers ficher à la POSIX, ne change rien pour ma config ... (TODO tester sous WoinDose) * Yavsc.csproj: déploie des pages des scripts Javascript et des images et feuilles de style en plus. * CircleManager.cs: implémente les methodes utilisées à la construction du contrôle utilisateur. * CircleProvider.cs: * doc xml * extension de interface * Commande.cs: l'objet `Command` devient abstrait, pour exister (être instanciée), une commande doit maintenant hériter de cet objet abstrait. * LocalizedText.resx: * LocalizedText.fr.resx: * LocalizedText.Designer.cs: * LocalizedText.fr.Designer.cs: traductions * IContentProvider.cs: doc xml * SiteSkills.aspx: renomage de cette page, pour préciser sa fonction : les compétences sur ce site.
This commit is contained in:
parent
c23b737144
commit
d999ae5a8e
82 changed files with 4856 additions and 594 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<%@ Page Title="Successfully changed your password" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ActionLink("Register","Register")%></div>
|
||||
<div><%= Html.ActionLink("ChangePassword","ChangePassword")%></div>
|
||||
<%= Html.TranslatedActionLink("Register","Register")%></div>
|
||||
<div><%= Html.TranslatedActionLink("ChangePassword","ChangePassword")%></div>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<input type="submit"/>
|
||||
<% } %></div>
|
||||
<div class="panel">
|
||||
<%= Html.ActionLink("S'enregistrer","GetRegister",new {returnUrl=ViewData["returnUrl"]}, new { @class="actionlink" }) %>
|
||||
<%= Html.TranslatedActionLink("S'enregistrer","GetRegister",new {returnUrl=ViewData["returnUrl"]}, new { @class="actionlink" }) %>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<a href="<%= Url.RouteUrl ("Default", new { controller = "Google", action= "Login", returnUrl=ViewData["returnUrl"] }) %>" class="actionlink">
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
%><aside>This user is Admin.</aside>
|
||||
<% } %>
|
||||
<aside>
|
||||
<%= Html.ActionLink("Changer de mot de passe","ChangePassword", "Account",null, new { @class="actionlink" })%>
|
||||
<%= Html.ActionLink("Désincription", "Unregister", "Account", new { id = ViewData["UserName"] } , new { @class="actionlink" })%>
|
||||
<%= Html.TranslatedActionLink("Changer de mot de passe","ChangePassword", "Account",null, new { @class="actionlink" })%>
|
||||
<%= Html.TranslatedActionLink("Désincription", "Unregister", "Account", new { id = ViewData["UserName"] } , new { @class="actionlink" })%>
|
||||
</aside>
|
||||
<aside>
|
||||
<code>Compte bancaire:<%= Model.HasBankAccount %></code>
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.Hidden("UserName",ViewData["ProfileUserName"]) %>
|
||||
|
||||
<fieldset><legend>Informations publiques
|
||||
<fieldset class="mayhide"><legend>Informations publiques
|
||||
<i>
|
||||
<img src="<%=Url.AvatarUrl(HttpContext.Current.User.Identity.Name)%>" alt="avatar" class="avatar" />
|
||||
<%=Html.Encode(Model.UserName)%> APE:<%=Model.MEACode%> <%=Model.WebSite%> </i></legend>
|
||||
|
|
@ -56,7 +56,7 @@ Avatar :
|
|||
</span>
|
||||
</fieldset>
|
||||
|
||||
<fieldset><legend>Informations administratives
|
||||
<fieldset class="mayhide"><legend>Informations administratives
|
||||
<i><%= string.IsNullOrWhiteSpace(Model.Name)?"KO":Html.Encode(Model.Name) %>
|
||||
</i>
|
||||
</legend>
|
||||
|
|
@ -66,7 +66,7 @@ Avatar :
|
|||
<%= Html.ValidationMessage("Name", "*") %></span>
|
||||
</fieldset>
|
||||
|
||||
<fieldset><legend>Blog <i><%=Html.Encode(Model.BlogTitle)%>
|
||||
<fieldset class="mayhide"><legend>Blog <i><%=Html.Encode(Model.BlogTitle)%>
|
||||
<%= Model.BlogVisible?null:Html.Translate("hidden") %>
|
||||
</i></legend>
|
||||
<div class="spanel">
|
||||
|
|
@ -81,7 +81,7 @@ Avatar :
|
|||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset><legend>Contact
|
||||
<fieldset class="mayhide"><legend>Contact
|
||||
<i><%=Html.Encode(Model.Phone)%> <%=Html.Encode(Model.Mobile)%>
|
||||
<%=Html.Encode(Model.HasPostalAddress?"adresse OK":"adresse KO")%></i>
|
||||
</legend>
|
||||
|
|
@ -111,30 +111,35 @@ Avatar :
|
|||
<%= Html.ValidationMessage("Country", "*") %>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset><legend>Disponibilité
|
||||
<fieldset class="mayhide"><legend>Profile préstataire</legend>
|
||||
|
||||
<fieldset class="mayhide"><legend>Disponibilité
|
||||
<i><%=Html.Encode(
|
||||
string.IsNullOrWhiteSpace(Model.GoogleCalendar)?"KO":"OK")%></i></legend>
|
||||
<div class="spanel">
|
||||
<%= Html.LabelFor(model => model.GoogleCalendar) %> :
|
||||
|
||||
<%= Html.Encode(Model.GoogleCalendar) %>
|
||||
<%= Html.ActionLink("Choisir l'agenda","ChooseCalendar","Google",new { returnUrl= Request.Url.AbsolutePath }, new { @class="actionlink" }) %>
|
||||
<%= Html.TranslatedActionLink("Choisir l'agenda","ChooseCalendar","Google",new { returnUrl= Request.Url.AbsolutePath }, new { @class="actionlink" }) %>
|
||||
</div></fieldset>
|
||||
<fieldset><legend>Informations de facturation
|
||||
<fieldset class="mayhide"><legend>Informations de facturation
|
||||
<i> <%=Html.Encode(Model.HasBankAccount?"OK":"KO")%> </i>
|
||||
</legend>
|
||||
|
||||
<p>Saisissez ici vos informations de facturation.</p>
|
||||
|
||||
<fieldset class="mayhide">
|
||||
<legend>Par le numéro de compte</legend>
|
||||
<div class="spanel">
|
||||
<%= Html.LabelFor(model => model.BankCode) %> :
|
||||
<%= Html.TextBox("BankCode") %>
|
||||
<%= Html.ValidationMessage("BankCode", "*") %>
|
||||
</div><div class="spanel">
|
||||
|
||||
</div>
|
||||
<div class="spanel">
|
||||
<%= Html.LabelFor(model => model.WicketCode) %> :
|
||||
<%= Html.TextBox("WicketCode") %>
|
||||
<%= Html.ValidationMessage("WicketCode", "*") %>
|
||||
</div><div class="spanel">
|
||||
|
||||
<%= Html.LabelFor(model => model.AccountNumber) %> :
|
||||
<%= Html.TextBox("AccountNumber") %>
|
||||
<%= Html.ValidationMessage("AccountNumber", "*") %>
|
||||
|
|
@ -142,7 +147,11 @@ Avatar :
|
|||
<%= Html.LabelFor(model => model.BankedKey) %> :
|
||||
<%= Html.TextBox("BankedKey") %>
|
||||
<%= Html.ValidationMessage("BankedKey", "*") %>
|
||||
</div><div class="spanel">
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="mayhide">
|
||||
<legend>Par codes BIC et IBAN</legend>
|
||||
<div class="spanel">
|
||||
<%= Html.LabelFor(model => model.BIC) %> :
|
||||
<%= Html.TextBox("BIC") %>
|
||||
<%= Html.ValidationMessage("BIC", "*") %>
|
||||
|
|
@ -152,7 +161,11 @@ Avatar :
|
|||
<%= Html.ValidationMessage("IBAN", "*") %>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset><legend>Interface utilisateur
|
||||
</fieldset>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="mayhide"><legend>Interface utilisateur
|
||||
<i> <%=Html.Encode(Model.UITheme)%> </i>
|
||||
</legend>
|
||||
<span>
|
||||
|
|
@ -161,11 +174,11 @@ Avatar :
|
|||
<%= Html.ValidationMessage("UITheme", "*") %></span>
|
||||
|
||||
</fieldset>
|
||||
<input type="submit"/>
|
||||
<input type="submit" id="submit" value="<%=Html.Translate("SubmitChanges")%>" />
|
||||
<% } %>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('fieldset').hidefieldset();
|
||||
$('input').on('change',function(){$(this).addClass('dirty'); $('#submit').addClass('clickme');});
|
||||
});
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<% foreach (string u in (string[])ViewData["admins"]) { %>
|
||||
<tr><td>
|
||||
<%= u %> </td><td>
|
||||
<%= Html.ActionLink("Remove","RemoveFromRole",
|
||||
<%= Html.TranslatedActionLink("Remove","RemoveFromRole",
|
||||
new { username = u, rolename="Admin", returnUrl = Request.Url.PathAndQuery })%>
|
||||
|
||||
</td></tr>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Models/AppAdmin.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
<%=Html.ActionLink("Create a database backup", "CreateBackup")%><br/>
|
||||
<%=Html.ActionLink("Restaurations", "Restore")%><br/>
|
||||
<%=Html.TranslatedActionLink("Create a database backup", "CreateBackup")%><br/>
|
||||
<%=Html.TranslatedActionLink("Restaurations", "Restore")%><br/>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@ Roles:
|
|||
<ul>
|
||||
<%foreach (string rolename in (string[]) Model){ %>
|
||||
|
||||
<li><%=Html.ActionLink(rolename,"UsersInRole", new { rolename = rolename }, new { @class="actionlink" } )%> <% if (Roles.IsUserInRole("Admin")) { %>
|
||||
<%= Html.ActionLink("Supprimer","RemoveRole", new { rolename = rolename }, new { @class="actionlink" } ) %>
|
||||
<li><%=Html.TranslatedActionLink(rolename,"UsersInRole", new { rolename = rolename }, new { @class="actionlink" } )%> <% if (Roles.IsUserInRole("Admin")) { %>
|
||||
<%= Html.TranslatedActionLink("Supprimer","RemoveRole", new { rolename = rolename }, new { @class="actionlink" } ) %>
|
||||
<% } %></li>
|
||||
<% } %>
|
||||
|
||||
</ul>
|
||||
<% if (Roles.IsUserInRole("Admin")) { %>
|
||||
<%= Html.ActionLink("Ajouter un rôle","AddRole", null, new { @class="actionlink" } ) %>
|
||||
<%= Html.TranslatedActionLink("Ajouter un rôle","AddRole", null, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
|
||||
<% if (Roles.IsUserInRole("Admin")) { %>
|
||||
<%= Html.ActionLink(LocalizedText.Remove,"RemoveUser", new { username = user.UserName, returnUrl = Request.Url.PathAndQuery }, new { @class="actionlink" } ) %>
|
||||
<%= Html.ActionLink("Blogger","AddUserToRole", new { username = user.UserName, rolename="Blogger", returnUrl = Request.Url.PathAndQuery }, new { @class="actionlink" } ) %>
|
||||
<%= Html.TranslatedActionLink(LocalizedText.Remove,"RemoveUser", new { username = user.UserName, returnUrl = Request.Url.PathAndQuery }, new { @class="actionlink" } ) %>
|
||||
<%= Html.TranslatedActionLink("Blogger","AddUserToRole", new { username = user.UserName, rolename="Blogger", returnUrl = Request.Url.PathAndQuery }, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
</li><% }%>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<ul>
|
||||
<li><%= Html.ActionLink("Notifier des cercles d'un évennement","NotifyEvent","BackOffice" ) %></li>
|
||||
<li><%= Html.TranslatedActionLink("Notifier des cercles d'un évennement","NotifyEvent","BackOffice" ) %></li>
|
||||
</ul>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -13,28 +13,37 @@
|
|||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<aside>
|
||||
Id:<%= Html.ActionLink( Model.Id.ToString() , "UserPost", new { user= Model.Author, title=Model.Title, id = Model.Id }, new { @class = "usertitleref actionlink" }) %>
|
||||
Id:<%= Html.TranslatedActionLink( Model.Id.ToString() , "UserPost", new { user= Model.Author, title=Model.Title, id = Model.Id }, new { @class = "usertitleref actionlink" }) %>
|
||||
, Posted: <%= Model.Posted.ToString("yyyy/MM/dd") %> - Modified: <%= Model.Modified.ToString("yyyy/MM/dd") %>
|
||||
Visible: <%= Model.Visible? "oui":"non" %> <%= Html.ActionLink("Supprimer","RemovePost", new { user=Model.Author, title = Model.Title, id = Model.Id }, new { @class="actionlink" } ) %>
|
||||
Visible: <%= Model.Visible? "oui":"non" %> <%= Html.TranslatedActionLink("Supprimer","RemovePost", new { user=Model.Author, title = Model.Title, postid = Model.Id }, new { @class="actionlink" } ) %>
|
||||
</aside>
|
||||
|
||||
<aside>
|
||||
|
||||
<% using(Html.BeginForm("Edit","Blogs")) { %>
|
||||
<fieldset>
|
||||
<legend>Contrôle d'accès au Billet</legend>
|
||||
<%= Html.LabelFor(model => model.Visible) %> : <%= Html.CheckBox( "Visible" ) %>
|
||||
<i id="note_visible">Note: Si un ou plusieurs cercles sont séléctionnés ici,
|
||||
le billet ne sera visible qu'aux membres de ces cercles.</i>
|
||||
<%= Html.ValidationMessage("Visible", "*") %>
|
||||
<%= Html.LabelFor(model => model.AllowedCircles) %>
|
||||
|
||||
<fieldset class="mayhide">
|
||||
<legend>Attacher des fichiers</legend>
|
||||
<input type="file" name="attached" id="postedfile" multiple>
|
||||
<input type="button" value="attacher les ficher" onclick="submitFile()">
|
||||
<input type="button" value="importer les documents" onclick="submitImport()">
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="mayhide">
|
||||
<legend><i class="fa fa-lock"></i> <%= Html.Translate("BillAccessControl") %></legend>
|
||||
<label for="Visible"><i class="fa fa-eye"></i></label> : <%= Html.CheckBox( "Visible" ) %>
|
||||
<%= Html.ValidationMessage("Visible", "*") %> <br>
|
||||
|
||||
<label for="AllowedCircles"> <i class="fa fa-users"></i> <%= Html.Translate("AllowedCircles") %>
|
||||
</label>
|
||||
<i class="hint">Note: Si un ou plusieurs cercles sont séléctionnés ici,
|
||||
le billet ne sera visible qu'aux membres de ces cercles.</i><br>
|
||||
|
||||
<%= Html.ListBox("AllowedCircles") %>
|
||||
<%= Html.ValidationMessage("AllowedCircles", "*") %>
|
||||
</fieldset>
|
||||
<span id="viewsource">
|
||||
<i class="fa fa-code menuitem"><%=Html.Translate("View_source")%></i></span>
|
||||
<span id="hidesource" class="hidden">
|
||||
<i class="fa fa-code menuitem"><%=Html.Translate("Hide_source")%></i>
|
||||
</span>
|
||||
<fieldset id="source" class="hidden">
|
||||
<fieldset class="mayhide">
|
||||
<legend><i class="fa fa-code"></i><%=Html.Translate("BillSourceCode")%></legend>
|
||||
<%=Html.Hidden("Author")%>
|
||||
<%=Html.Hidden("Id")%>
|
||||
<%= Html.LabelFor(model => model.Photo) %>
|
||||
|
|
@ -46,17 +55,11 @@ Visible: <%= Model.Visible? "oui":"non" %> <%= Html.ActionLink("Supprimer","Remo
|
|||
<%=Html.TextArea("Content")%>
|
||||
<%=Html.ValidationMessage("Content")%>
|
||||
</fieldset>
|
||||
<input type="submit" id="validate" value="Valider" class="fa fa-check menuitem">
|
||||
<input type="submit" id="validate" class="actionlink">
|
||||
|
||||
<% } %>
|
||||
|
||||
<form id="frmajax">
|
||||
<fieldset>
|
||||
<legend>Attacher des fichiers</legend>
|
||||
<input type="file" name="attached" id="postedfile" multiple>
|
||||
<input type="button" value="attacher les ficher" onclick="submitFile()">
|
||||
<input type="button" value="importer les documents" onclick="submitImport()">
|
||||
</fieldset>
|
||||
</form>
|
||||
</aside>
|
||||
|
||||
<span class="placard editable" for="Photo">
|
||||
<img src="<%=Model.Photo%>" alt="photo" id="vphoto" >
|
||||
|
|
@ -75,17 +78,6 @@ Visible: <%= Model.Visible? "oui":"non" %> <%= Html.ActionLink("Supprimer","Remo
|
|||
|
||||
$(document).ready(function(){
|
||||
|
||||
$('#hidesource').click(function(){
|
||||
$('#source').addClass('hidden');
|
||||
$('#viewsource').removeClass('hidden');
|
||||
$('#hidesource').addClass('hidden');
|
||||
});
|
||||
$('#viewsource').click(function(){
|
||||
$('#source').removeClass('hidden');
|
||||
$('#viewsource').addClass('hidden');
|
||||
$('#hidesource').removeClass('hidden');
|
||||
});
|
||||
|
||||
jQuery('.placard').hallo({plugins: {'hallo-image-insert-edit': { lang: 'fr' } } });
|
||||
|
||||
jQuery('#vtitle').hallo({
|
||||
|
|
@ -125,7 +117,7 @@ jQuery('#vcontent').hallo({
|
|||
'tr',
|
||||
'td',
|
||||
'th',
|
||||
'style'
|
||||
'style',
|
||||
]
|
||||
},
|
||||
'halloblacklist': {tags: ['style']},
|
||||
|
|
@ -238,6 +230,12 @@ var data = new FormData($('#frmajax').get()[0]);
|
|||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$('input').on('change',function(){$(this).addClass('dirty'); $('#validate').addClass('clickme');});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
|
|
@ -1,19 +1,21 @@
|
|||
<%@ Page Title="Articles" Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEntryCollection>" MasterPageFile="~/Models/App.master" EnableTheming="True" StylesheetTheme="dark" %>
|
||||
<%@ Page Title="Blogs" Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEntryCollection>" MasterPageFile="~/Models/App.master" EnableTheming="True" StylesheetTheme="dark" %>
|
||||
<%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<div>
|
||||
<% foreach (var g in Model.GroupByTitle()) { %>
|
||||
<div class="panel">
|
||||
<div class="postpreview panel">
|
||||
<h2><a href="<%= Url.RouteUrl("Titles", new { title = g.Key }) %>" class="usertitleref"><%=Html.Encode(g.Key)%></a></h2>
|
||||
<% foreach (var p in g) { %>
|
||||
<div class="postpreview">
|
||||
<div>
|
||||
<% if (p.Photo != null ) { %>
|
||||
<img src="<%=p.Photo%>" alt="<%=p.Photo%>" class="photo">
|
||||
<% } %>
|
||||
<p><%= Html.Markdown(p.Intro,"/bfiles/"+p.Id+"/") %></p>
|
||||
<%= Html.Partial("PostActions",p)%>
|
||||
</div> <% } %>
|
||||
<% } else {} %>
|
||||
<%= Html.Markdown(p.Intro,"/bfiles/"+p.Id+"/") %>
|
||||
<%= Html.Partial("PostActions",p) %>
|
||||
</div><% // we only show the first. It's a preview
|
||||
break;
|
||||
} %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,23 +1,23 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BasePost>" %>
|
||||
<% if (Membership.GetUser()!=null) { %>
|
||||
<aside>
|
||||
(<%= Model.Posted.ToString("D") %>
|
||||
- <%= Model.Modified.ToString("D") %> <%= Model.Visible? "":", Invisible!" %>)
|
||||
(<%= Html.Translate("Posted") %> <%= Model.Posted.ToString("D") %>
|
||||
- <%= Html.Translate("Edited") %> <%= Model.Modified.ToString("D") %> <%= Model.Visible? "":", Invisible!" %>)
|
||||
<%= Html.Partial("RateControl",Model)%>
|
||||
<%
|
||||
if (Membership.GetUser().UserName==Model.Author || Roles.IsUserInRole("Admin"))
|
||||
{ %>
|
||||
<%= Html.Partial("TagControl",Model)%>
|
||||
<% if (Model is BlogEntry) { %>
|
||||
<i class="fa fa-pencil"><%=Html.Translate("DoComment")%></i>
|
||||
<% using (Html.BeginForm("Comment","Blogs")) { %>
|
||||
<filedset>
|
||||
<%=Html.Hidden("Author")%>
|
||||
<fieldset>
|
||||
<legend><i class="fa fa-pencil"></i><%=Html.Translate("DoComment")%></legend>
|
||||
<div> <%=Html.Hidden("Author")%>
|
||||
<%=Html.Hidden("Title")%>
|
||||
<%=Html.TextArea("CommentText","")%>
|
||||
<%=Html.Hidden("PostId",Model.Id)%>
|
||||
<input type="submit" value="Poster un commentaire"/>
|
||||
</filedset> <% } %>
|
||||
<input type="submit" value="Poster un commentaire"/></div>
|
||||
</fieldset> <% } %>
|
||||
<% } %>
|
||||
<a href="<%= Url.RouteUrl("Default", new { action = "EditId", postid = Model.Id })%>" class="actionlink">
|
||||
<i class="fa fa-pencil"><%=Html.Translate("Edit")%></i>
|
||||
|
|
|
|||
|
|
@ -2,28 +2,23 @@
|
|||
<ul id="tags<%=Model.Id%>" data-postid="<%=Model.Id%>" class="editablelist ">
|
||||
<% if (Model.Tags != null) {
|
||||
foreach ( var tagname in Model.Tags) { %>
|
||||
<li class="tagname fa fa-tag"><%=tagname%></li> <%
|
||||
<li><i class="fa fa-tag"></i><%=tagname%></li><%
|
||||
%><% } } %>
|
||||
</ul>
|
||||
<% if (Membership.GetUser()!=null) { %>
|
||||
<% if (Membership.GetUser().UserName==Model.Author || Roles.IsUserInRole("Admin"))
|
||||
{ // grant all permissions: to choose a given set of tags, also create some new tags %>
|
||||
|
||||
<span id="viewtagger<%=Model.Id%>">
|
||||
<i class="fa fa-tag menuitem" id="viewtaggerbtn<%=Model.Id%>"><%=Html.Translate("DoTag")%></i></span>
|
||||
<span id="hidetagger<%=Model.Id%>" class="hidden">
|
||||
<i class="fa fa-tag menuitem" id="hidetaggerbtn<%=Model.Id%>" ><%=Html.Translate("Tags")%> - <%=Html.Translate("Hide")%></i>
|
||||
Note: Ils sont utilisé pour classifier le document. Par exemple, le tag <code>Accueil</code> rend le document
|
||||
éligible à une place en page d'Accueil.
|
||||
</span>
|
||||
<form id="tagger<%=Model.Id%>" class="maskable" data-btn-show="viewtagger<%=Model.Id%>" data-btn-hide="hidetagger<%=Model.Id%>" >
|
||||
<form id="tagger<%=Model.Id%>">
|
||||
<fieldset>
|
||||
<legend>Associer des tags au billet</legend>
|
||||
<legend><i class="fa fa-tags"></i> <%=Html.Translate("DoTag")%></legend>
|
||||
<div>
|
||||
<label for="newtag"><%= Html.Translate("Tag_name")%>: </label>
|
||||
<span id="Err_tag<%=Model.Id%>" class="error"></span>
|
||||
<input type="text" id="newtag<%=Model.Id%>" class="taginput">
|
||||
<span id="Err_model<%=Model.Id%>" class="error"></span>
|
||||
<input id="sendnewtag<%=Model.Id%>" type="submit" class="submittag fa fa-tag" value="<%=Html.Translate("Submit")%>">
|
||||
<input id="sendnewtag<%=Model.Id%>" type="submit" class="link fa fa-tag" value="<%=Html.Translate("Submit")%>">
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="header1" runat="server">
|
||||
<h1>
|
||||
<%=Html.ActionLink(Model.Title, "Title", new{title=Model.Title}, null)%>
|
||||
<%=Html.TranslatedActionLink(Model.Title, "Title", new{title=Model.Title}, null)%>
|
||||
- <a href="<%= Url.RouteUrl("Default",new {controller="Home" }) %>"><%= YavscHelpers.SiteName %></a>
|
||||
</h1>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEntryCollection>" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
Pas d'article trouvé ici: <<%= Html.Encode(ViewData["BlogUser"]) %>/<%= Html.Encode(ViewData["PostTitle"]) %>>
|
||||
<br/> <%= Html.ActionLink("Poster?","Post/", new { user = ViewData["BlogUser"], title = ViewData["PostTitle"]}, new { @class="actionlink" }) %>
|
||||
<br/> <%= Html.TranslatedActionLink("Poster?","Post/", new { user = ViewData["BlogUser"], title = ViewData["PostTitle"]}, new { @class="actionlink" }) %>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<a href="<%= Url.RouteUrl("BlogByTitle", new{ user=Model.Author, title = Model.Title}) %>">
|
||||
<%=Model.Title%>
|
||||
</a>
|
||||
- <%= Html.ActionLink((string)ViewData ["BlogTitle"] ,"UserPosts",new{user=Model.Author}, null) %>
|
||||
- <%= Html.TranslatedActionLink((string)ViewData ["BlogTitle"] ,"UserPosts",new{user=Model.Author}, null) %>
|
||||
-
|
||||
<a href="<%=Url.Content("~/")%>"><%= YavscHelpers.SiteName %></a>
|
||||
</h1>
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
<img class="avatar" src="<%= Url.RouteUrl("Default", new { action="Avatar", controller="Account", user = c.From } ) %>" alt="<%=c.From%>"/>
|
||||
<%= Html.Markdown(c.CommentText) %>
|
||||
<% if (Model.Author == username || c.From == username ) { %>
|
||||
<%= Html.ActionLink("Supprimer","RemoveComment", new { cmtid = c.Id } , new { @class="actionlink" })%>
|
||||
<%= Html.TranslatedActionLink("Supprimer","RemoveComment", new { cmtid = c.Id } , new { @class="actionlink" })%>
|
||||
<% } %>
|
||||
</div><% } %>
|
||||
</div><% } %>
|
||||
|
|
|
|||
|
|
@ -22,15 +22,18 @@
|
|||
|
||||
<% foreach (var g in Model.GroupByTitle()) { %>
|
||||
<div class="panel">
|
||||
<h2><a href="<%= Url.RouteUrl("Titles", new { title = g.Key }) %>" class="usertitleref"><%=Html.Encode(g.Key)%></a></h2>
|
||||
<% foreach (var p in g) { %>
|
||||
<% foreach (var p in g) { %>
|
||||
<div class="postpreview">
|
||||
<a href="<%= Url.RouteUrl("Titles", new { title = g.Key}) %>" >
|
||||
<% if (p.Photo!=null) { %>
|
||||
<img src="<%=p.Photo%>" alt="photo" class="photo"><% } %>
|
||||
<%= Html.Markdown(p.Intro,"/bfiles/"+p.Id+"/") %>
|
||||
<%= Html.Partial("PostActions",p)%>
|
||||
</div> <% } %>
|
||||
<img src="<%=p.Photo%>" alt="<%=g.Key%>" >
|
||||
<% } else { %>
|
||||
<%} %><%=Html.Encode(g.Key)%></a>
|
||||
<div>
|
||||
<%= Html.Markdown(p.Intro,"/bfiles/"+p.Id+"/") %>
|
||||
<%= Html.Partial("PostActions",p)%></div>
|
||||
</div> <% break; } %>
|
||||
</div>
|
||||
<% } %>
|
||||
<%= Html.RenderPageLinks((int)ViewData["PageIndex"],(int)ViewData["PageSize"],(int)ViewData["ResultCount"])%>
|
||||
<%= Html.RenderPageLinks((int) ViewData["PageIndex"],(int)ViewData["PageSize"],(int)ViewData["ResultCount"])%>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Html.ActionLink("Delete","FileSystem") %>
|
||||
<%= Html.ActionLink("Rename","FileSystem") %>
|
||||
<%= Html.TranslatedActionLink("Delete","FileSystem") %>
|
||||
<%= Html.TranslatedActionLink("Rename","FileSystem") %>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
</h1>
|
||||
<ul>
|
||||
<% foreach (System.IO.FileInfo fi in Model) { %>
|
||||
<li> <%= Html.ActionLink(fi.Name,"Details",new {id = fi.Name}) %> </li>
|
||||
<li> <%= Html.TranslatedActionLink(fi.Name,"Details",new {id = fi.Name}) %> </li>
|
||||
<% } %>
|
||||
</ul>
|
||||
|
||||
<%= Html.ActionLink("Ajouter des fichiers","Create") %>
|
||||
<%= Html.TranslatedActionLink("Ajouter des fichiers","Create") %>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -10,27 +10,19 @@
|
|||
<% if (Model.Count>0) { %>
|
||||
<ul>
|
||||
<% foreach (Command cmd in Model.Values) { %>
|
||||
<li>
|
||||
<%= cmd.Id %>
|
||||
<%= cmd.CreationDate %>
|
||||
|
||||
<%= cmd.Status %>
|
||||
<%= cmd.ProductRef %>
|
||||
<ul>
|
||||
<% if (cmd.Parameters!=null)
|
||||
foreach (string key in cmd.Parameters.Keys) { %>
|
||||
<li><%=key%>: <%=cmd.Parameters[key]%></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
<li><div>
|
||||
<%= cmd.Id %>/<%= cmd.CreationDate %>/<%= cmd.Status %>
|
||||
<%= cmd.ProductRef %></div>
|
||||
<div>
|
||||
<%= Html.Partial(cmd.GetType().Name,cmd) %>
|
||||
</div>
|
||||
</li>
|
||||
<% } %>
|
||||
</ul>
|
||||
<% } %>
|
||||
|
||||
|
||||
<ul><li>
|
||||
<%= Html.ActionLink("Catalog","Catalog" ) %>
|
||||
<%= Html.TranslatedActionLink("Catalog","Catalog" ) %>
|
||||
</li><li>
|
||||
<%= Html.ActionLink("Estimates","Estimates" ) %>
|
||||
<%= Html.TranslatedActionLink("Estimates","Estimates" ) %>
|
||||
</li></ul>
|
||||
</asp:Content>
|
||||
|
|
@ -1,16 +1,11 @@
|
|||
<%@ Page Title="Booking" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<SimpleBookingQuery>" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="init" ID="init1" runat="server">
|
||||
<% Title = Html.Translate("BookingTitle"+Model.MEACode) + " - " + YavscHelpers.SiteName; %>
|
||||
<% Title = Html.Encode(ViewBag.Activity.Title) + " - " + YavscHelpers.SiteName; %>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="header1" runat="server">
|
||||
<h1>
|
||||
<a href="<%=Url.RouteUrl("FrontOffice",new {action="Booking", MEACode=Model.MEACode })%>">
|
||||
<img href="<%= ViewData["Photo"] %>" alt="">
|
||||
<%=Html.Translate("BookingTitle"+Model.MEACode)%>
|
||||
</a>
|
||||
- <a href="<%= Url.RouteUrl("Default",new {controller="Home" }) %>"><%= YavscHelpers.SiteName %></a>
|
||||
<h1><%=Html.Encode(ViewBag.Activity.Title) %> - <a href="<%= Url.RouteUrl("Default",new {controller="Home" }) %>"><%= YavscHelpers.SiteName %></a>
|
||||
</h1>
|
||||
</asp:Content>
|
||||
|
||||
|
|
@ -30,6 +25,8 @@
|
|||
<%= Html.Hidden("MEACode") %>
|
||||
<fieldset>
|
||||
<legend><%= Html.Translate("YourNeed") %></legend>
|
||||
<%= Html.Translate("Si vous le voulez, vous pouvez détailler ici votre demande, en matière de compétences attendues:") %>
|
||||
<div>
|
||||
<input type="hidden" name="Need" id="Need" value="">
|
||||
<ul >
|
||||
<% if (ViewData ["Needs"]!=null)
|
||||
|
|
@ -38,12 +35,15 @@
|
|||
<% } %>
|
||||
</ul>
|
||||
<%= Html.ValidationMessageFor(model=>model.Need) %>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><%= Html.Translate("PerformanceDate") %></legend>
|
||||
Intervention souhaitée le
|
||||
<input type="text" id="PreferedDate" name="PreferedDate" class="start date" value="<%=Model.PreferedDate.ToString("yyyy/MM/dd")%>">
|
||||
<%= Html.Translate("Indiquez ici la date souhaitée pour la prestation.") %>
|
||||
<div>
|
||||
Intervention souhaitée le : <input type="text" id="PreferedDate" name="PreferedDate" class="start date" style="z-index: 99 !important;" value="<%=Model.PreferedDate.ToString("yyyy/MM/dd")%>">
|
||||
<%= Html.ValidationMessageFor( model=>model.PreferedDate ) %>
|
||||
</div>
|
||||
</fieldset>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
|
@ -70,12 +70,12 @@ Intervention souhaitée le
|
|||
'autoclose': true } ;
|
||||
|
||||
// $('#PreferedHour').timepicker(tpconfig);
|
||||
$('#PreferedDate').datepicker(dpconfig);
|
||||
$('#PreferedDate').datepicker(dpconfig).zIndex(4);
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<input type="submit">
|
||||
<input type="submit" value="<%=Html.Translate("Search")%>" class="fullwidth actionlink">
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,12 +10,12 @@
|
|||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (ProductCategory pc in Model.Categories ) { %>
|
||||
<div>
|
||||
<h2><%= Html.ActionLink( pc.Name, "ProductCategory", new { id = Model.Name, pc = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
<h2><%= Html.TranslatedActionLink( pc.Name, "ProductCategory", new { id = Model.Name, pc = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
</div>
|
||||
|
||||
<% foreach (Product p in pc.Products ) { %>
|
||||
<div>
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = Model.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<h3><%= Html.TranslatedActionLink( p.Name, "Product", new { id = Model.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
|
|
|
|||
|
|
@ -2,16 +2,18 @@
|
|||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (Brand b in Model.Brands ) { %><div>
|
||||
<h1> <%= Html.ActionLink( b.Name, "Brand", new { id = b.Name }, new { @class="actionlink" } ) %> </h1>
|
||||
<h1> <%= Html.TranslatedActionLink( b.Name, "Brand", new { id = b.Name }, new { @class="actionlink" } ) %> </h1>
|
||||
<p><i><%= Html.Encode( b.Slogan ) %></i></p>
|
||||
<% foreach (ProductCategory pc in b.Categories ) { %>
|
||||
<div>
|
||||
<h2><%= Html.ActionLink( pc.Name, "ProductCategory", new { brandid= b.Name, pcid = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
<h2><%= Html.TranslatedActionLink( pc.Name, "ProductCategory", new { brandid= b.Name, pcid = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
</div>
|
||||
|
||||
<% foreach (Product p in pc.Products ) { %>
|
||||
<div>
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = b.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<h3><%= Html.TranslatedActionLink( p.Name, "Product",
|
||||
new { id = b.Name, pc = pc.Reference , pref = p.Reference },
|
||||
new { @class="actionlink" } ) %></h3>
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
<%@ Page Title="Commande" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<FormCollection>" %>
|
||||
<%@ Page Title="Commande" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<Command>" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
<%= Html.ActionLink("Votre panier","Basket","FrontOffice" ) %>
|
||||
(pas implémenté)
|
||||
|
||||
<%= Html.TranslatedActionLink("Votre panier","Basket","FrontOffice" ) %>
|
||||
|
||||
<ul><li>
|
||||
<%= Html.ActionLink("Catalog","Catalog" ) %>
|
||||
<%= Html.TranslatedActionLink("Catalog","Catalog" ) %>
|
||||
</li><li>
|
||||
<%= Html.ActionLink("Estimates","Estimates" ) %>
|
||||
<%= Html.TranslatedActionLink("Estimates","Estimates" ) %>
|
||||
</li></ul>
|
||||
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<%@ Page Title="Devis" Language="C#" Inherits="System.Web.Mvc.ViewPage<Estimate>" MasterPageFile="~/Models/App.master" %>
|
||||
<%@ Page Title="DoAnEstimate" 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>
|
||||
|
|
@ -2,20 +2,20 @@
|
|||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<ul>
|
||||
<li><%= Html.ActionLink("Catalog","Catalog" ) %></li>
|
||||
<li><%= Html.ActionLink("Basket","Basket" ) %> </li>
|
||||
<li><%= Html.ActionLink("Estimates","Estimates" ) %></li>
|
||||
<li><%= Html.ActionLink("Estimate","Estimate" ) %></li>
|
||||
<li><%= Html.TranslatedActionLink("Catalog") %></li>
|
||||
<li><%= Html.TranslatedActionLink("Basket" ) %> </li>
|
||||
<li><%= Html.TranslatedActionLink("YourEstimates") %></li>
|
||||
<li><%= Html.TranslatedActionLink("DoAnEstimate") %></li>
|
||||
<% if (User.Identity.IsAuthenticated) { %>
|
||||
<li><%= Html.ActionLink("Activities","Activities" ) %></li>
|
||||
<li><%= Html.ActionLink("ManagedSiteSkills", "Skills" ) %></li>
|
||||
<li><%= Html.ActionLink("UserSkills","UserSkills" ) %></li>
|
||||
<li><%= Html.TranslatedActionLink("Activities" ) %></li>
|
||||
<li><%= Html.TranslatedActionLink("SiteSkills") %></li>
|
||||
<li><%= Html.TranslatedActionLink("UserSkills") %></li>
|
||||
<% } else { %>
|
||||
<li><%= Html.Translate("Activities") %>,
|
||||
<%= Html.Translate("ManagedSiteSkills") %>,
|
||||
<%= Html.Translate("UserSkills") %>:
|
||||
<i><%= Html.Translate("AuthenticatedOnly") %></i></li>
|
||||
<% }%>
|
||||
|
||||
<li> <i><%= Html.Translate("AuthenticatedOnly") %>:
|
||||
<%= Html.Translate("Activities") %>,
|
||||
<%= Html.Translate("SiteSkills") %>,
|
||||
<%= Html.Translate("UserSkills") %></i>
|
||||
</li> <% }%>
|
||||
</ul>
|
||||
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -1,29 +1,41 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PerformerProfile>" %>
|
||||
<% ViewBag.BlogCounter = BlogManager.GetPostCounter(Model.UserName); %>
|
||||
<% ViewBag.WithinCircles = CircleManager.Circles(Model.UserName); %>
|
||||
<div class="performer">
|
||||
<h2>
|
||||
<img src="<%= Model.Avatar %>" alt="" class="bigavatar">
|
||||
<%=Html.Encode(Model.UserName)%>
|
||||
<span class="username" data-type="user" data-roles="" data-blog-counter="<%=ViewBag.BlogCounter%>" data-circles="" ><%=Html.Encode(Model.UserName)%></span>
|
||||
<%=Html.Partial("RateUserSkillControl", Model) %>
|
||||
</h2>
|
||||
<p>
|
||||
<i class="fa fa-envelope">
|
||||
<address>
|
||||
<% if (Membership.GetUser()!=null) { %>
|
||||
<a href="mailto:<%=Model.EMail%>">
|
||||
<i class="fa fa-envelope"></i>
|
||||
<<%=Html.Encode(Model.EMail)%>>
|
||||
<% } else { %><%=Html.LabelFor(m => m.EMail)%>:
|
||||
<i><%= Html.Translate("AuthenticatedOnly") %></i>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<i class="fa fa-envelope"></i>
|
||||
<%=Html.LabelFor(m => m.EMail)%>:
|
||||
<%= Html.Translate("AuthenticatedOnly") %>
|
||||
<% }%>
|
||||
</i>
|
||||
</p>
|
||||
</address>
|
||||
|
||||
<% if (Model.Skills==null) { %>
|
||||
<%= Html.Translate("") %>
|
||||
<% } else
|
||||
foreach (var userskill in Model.Skills) { %>
|
||||
Cet utilisateur n'a pas saisi de compétence particulière ...
|
||||
<% } else if (Model.Skills.Count()>0) { %>
|
||||
|
||||
<ul style="padding:0; margin:0;"> <% foreach (var userskill in Model.Skills) { %>
|
||||
<li class="skillname" data-sid="<%= userskill.Id %>">
|
||||
<%= userskill.SkillName %>
|
||||
<div data-type="comment">"<%= userskill.Comment %>"</div>
|
||||
<% if (!string.IsNullOrWhiteSpace(userskill.Comment)) { %>
|
||||
<div data-type="comment">
|
||||
"<%= userskill.Comment %>"
|
||||
</div><% } %>
|
||||
<%=Html.Partial("RateUserSkillControl", userskill) %>
|
||||
</li>
|
||||
</li>
|
||||
<% } %>
|
||||
</ul>
|
||||
|
||||
<% } %>
|
||||
<% if (Model.HasCalendar()) { %>
|
||||
<i class="fa fa-calendar-check" ><%= Html.Translate("Google_calendar") %> : <%= Html.Translate("available") %>.</i><br>
|
||||
|
|
@ -31,5 +43,9 @@ foreach (var userskill in Model.Skills) { %>
|
|||
<% if (BlogManager.GetPostCounter(Model.UserName)>0) { %>
|
||||
<a href="<%=Url.RouteUrl("Blogs",new { user = Model.UserName } )%>">
|
||||
<i class="fa fa-folder"><%=Model.BlogTitle %></i>
|
||||
</a></div>
|
||||
<% } %>
|
||||
</a>
|
||||
<% } %>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
@ -1,23 +1,29 @@
|
|||
<%@ Page Language="C#" Title="Performers" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<PerformerAvailability>>" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
<script type="text/javascript" src="/Scripts/yavsc.user.js"></script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<% foreach (var available in Model) { %>
|
||||
<div class="usercard">
|
||||
<%= Html.Partial("Performer", available.Profile ) %><br>
|
||||
<% if (available.DateAvailable) {
|
||||
%>
|
||||
<%= Html.Translate("ThisPerformerGivesAccessToHisCalendarAndSeemsToBeAvailable") %>
|
||||
<%
|
||||
}
|
||||
else if (available.Profile.HasCalendar()) {
|
||||
%>
|
||||
<%= Html.Translate("ThisPerformerGivesAccessToHisCalendarAndItAppearsHeShouldNotBeAvailable") %>
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
<div class="panel">
|
||||
<%= Html.Partial("Performer", available.Profile ) %>
|
||||
<div class="availability">
|
||||
<% if (available.DateAvailable) { %>
|
||||
<%= Html.Translate("ThisPerformerGivesAccessToHisCalendarAndSeemsToBeAvailableThis") %>
|
||||
<%= available.PerformanceDate.ToString("D") %>
|
||||
<% } else if (available.Profile.HasCalendar()) { %>
|
||||
<%= Html.Translate("ThisPerformerGivesAccessToHisCalendarAndItAppearsHeShouldNotBeAvailableThis") %>
|
||||
<%= available.PerformanceDate.ToString("D") %>
|
||||
<% } else {%>
|
||||
<%= Html.Translate("ThisPerformerDoesntGiveAccessToHisCalendar") %>
|
||||
|
||||
|
||||
<%
|
||||
} %></div><% } %>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("[data-type='user']").user({circles:<%=Ajax.JSonString(ViewData["Circles"])%>});
|
||||
});
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (Product p in Model.Products ) { %>
|
||||
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = ViewData["BrandId"], pc = Model.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<h3><%= Html.TranslatedActionLink( p.Name, "Product", new { id = ViewData["BrandId"], pc = Model.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<% Title = ViewData ["BrandName"] + " " + Model.Name; %>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2> <%=ViewData ["ProdCatName"]%> - <%= Html.ActionLink( Model.Name, "Product", new { id = ViewData ["BrandName"], pc = ViewData ["ProdCatRef"] , pref = Model.Reference } ) %></h2>
|
||||
<h2> <%=ViewData ["ProdCatName"]%> - <%= Html.TranslatedActionLink( Model.Name, "Product", new { id = ViewData ["BrandName"], pc = ViewData ["ProdCatRef"] , pref = Model.Reference } ) %></h2>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<%@ Page Title="My estimates" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Estimate>>" %>
|
||||
<%@ Page Title="YourEstimates" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Estimate>>" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<% if (((int)ViewData["ResponsibleCount"])>0) { %>
|
||||
<div>
|
||||
|
|
@ -7,7 +7,7 @@ Les estimations que vous avez faites (<%=ViewData["ResponsibleCount"]%>):<br>
|
|||
foreach (Estimate estim in Model) {
|
||||
if (string.Compare(estim.Responsible,(string) ViewData["UserName"])==0) { %>
|
||||
|
||||
<%= Html.ActionLink("Titre:"+estim.Title+" Client:"+estim.Client,"Estimate",new{id=estim.Id}) %>
|
||||
<%= Html.TranslatedActionLink("Titre:"+estim.Title+" Client:"+estim.Client,"Estimate",new{id=estim.Id}) %>
|
||||
<br>
|
||||
<% }}%>
|
||||
</div>
|
||||
|
|
@ -17,7 +17,7 @@ foreach (Estimate estim in Model) {
|
|||
Vos estimations en tant que client
|
||||
(<%=ViewData["ClientCount"]%>):<br>
|
||||
<% foreach (Estimate estim in Model) { %>
|
||||
<%= Html.ActionLink("Titre:"+estim.Title+" Responsable:"+estim.Responsible,"Estimate",new{id=estim.Id}) %>
|
||||
<%= Html.TranslatedActionLink("Titre:"+estim.Title+" Responsable:"+estim.Responsible,"Estimate",new{id=estim.Id}) %>
|
||||
<br><% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
7
web/Views/Home/About.aspx
Normal file
7
web/Views/Home/About.aspx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<%@ Page Title="About" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
<p><%= Html.Translate("AboutContent") %></p>
|
||||
|
||||
</asp:Content>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<%@ 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">
|
||||
<div class="bigpanel">
|
||||
<p>
|
||||
Directeur : Paul Schneider<br>
|
||||
Adresse postale : 2 Boulevard Aristide Briand<br>
|
||||
|
|
@ -12,7 +12,7 @@ SIRET : 803 851 674 00017<br>
|
|||
Activité Principalement Exercée (APE) : 5829C Édition de logiciels applicatifs<br>
|
||||
</p>
|
||||
<% using (Html.BeginForm("Contact", "Home")) { %>
|
||||
<fieldset>
|
||||
<fieldset style="width:100%">
|
||||
<legend>Message</legend>
|
||||
<p>
|
||||
<%= Html.Label("email") %>:
|
||||
|
|
@ -27,7 +27,7 @@ Activité Principalement Exercée (APE) : 5829C Édition de logiciels applicatif
|
|||
<p>
|
||||
<%= Html.Label("body") %>:
|
||||
<%= Html.ValidationMessage("body") %><br/>
|
||||
<%= Html.TextArea("body") %>
|
||||
<%= Html.TextArea("body",new {@rows="25"}) %>
|
||||
</p>
|
||||
</fieldset>
|
||||
<input type="submit" value="<%=Html.Translate("Submit")%>">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,22 @@
|
|||
<%@ Page Title="Credits" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div>Icons made by <a href="http://www.flaticon.com/authors/vectorgraphit" title="Vectorgraphit">Vectorgraphit</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a></div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<%=Html.Translate("Icons_made_by")%> <a href="http://www.flaticon.com/authors/vectorgraphit" title="Vectorgraphit">Vectorgraphit</a>
|
||||
<%=Html.Translate("from")%> <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a>
|
||||
<%=Html.Translate("is_licensed_by")%> <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a>
|
||||
|
||||
</div>
|
||||
|
||||
<% foreach ( Yavsc.Helpers.Link link in Html.Thanks()) { %>
|
||||
<a href="<%=link.Url%>"><% if (link.Image !=null) {
|
||||
%><img src="<%= link.Image %>" alt="<%= link.Text %>"/></a>
|
||||
<% } else { %>
|
||||
<a href="<%=link.Url%>"><%= link.Text %></a>
|
||||
<% }} %>
|
||||
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -13,5 +13,6 @@
|
|||
<%= Html.Partial("Activity",a) %>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
|
|
|||
39
web/Views/Home/Test.aspx
Normal file
39
web/Views/Home/Test.aspx
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="initContent" ContentPlaceHolderID="init" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="overHeaderOneContent" ContentPlaceHolderID="overHeaderOne" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
<div class="test1">
|
||||
<div class="panel">
|
||||
A single panel
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="test2">
|
||||
<div class="panel">
|
||||
Premier panneau
|
||||
</div>
|
||||
<div class="panel">
|
||||
Deuxième et dernier panneau
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="test3">
|
||||
<div class="panel">
|
||||
Premier panneau
|
||||
</div>
|
||||
<div class="panel">
|
||||
Deuxième panneau
|
||||
</div>
|
||||
<div class="panel">
|
||||
Troisème et dernier panneau
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ActionLink("blogs","Index","WorkFlow") %>
|
||||
<%= Html.TranslatedActionLink("blogs","Index","WorkFlow") %>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue