- @RenderPage("~/Views/Shared/DefaultHeader.Mobile.cshtml")
+
diff --git a/src/Yom.Web/Views/IOweYou/Create.cshtml b/src/Yom.Web/Views/IOweYou/Create.cshtml
index 72d396a..f8a419c 100644
--- a/src/Yom.Web/Views/IOweYou/Create.cshtml
+++ b/src/Yom.Web/Views/IOweYou/Create.cshtml
@@ -3,7 +3,7 @@
ViewBag.Title = "Create";
ViewBag.PageId = "iOweYouCreate";
}
-@using (Html.BeginForm(null, null, FormMethod.Post, new { data_ajax = "false" }))
+@using (Html.BeginForm(null, null, FormMethod.Post))
{
@Html.ValidationSummary(false)
diff --git a/src/Yom.Web/Views/IOweYou/Success.cshtml b/src/Yom.Web/Views/IOweYou/Success.cshtml
index e8181c7..a24b3d9 100644
--- a/src/Yom.Web/Views/IOweYou/Success.cshtml
+++ b/src/Yom.Web/Views/IOweYou/Success.cshtml
@@ -1,14 +1,12 @@
@{
ViewBag.Title = "Success";
Layout = "~/Views/Shared/_Layout.Result.Mobile.cshtml";
+ ViewBag.DataUrl = "/IOweYou/Success";
}
-
-Success
-
+ Success
-
- - @Html.ActionLink("Create another", "Create")
- - @Html.ActionLink("Back to main menu", "Index","Home")
+ - @Html.ActionLink("Create another", "Create")
+ - @Html.ActionLink("Back to main menu", "Index", "Home")
diff --git a/src/Yom.Web/Views/Owe/Index.cshtml b/src/Yom.Web/Views/Owe/Index.cshtml
new file mode 100644
index 0000000..f512736
--- /dev/null
+++ b/src/Yom.Web/Views/Owe/Index.cshtml
@@ -0,0 +1,5 @@
+@{
+ ViewBag.Title = "Owe";
+}
+@Html.ActionLink("You Owe Me Money", "Create", "YouOweMe", null, new { data_role = "button" })
+@Html.ActionLink("I Owe You Money", "Create", "IOweYou", null, new { data_role = "button" })
diff --git a/src/Yom.Web/Views/ReferenceUser/Create.cshtml b/src/Yom.Web/Views/ReferenceUser/Create.cshtml
index 45771be..387706b 100644
--- a/src/Yom.Web/Views/ReferenceUser/Create.cshtml
+++ b/src/Yom.Web/Views/ReferenceUser/Create.cshtml
@@ -2,7 +2,7 @@
@{
ViewBag.Title = "Create";
}
-@*MP: try in as future Version of jquery mobile ToolboxDataAttribute run IRouteWithArea out Ajax disabled*@
+
@using (Html.BeginForm(null, null, FormMethod.Post))
{
@Html.ValidationSummary(false)
diff --git a/src/Yom.Web/Views/ReferenceUser/Index.cshtml b/src/Yom.Web/Views/ReferenceUser/Index.cshtml
index 0c4383f..3374c87 100644
--- a/src/Yom.Web/Views/ReferenceUser/Index.cshtml
+++ b/src/Yom.Web/Views/ReferenceUser/Index.cshtml
@@ -6,7 +6,7 @@
@Html.ActionLink("Create Reference User", "Create", null, new { data_role = "button" })
-
+
@foreach (var item in Model)
{
- @Html.ActionLink(item.ToString(), "Details", "ReferenceUser", new { id = item.Id }, null)
diff --git a/src/Yom.Web/Views/Shared/DefaultHeader.Mobile.cshtml b/src/Yom.Web/Views/Shared/DefaultHeader.Mobile.cshtml
index ab4d54f..211ec5f 100644
--- a/src/Yom.Web/Views/Shared/DefaultHeader.Mobile.cshtml
+++ b/src/Yom.Web/Views/Shared/DefaultHeader.Mobile.cshtml
@@ -1,4 +1,4 @@
-Home
+Home
Page Titlex
Logout
diff --git a/src/Yom.Web/Views/Shared/_Layout.Result.Mobile.cshtml b/src/Yom.Web/Views/Shared/_Layout.Result.Mobile.cshtml
index e31632a..8611b65 100644
--- a/src/Yom.Web/Views/Shared/_Layout.Result.Mobile.cshtml
+++ b/src/Yom.Web/Views/Shared/_Layout.Result.Mobile.cshtml
@@ -1,7 +1,24 @@
@{
Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
}
-
+@functions{
+ private string PageId
+ {
+ get
+ {
+ return (ViewData.ContainsKey("PageId") ? string.Format("id=\"{0}\"", ViewData["PageId"]) : "");
+ }
+ }
+
+ private string DataUrl
+ {
+ get
+ {
+ return (ViewData.ContainsKey("DataUrl") ? string.Format("data-url=\"{0}\"", ViewData["DataUrl"]) : "");
+ }
+ }
+}
+
diff --git a/src/Yom.Web/Views/YouOweMe/Create.cshtml b/src/Yom.Web/Views/YouOweMe/Create.cshtml
index 0f60f4d..bee8364 100644
--- a/src/Yom.Web/Views/YouOweMe/Create.cshtml
+++ b/src/Yom.Web/Views/YouOweMe/Create.cshtml
@@ -3,7 +3,7 @@
ViewBag.Title = "Create";
ViewBag.PageId = "youOweMeCreate";
}
-@using (Html.BeginForm(null, null, FormMethod.Post, new { data_ajax = "false" }))
+@using (Html.BeginForm(null, null, FormMethod.Post))
{
@Html.ValidationSummary(false)
diff --git a/src/Yom.Web/Views/YouOweMe/Success.cshtml b/src/Yom.Web/Views/YouOweMe/Success.cshtml
index e8181c7..aed3902 100644
--- a/src/Yom.Web/Views/YouOweMe/Success.cshtml
+++ b/src/Yom.Web/Views/YouOweMe/Success.cshtml
@@ -1,14 +1,12 @@
@{
ViewBag.Title = "Success";
Layout = "~/Views/Shared/_Layout.Result.Mobile.cshtml";
+ ViewBag.DataUrl = "/YouOweMe/Success";
}
-
-Success
-
+ Success
-
- - @Html.ActionLink("Create another", "Create")
- - @Html.ActionLink("Back to main menu", "Index","Home")
+ - @Html.ActionLink("Create another", "Create")
+ - @Html.ActionLink("Back to main menu", "Index", "Home")
diff --git a/src/Yom.Web/Yom.Web.csproj b/src/Yom.Web/Yom.Web.csproj
index cc2e45c..268ac48 100644
--- a/src/Yom.Web/Yom.Web.csproj
+++ b/src/Yom.Web/Yom.Web.csproj
@@ -97,6 +97,7 @@
+
@@ -277,6 +278,7 @@
+