mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 09:01:55 +03:00
init commit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
@model MyFriendsAround.Web.Models.ChangePasswordModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Change Password";
|
||||
}
|
||||
|
||||
<h2>Change Password</h2>
|
||||
<p>
|
||||
Use the form below to change your password.
|
||||
</p>
|
||||
<p>
|
||||
New passwords are required to be a minimum of @ViewBag.PasswordLength characters in length.
|
||||
</p>
|
||||
|
||||
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
|
||||
|
||||
@using (Html.BeginForm()) {
|
||||
@Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend>Account Information</legend>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.OldPassword)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.PasswordFor(m => m.OldPassword)
|
||||
@Html.ValidationMessageFor(m => m.OldPassword)
|
||||
</div>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.NewPassword)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.PasswordFor(m => m.NewPassword)
|
||||
@Html.ValidationMessageFor(m => m.NewPassword)
|
||||
</div>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.ConfirmPassword)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.PasswordFor(m => m.ConfirmPassword)
|
||||
@Html.ValidationMessageFor(m => m.ConfirmPassword)
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Change Password" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
@{
|
||||
ViewBag.Title = "Change Password";
|
||||
}
|
||||
|
||||
<h2>Change Password</h2>
|
||||
<p>
|
||||
Your password has been changed successfully.
|
||||
</p>
|
||||
@@ -0,0 +1,48 @@
|
||||
@model MyFriendsAround.Web.Models.LogOnModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Log On";
|
||||
}
|
||||
|
||||
<h2>Log On</h2>
|
||||
<p>
|
||||
Please enter your username and password. @Html.ActionLink("Register", "Register") if you don't have an account.
|
||||
</p>
|
||||
|
||||
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
|
||||
|
||||
@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
|
||||
|
||||
@using (Html.BeginForm()) {
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend>Account Information</legend>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.UserName)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.TextBoxFor(m => m.UserName)
|
||||
@Html.ValidationMessageFor(m => m.UserName)
|
||||
</div>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.Password)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.PasswordFor(m => m.Password)
|
||||
@Html.ValidationMessageFor(m => m.Password)
|
||||
</div>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.CheckBoxFor(m => m.RememberMe)
|
||||
@Html.LabelFor(m => m.RememberMe)
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Log On" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
@model MyFriendsAround.Web.Models.RegisterModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Register";
|
||||
}
|
||||
|
||||
<h2>Create a New Account</h2>
|
||||
<p>
|
||||
Use the form below to create a new account.
|
||||
</p>
|
||||
<p>
|
||||
Passwords are required to be a minimum of @ViewBag.PasswordLength characters in length.
|
||||
</p>
|
||||
|
||||
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
|
||||
|
||||
@using (Html.BeginForm()) {
|
||||
@Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend>Account Information</legend>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.UserName)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.TextBoxFor(m => m.UserName)
|
||||
@Html.ValidationMessageFor(m => m.UserName)
|
||||
</div>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.Email)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.TextBoxFor(m => m.Email)
|
||||
@Html.ValidationMessageFor(m => m.Email)
|
||||
</div>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.Password)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.PasswordFor(m => m.Password)
|
||||
@Html.ValidationMessageFor(m => m.Password)
|
||||
</div>
|
||||
|
||||
<div class="editor-label">
|
||||
@Html.LabelFor(m => m.ConfirmPassword)
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.PasswordFor(m => m.ConfirmPassword)
|
||||
@Html.ValidationMessageFor(m => m.ConfirmPassword)
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Register" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
@{
|
||||
ViewBag.Title = "About My Friends Around";
|
||||
}
|
||||
|
||||
<h2>About this site</h2>
|
||||
<p>
|
||||
My Friend Around website aims to show users map geolocation.<br />
|
||||
It is a proof of concept sample used in Windows Phone 7 integration presentation.
|
||||
|
||||
</p>
|
||||
@@ -0,0 +1,24 @@
|
||||
@using GoogleMaps.Models
|
||||
@{
|
||||
ViewBag.Title = "My Friends Around - Home Page";
|
||||
}
|
||||
<div>
|
||||
<h2>@ViewBag.Message</h2>
|
||||
</div>
|
||||
<p>
|
||||
@Html.Raw(Html.DrawMap("ABQIAAAAksAhKXCpVW3aANz3gzuv4xT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRJW_HFuarMuHR-nqN1g7x09OKIPQ", "/Home/GetMarkers?timestamp=" + DateTime.Now.Ticks.ToString(), "1000", "500"))
|
||||
<script type="text/javascript">
|
||||
function getTimeFromserver() {
|
||||
var now = new Date();
|
||||
$.ajax({
|
||||
url: '/Home/GetMarkers',
|
||||
success: function (html) {
|
||||
processmarkers(html);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function () {
|
||||
setInterval('getTimeFromserver();', 3000);
|
||||
});
|
||||
</script>
|
||||
</p>
|
||||
@@ -0,0 +1,9 @@
|
||||
@model System.Web.Mvc.HandleErrorInfo
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Error";
|
||||
}
|
||||
|
||||
<h2>
|
||||
Sorry, an error occurred while processing your request.
|
||||
</h2>
|
||||
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>@ViewBag.Title</title>
|
||||
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
|
||||
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<div id="header">
|
||||
<div id="title">
|
||||
<h1>My Friend Around</h1>
|
||||
</div>
|
||||
|
||||
<div id="logindisplay">
|
||||
@*@Html.Partial("_LogOnPartial")*@
|
||||
</div>
|
||||
|
||||
<div id="menucontainer">
|
||||
|
||||
<ul id="menu">
|
||||
<li>@Html.ActionLink("Home", "Index", "Home")</li>
|
||||
<li>@Html.ActionLink("About", "About", "Home")</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
@RenderBody()
|
||||
<div id="footer">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
@if(Request.IsAuthenticated) {
|
||||
<text>Welcome <b>@Context.User.Identity.Name</b>!
|
||||
[ @Html.ActionLink("Log Off", "LogOff", "Account") ]</text>
|
||||
}
|
||||
else {
|
||||
@:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<system.web.webPages.razor>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
|
||||
<appSettings>
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
|
||||
</httpHandlers>
|
||||
|
||||
<!--
|
||||
Enabling request validation in view pages would cause validation to occur
|
||||
after the input has already been processed by the controller. By default
|
||||
MVC performs request validation before a controller processes the input.
|
||||
To change this behavior apply the ValidateInputAttribute to a
|
||||
controller or action.
|
||||
-->
|
||||
<pages
|
||||
validateRequest="false"
|
||||
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
|
||||
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
|
||||
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<controls>
|
||||
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
|
||||
</controls>
|
||||
</pages>
|
||||
</system.web>
|
||||
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
|
||||
<handlers>
|
||||
<remove name="BlockViewHandler"/>
|
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
@@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
Reference in New Issue
Block a user