Added a "Type" property to form inputs.

Fixed the second "title" section found in web page heads.
This commit is contained in:
Paul Schneider
2014-10-01 15:34:00 +02:00
parent 71f1cfcf20
commit 301dbdcb6d
15 changed files with 83 additions and 24 deletions

View File

@ -44,7 +44,7 @@ namespace Yavsc.Controllers
[Authorize(Roles="Admin")]
public ActionResult CreateUserBackup(DataAccess datac,string username)
{
throw new NotImplementedException();
throw new NotImplementedException();
}

View File

@ -12,7 +12,7 @@ namespace Yavsc.Controllers
{
public class FileSystemController : Controller
{
private static string usersDir ="users";
private static string usersDir ="~/users";
public static string UsersDir {
get {
@ -25,9 +25,10 @@ namespace Yavsc.Controllers
{
string user = Membership.GetUser ().UserName;
ViewData ["UserName"] = user;
DirectoryInfo di = new DirectoryInfo (
Path.Combine(
UsersDir,
Server.MapPath(UsersDir),
user));
if (!di.Exists)
di.Create ();

View File

@ -66,10 +66,12 @@ namespace Yavsc.ApiControllers
return result;
}
/// <summary>
/// Adds to basket, a product from the catalog, in the user's session.
/// </summary>
/// <returns>The to basket.</returns>
[HttpGet]
[Authorize]
public long AddToBasket (string title)
public long AddToBasket (string prodref,int count, object prodparams=null)
{
//TODO find the basket for Membership.GetUser().UserName
//return WFManager.Write(estid << from the basket, desc, ucost, count, productid);

View File

@ -8,11 +8,18 @@ using System.Text.RegularExpressions;
using System.IO;
using Yavsc.Controllers;
using System.Collections.Generic;
using yavscModel.WorkFlow;
using WorkFlowProvider;
namespace Yavsc.Controllers
{
public class FrontOfficeController : Controller
{
[HttpGet]
public Estimate GetEstimate(long estid) {
return WFManager.GetEstimate (estid);
}
[AcceptVerbs("GET")]
public ActionResult Catalog ()
{