diff options
| author | Michael <[email protected]> | 2017-05-18 21:25:20 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-18 21:25:20 -0400 |
| commit | 9b06522c668ff8d2c27367529553eab6bded2021 (patch) | |
| tree | 7ee18e49870a63951bc8cc35ccb92c016f1bf85c /Project-Unite/Views | |
| parent | cb9e12c980fa6abd64b0a3c57afc6496d60ca89f (diff) | |
| download | project-unite-9b06522c668ff8d2c27367529553eab6bded2021.tar.gz project-unite-9b06522c668ff8d2c27367529553eab6bded2021.tar.bz2 project-unite-9b06522c668ff8d2c27367529553eab6bded2021.zip | |
feedback
Diffstat (limited to 'Project-Unite/Views')
| -rw-r--r-- | Project-Unite/Views/Home/SendFeedback.cshtml | 42 | ||||
| -rw-r--r-- | Project-Unite/Views/Shared/_LoginPartial.cshtml | 87 |
2 files changed, 86 insertions, 43 deletions
diff --git a/Project-Unite/Views/Home/SendFeedback.cshtml b/Project-Unite/Views/Home/SendFeedback.cshtml new file mode 100644 index 0000000..9d26f29 --- /dev/null +++ b/Project-Unite/Views/Home/SendFeedback.cshtml @@ -0,0 +1,42 @@ +@model Project_Unite.Models.SendFeedbackViewModel +@{ + ViewBag.Title = "Send feedback"; +} + +<h2>Send feedback</h2> + +<p>Hey there, Shifter! Michael here. So, you want to get in touch with the ShiftOS team, do ya? Well, just fill out this form!</p> + +@using (Html.BeginForm()) +{ + @Html.AntiForgeryToken() + @Html.ValidationSummary() + + <dl> + <dt>Your name:</dt> + <dd>Just in case I need it, can you please enter your name here? @Html.TextBoxFor(x=>x.Name, new{@class="form-control"})</dd> + + <dt>Your email:</dt> + <dd>May you please enter your email address so I can reply to you if needed? @Html.TextBoxFor(x => x.Email, new { type="email", @class = "form-control" })</dd> + + <dt>Feedback type:</dt> + <dd>@Html.DropDownListFor(x => x.Name, Model.FeedbackTypes, new { @class = "form-control" })</dd> + + <dt>Subject:</dt> + <dd>@Html.TextBoxFor(x => x.Subject, new { @class = "form-control" })</dd> + + <dt>Body:</dt> + <dd>@Html.TextAreaFor(x => x.Body, new { @class = "form-control" })</dd> + + </dl> + + <input type="submit" class="btn btn-primary" value="Send" /> +} + +<h2>Bogus email addresses</h2> + +<p>Please note that if you enter a bogus email address, we will completely ignore your feedback. This is because I want to be talking with real people, not spammers. If I can't reach you, I just won't listen to you.</p> + +<h2>This is NOT for general communication!</h2> + +<p>Please only use this form for feedback/support for ShiftOS. If you want to get in contact with me for other reasons, join our Discord server or email me directly at <a href="mailto:[email protected]">this address.</a></p>
\ No newline at end of file diff --git a/Project-Unite/Views/Shared/_LoginPartial.cshtml b/Project-Unite/Views/Shared/_LoginPartial.cshtml index a8fa210..0d1c22b 100644 --- a/Project-Unite/Views/Shared/_LoginPartial.cshtml +++ b/Project-Unite/Views/Shared/_LoginPartial.cshtml @@ -1,51 +1,52 @@ @using Microsoft.AspNet.Identity - -@if (Request.IsAuthenticated) -{ - using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) +<ul class="nav navbar-nav navbar-right" style="margin-right:15px;"> + <li><a href="@Url.Action("SendFeedback", "Home")"><span class="glyphicon glyphicon-star"></span> Send feedback</a></li> + @if (Request.IsAuthenticated) { - @Html.AntiForgeryToken() + using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) + { + @Html.AntiForgeryToken() - <ul class="nav navbar-nav navbar-right" style="margin-right:15px;"> - <li><a href="@Url.Action("ViewUnread", "Forum")"><span class="glyphicon glyphicon-star-empty"></span> @ACL.UnreadPostsCount(User.Identity.Name) unread posts</a></li> - <li id="notification_body" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="glyphicon glyphicon-bullhorn"></span> <strong id="notification_count">@Html.NotificationCount(User.Identity.GetUserId())</strong></a> - <ul class="dropdown-menu"> - <li class="dropdown-header">Notifications (@Html.NotificationCount(User.Identity.Name) unread)</li> - @Html.GetLatestUnread(User.Identity.Name) - <li><a href="@Url.Action("Index", "Manage")#t_notifications">View all</a></li> - </ul> - </li> - <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="glyphicon glyphicon-user"></span> @Html.UserName(User.Identity.GetUserId()) <span class="caret"></span></a> - <ul class="dropdown-menu"> - <li><a href="@Url.Action("ViewProfile", "Profiles", new { id = ACL.UserNameRaw(User.Identity.GetUserId()) })"><span class="glyphicon glyphicon-user"></span> Profile</a></li> - <li class="divider"></li> - <li class="dropdown-header">Settings</li> - @if((bool)User.Identity?.IsAdmin()) - { - <li><a href="@Url.Action("Index", "Admin")"><span class="glyphicon glyphicon-cog"></span> Admin CP</a></li> - } - @if ((bool)User.Identity?.IsModerator()) - { - <li><a href="@Url.Action("Index", "Moderator")"><span class="glyphicon glyphicon-warning-sign"></span> Mod CP</a></li> - } - @if ((bool)User.Identity?.IsDeveloper()) - { - <li><a href="@Url.Action("Index", "Developer")"><span class="glyphicon glyphicon-star"></span> Developer CP</a></li> - } - <li><a href="@Url.Action("Index", "Manage")"><span class="glyphicon glyphicon-adjust"></span> Account</a></li> - <li class="divider"></li> - <li><a href="javascript:document.getElementById('logoutForm').submit()"><span class="glyphicon glyphicon-log-out"></span> Log off</a></li> - </ul> - </li> - </ul> + <li><a href="@Url.Action("ViewUnread", "Forum")"><span class="glyphicon glyphicon-star-empty"></span> @ACL.UnreadPostsCount(User.Identity.Name) unread posts</a></li> + <li id="notification_body" class="dropdown"> + <a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="glyphicon glyphicon-bullhorn"></span> <strong id="notification_count">@Html.NotificationCount(User.Identity.GetUserId())</strong></a> + <ul class="dropdown-menu"> + <li class="dropdown-header">Notifications (@Html.NotificationCount(User.Identity.Name) unread)</li> + @Html.GetLatestUnread(User.Identity.Name) + <li><a href="@Url.Action("Index", "Manage")#t_notifications">View all</a></li> + </ul> + </li> + <li class="dropdown"> + <a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="glyphicon glyphicon-user"></span> @Html.UserName(User.Identity.GetUserId()) <span class="caret"></span></a> + <ul class="dropdown-menu"> + <li><a href="@Url.Action("ViewProfile", "Profiles", new { id = ACL.UserNameRaw(User.Identity.GetUserId()) })"><span class="glyphicon glyphicon-user"></span> Profile</a></li> + <li class="divider"></li> + <li class="dropdown-header">Settings</li> + @if ((bool)User.Identity?.IsAdmin()) + { + <li><a href="@Url.Action("Index", "Admin")"><span class="glyphicon glyphicon-cog"></span> Admin CP</a></li> + } + @if ((bool)User.Identity?.IsModerator()) + { + <li><a href="@Url.Action("Index", "Moderator")"><span class="glyphicon glyphicon-warning-sign"></span> Mod CP</a></li> + } + @if ((bool)User.Identity?.IsDeveloper()) + { + <li><a href="@Url.Action("Index", "Developer")"><span class="glyphicon glyphicon-star"></span> Developer CP</a></li> + } + <li><a href="@Url.Action("Index", "Manage")"><span class="glyphicon glyphicon-adjust"></span> Account</a></li> + <li class="divider"></li> + <li><a href="javascript:document.getElementById('logoutForm').submit()"><span class="glyphicon glyphicon-log-out"></span> Log off</a></li> + </ul> + </li> + } } -} -else -{ - <ul class="nav navbar-nav navbar-right" style="margin-right:15px;"> + else + { <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> - </ul> -}
\ No newline at end of file + + } +</ul>
\ No newline at end of file |
