refx & wf actions config
This commit is contained in:
parent
2f3a08829d
commit
d8fa166115
11 changed files with 38 additions and 25 deletions
|
|
@ -42,7 +42,6 @@ namespace Yavsc.Controllers
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public IActionResult Index(string id, int skip=0, int maxLen=25)
|
public IActionResult Index(string id, int skip=0, int maxLen=25)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(id))
|
if (!string.IsNullOrEmpty(id))
|
||||||
return UserPosts(id);
|
return UserPosts(id);
|
||||||
string uid = User.GetUserId();
|
string uid = User.GetUserId();
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ namespace Yavsc.Controllers
|
||||||
}
|
}
|
||||||
private void SetViewBag(CommandForm commandForm=null) {
|
private void SetViewBag(CommandForm commandForm=null) {
|
||||||
ViewBag.ActivityCode = new SelectList(_context.Activities, "Code", "Name", commandForm?.ActivityCode);
|
ViewBag.ActivityCode = new SelectList(_context.Activities, "Code", "Name", commandForm?.ActivityCode);
|
||||||
ViewBag.Action = YavscLib.YavscConstants.Forms.Select( c => new SelectListItem { Text = c, Selected = commandForm?.Action == c } );
|
ViewBag.Action = Startup.Forms.Select( c => new SelectListItem { Text = c, Selected = commandForm?.Action == c } );
|
||||||
}
|
}
|
||||||
// POST: CommandForms/Create
|
// POST: CommandForms/Create
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@ namespace Yavsc.Controllers
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("Book/{id?}"), HttpGet, AllowAnonymous]
|
[Route("Profiles/{id?}"), HttpGet, AllowAnonymous]
|
||||||
public ActionResult Book(string id)
|
public ActionResult Profiles(string id)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (id == null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -323,10 +323,10 @@
|
||||||
<data name="XHasBeenNotified"><value>{0} has been notified of your query, you should be fast contacted</value></data>
|
<data name="XHasBeenNotified"><value>{0} has been notified of your query, you should be fast contacted</value></data>
|
||||||
<data name="Xshouldbeavailable"><value>regarding his calendar,
|
<data name="Xshouldbeavailable"><value>regarding his calendar,
|
||||||
{0} should be available for this booking</value></data>
|
{0} should be available for this booking</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.Instrumentation"><value>Paramètres musicien (l'instrument)</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.Instrumentation"><value>Paramètres musicien (l'instrument)</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.DjSettings"><value>Paramètres Dj (le compte SoundCloud.com)</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.DjSettings"><value>Paramètres Dj (le compte SoundCloud.com)</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.FormationSettings"><value>Paramètres formation (les partenaires)</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.FormationSettings"><value>Paramètres formation (les partenaires)</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.GeneralSettings"><value>Paramètres généraux: une couleur musicale</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.GeneralSettings"><value>Paramètres généraux: une couleur musicale</value></data>
|
||||||
<data name="YouNeedToBeAuthenticatedIOToContact"><value>You need to be authenticated in order to
|
<data name="YouNeedToBeAuthenticatedIOToContact"><value>You need to be authenticated in order to
|
||||||
contact a performer</value></data>
|
contact a performer</value></data>
|
||||||
<data name="younotadmin"><value>You're not administrator</value></data>
|
<data name="younotadmin"><value>You're not administrator</value></data>
|
||||||
|
|
|
||||||
|
|
@ -396,10 +396,10 @@
|
||||||
<data name="XHasBeenNotified"><value>{0} à été notifié de votre demande, vous devriez être contacté rapidement</value></data>
|
<data name="XHasBeenNotified"><value>{0} à été notifié de votre demande, vous devriez être contacté rapidement</value></data>
|
||||||
<data name="Xshouldbeavailable"><value>Au vu de son calendrier,
|
<data name="Xshouldbeavailable"><value>Au vu de son calendrier,
|
||||||
{0} devrait être disponible pour ce rendez-vous</value></data>
|
{0} devrait être disponible pour ce rendez-vous</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.Instrumentation"><value>Paramètres musicien (l'instrument)</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.Instrumentation"><value>Paramètres musicien (l'instrument)</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.DjSettings"><value>Paramètres Dj (le compte SoundCloud.com)</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.DjSettings"><value>Paramètres Dj (le compte SoundCloud.com)</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.FormationSettings"><value>Paramètres formation (les partenaires)</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.FormationSettings"><value>Paramètres formation (les partenaires)</value></data>
|
||||||
<data name="Yavsc.Models.Booking.Profiles.GeneralSettings"><value>Paramètres généraux (visibilité et présentation)</value></data>
|
<data name="Yavsc.Models.Musical.Profiles.GeneralSettings"><value>Paramètres généraux (visibilité et présentation)</value></data>
|
||||||
<data name="Yes"><value>Oui</value></data>
|
<data name="Yes"><value>Oui</value></data>
|
||||||
<data name="YouNeedToBeAuthenticatedIOToContact"><value>Vous devez vous authentifier pour pouvoir demander un devis
|
<data name="YouNeedToBeAuthenticatedIOToContact"><value>Vous devez vous authentifier pour pouvoir demander un devis
|
||||||
à un préstataire.</value></data>
|
à un préstataire.</value></data>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ namespace Yavsc
|
||||||
/// Lists Available user profile classes.
|
/// Lists Available user profile classes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Dictionary<string,Type> ProfileTypes = new Dictionary<string,Type>() ;
|
public static Dictionary<string,Type> ProfileTypes = new Dictionary<string,Type>() ;
|
||||||
|
public static readonly string [] Forms = new string [] { "Profiles" };
|
||||||
|
|
||||||
private void ConfigureWorkflow(IApplicationBuilder app, SiteSettings settings)
|
private void ConfigureWorkflow(IApplicationBuilder app, SiteSettings settings)
|
||||||
{
|
{
|
||||||
System.AppDomain.CurrentDomain.ResourceResolve += OnYavscResourceResolve;
|
System.AppDomain.CurrentDomain.ResourceResolve += OnYavscResourceResolve;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,24 @@
|
||||||
@model IEnumerable<Blog>
|
@model IEnumerable<Blog>
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Index";
|
ViewData["Title"] = "Index";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<h2>Index</h2>
|
<h2>Index</h2>
|
||||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||||
|
@if (User.IsSignedIn()) {
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="cbv" checked/>Invisibles, posts privés</label>
|
||||||
|
<script>
|
||||||
|
$("#cbv").change(function() {
|
||||||
|
if (this.checked) {
|
||||||
|
$("tr.ipost").removeClass("hidden");
|
||||||
|
} else {
|
||||||
|
$("tr.ipost").addClass("hidden");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
}
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">@SR["Create a new article"]</a>
|
<a asp-action="Create">@SR["Create a new article"]</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -26,12 +39,14 @@
|
||||||
<markdown>@item.Title</markdown></a>
|
<markdown>@item.Title</markdown></a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span style="font-size:x-small;"> @item.Author.UserName </span> <br>
|
<markdown>@item.Content.Substring(0,120)</markdown>
|
||||||
|
@((item.Content.Length>120)?"...":"")
|
||||||
|
<span style="font-size:x-small;">(@item.Author.UserName </span>,
|
||||||
<span style="font-size:xx-small;">
|
<span style="font-size:xx-small;">
|
||||||
posté le @item.DateCreated.ToString("dddd d MMM yyyy à H:mm")
|
posté le @item.DateCreated.ToString("dddd d MMM yyyy à H:mm")
|
||||||
@if ((item.DateModified - item.DateCreated).Minutes > 0){
|
@if ((item.DateModified - item.DateCreated).Minutes > 0){
|
||||||
@:- Modifié le @item.DateModified.ToString("dddd d MMM yyyy à H:mm")
|
@:- Modifié le @item.DateModified.ToString("dddd d MMM yyyy à H:mm")
|
||||||
}
|
})
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
@using Microsoft.AspNet.Mvc.Localization;
|
@using Microsoft.AspNet.Mvc.Localization;
|
||||||
@using Microsoft.AspNet.Authorization;
|
@using Microsoft.AspNet.Authorization;
|
||||||
@using Microsoft.Extensions.OptionsModel;
|
@using Microsoft.Extensions.OptionsModel;
|
||||||
|
@using System.Security.Claims;
|
||||||
@using System.Web.Optimization;
|
@using System.Web.Optimization;
|
||||||
@using Yavsc;
|
@using Yavsc;
|
||||||
@using Yavsc.Helpers;
|
@using Yavsc.Helpers;
|
||||||
|
|
|
||||||
8
Yavsc/wwwroot/css/site.min.css
vendored
8
Yavsc/wwwroot/css/site.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +0,0 @@
|
||||||
namespace YavscLib
|
|
||||||
{
|
|
||||||
public static class YavscConstants
|
|
||||||
{
|
|
||||||
public static readonly string [] Forms = new string [] { "Book" };
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue