aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Views/Account/Login.cshtml
blob: fbf0cb904802411948b2f6b552da281585512a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@section styles
{
    <link rel="stylesheet" href="~/Styles/Account.css">
}

@section scripts
{
    <script type="text/javascript" src="~/Scripts/Account/Login.js"></script>
}

<div class="background-wrap">
    <div class="background"></div>
</div>

<form id="accesspanel" action="login" method="post">
    <h1 id="litheader">LOGIN</h1>
    <div class="inset">
        <p>
            <input type="text" name="username" id="email" placeholder="Email">
        </p>
        <p>
            <input type="password" name="password" id="password" placeholder="Password">
        </p>
        <div style="text-align: center;">
            <div class="checkboxouter">
                <input type="checkbox" name="rememberme" id="remember" value="Remember">
                <label class="checkbox"></label>
            </div>
            <label for="remember">Remember me for 14 days</label>
        </div>
        <input class="loginLoginValue" type="hidden" name="service" value="login" />
    </div>
    <p class="p-container">
        <input type="submit" name="Login" id="go" value="Authorize">
    </p>
</form>
class="w"> /// <summary> /// Converts user role to string. /// </summary> /// <seealso cref="System.Windows.Data.IValueConverter" /> public class UsersRolesToStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) return ""; if (value is IEnumerable<UsersRole>) { IEnumerable<UsersRole> userRoles = value as IEnumerable<UsersRole>; return String.Join(", ", userRoles.Where(x => !x.Deleted).Select(x => x.Role.Name)); } else { IEnumerable<MultiComboVM<Role>> userRoles = value as IEnumerable<MultiComboVM<Role>>; return String.Join(", ", userRoles.Where(x => x.IsSelected).Select(x => x.Entity.Name)); } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }