Large diffs are not rendered by default.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,87 +1,9 @@
@model BrumWithMe.MVC.Models.IndexViewModel
@{
ViewBag.Title = "Manage";
}

<h2>@ViewBag.Title.</h2>
@model IndexViewModel

<p class="text-success">@ViewBag.StatusMessage</p>
<div>
<h4>Change your account settings</h4>
<hr />
<dl class="dl-horizontal">
<dt>Password:</dt>
<dd>
[
@if (Model.HasPassword)
{
@Html.ActionLink("Change your password", "ChangePassword")
}
else
{
@Html.ActionLink("Create", "SetPassword")
}
]
</dd>
<dt>External Logins:</dt>
<dd>
@Model.Logins.Count [
@Html.ActionLink("Manage", "ManageLogins") ]
</dd>
@*
Phone Numbers can used as a second factor of verification in a two-factor authentication system.
See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
for details on setting up this ASP.NET application to support two-factor authentication using SMS.
Uncomment the following block after you have set up two-factor authentication
*@
@*
<dt>Phone Number:</dt>
<dd>
@(Model.PhoneNumber ?? "None")
@if (Model.PhoneNumber != null)
{
<br />
<text>[&nbsp;&nbsp;@Html.ActionLink("Change", "AddPhoneNumber")&nbsp;&nbsp;]</text>
using (Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<text>[<input type="submit" value="Remove" class="btn-link" />]</text>
}
}
else
{
<text>[&nbsp;&nbsp;@Html.ActionLink("Add", "AddPhoneNumber")
}
</dd>
*@
<dt>Two-Factor Authentication:</dt>
<dd>
<p>
There are no two-factor authentication providers configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
for details on setting up this ASP.NET application to support two-factor authentication.
</p>
@*@if (Model.TwoFactor)
{
using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<text>Enabled
<input type="submit" value="Disable" class="btn btn-link" />
</text>
}
}
else
{
using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<text>Disabled
<input type="submit" value="Enable" class="btn btn-link" />
</text>
}
}*@
</dd>
</dl>
</div>
<section>
<h4>Добавяне на кола</h4>
@Html.ActionLink("Добавяне на кола", nameof(ManageController.RegisterCar), "Manage");

</section>

This file was deleted.

@@ -0,0 +1,39 @@
@model RegisterCarViewModel
<section class="container">
<h2>Регистриране на автомобил</h2>
<sectiom class="row">
@using (Html.BeginForm(nameof(ManageController.RegisterCar), "Manage", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()

<div class="input-field col s6">
<label for="make">Марка</label>
@Html.TextBoxFor(m => m.Make, new { @class = "validate" })
</div>
<div class="input-field col s6">
<label for="model">Модел</label>
@Html.TextBoxFor(m => m.Model, new { @class = "validate" })
</div>
<div class="input-field col s6">
<label for="year">Година</label>
@Html.TextBoxFor(m => m.Year, new { @class = "validate" })
</div>
<div class="input-field col s6">
<label for="color">Цвят</label>
@Html.TextBoxFor(m => m.Color, new { @class = "validate" })
</div>
<div class="file-field input-field col s6">
<div class="btn">
<span>File</span>
<input type="file" name="CarAvatar">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text">
</div>
</div>
<div class="input-field col s6">
<input type="submit" value="Добави автомобил" />
</div>
}
</sectiom>
</section>

This file was deleted.

This file was deleted.

@@ -13,7 +13,6 @@
<body>
<nav>
<div class="nav-wrapper nav teal darken-4">
<a href="#!" class="center brand-logo">Logo</a>
<ul class="left hide-on-med-and-down">
<li>@Html.ActionLink("Начало", "Index", "Home")</li>
<li>@Html.ActionLink("Гугъл карта", "About", "Home")</li>
@@ -1,22 +1,24 @@
@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
@if (Request.IsAuthenticated)
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
{
@Html.AntiForgeryToken()
@Html.AntiForgeryToken()

<ul class="right hide-on-med-and-down">
<li>
@Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
</li>
<li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
</ul>
<ul class="right hide-on-med-and-down">
<li>
<a href="@Url.Action("Index","Manage")" class="valign-wrapper">
<img class="circle valign logged-user-avatar" src="~/UserAvatars/default.png" />
<span class="logged-user-username">@this.User.Identity.Name</span>
</a>
</li>
<li><a href="javascript:document.getElementById('logoutForm').submit()">Изход</a></li>
</ul>
}
}
else
{
<ul class="right hide-on-med-and-down">
<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
<li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
<li>@Html.ActionLink("Регистрация", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
<li>@Html.ActionLink("Вход", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
</ul>
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -88,21 +88,11 @@
<ItemGroup>
<Compile Include="Account\ExternalLoginConfirmationViewModel.cs" />
<Compile Include="Account\ExternalLoginListViewModel.cs" />
<Compile Include="Account\ForgotPasswordViewModel.cs" />
<Compile Include="Account\ForgotViewModel.cs" />
<Compile Include="Account\LoginViewModel.cs" />
<Compile Include="Account\RegisterViewModel.cs" />
<Compile Include="Account\ResetPasswordViewModel.cs" />
<Compile Include="Account\SendCodeViewModel.cs" />
<Compile Include="Account\VerifyCodeViewModel.cs" />
<Compile Include="Manage\AddPhoneNumberViewModel.cs" />
<Compile Include="Manage\ChangePasswordViewModel.cs" />
<Compile Include="Manage\ConfigureTwoFactorViewModel.cs" />
<Compile Include="Manage\FactorViewModel.cs" />
<Compile Include="Manage\IndexViewModel.cs" />
<Compile Include="Manage\ManageLoginsViewModel.cs" />
<Compile Include="Manage\SetPasswordViewModel.cs" />
<Compile Include="Manage\VerifyPhoneNumberViewModel.cs" />
<Compile Include="Manage\RegisterCarViewModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -0,0 +1,17 @@
using System.Web;

namespace BrumWithMe.Web.Models.Manage
{
public class RegisterCarViewModel
{
public string Color { get; set; }

public string Make { get; set; }

public string Model { get; set; }

public int Year { get; set; }

public HttpPostedFileBase CarAvatar { get; set; }
}
}

This file was deleted.

This file was deleted.