Skip to content

Commit a317836

Browse files
committed
User create popup
1 parent c5b7aad commit a317836

File tree

1 file changed

+47
-38
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Views/Users

1 file changed

+47
-38
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Views/Users/Index.cshtml

Lines changed: 47 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
}
1717
<div>
1818
<div class="block-header">
19-
19+
2020
</div>
21-
21+
2222
<div class="row clearfix">
2323
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
2424
<div class="card">
@@ -42,23 +42,23 @@
4242
<div class="body table-responsive">
4343
<table class="table">
4444
<thead>
45-
<tr>
46-
<th>@L("UserName")</th>
47-
<th>@L("FullName")</th>
48-
<th>@L("EmailAddress")</th>
49-
<th>@L("IsActive")</th>
50-
</tr>
51-
</thead>
52-
<tbody>
53-
@foreach (var user in Model.Items)
54-
{
5545
<tr>
56-
<td>@user.UserName</td>
57-
<td>@user.FullName</td>
58-
<td>@user.EmailAddress</td>
59-
<td>@L(user.IsActive ? "Yes" : "No")</td>
46+
<th>@L("UserName")</th>
47+
<th>@L("FullName")</th>
48+
<th>@L("EmailAddress")</th>
49+
<th>@L("IsActive")</th>
6050
</tr>
61-
}
51+
</thead>
52+
<tbody>
53+
@foreach (var user in Model.Items)
54+
{
55+
<tr>
56+
<td>@user.UserName</td>
57+
<td>@user.FullName</td>
58+
<td>@user.EmailAddress</td>
59+
<td>@L(user.IsActive ? "Yes" : "No")</td>
60+
</tr>
61+
}
6262
</tbody>
6363
</table>
6464
<button type="button" class="btn btn-primary btn-circle waves-effect waves-circle waves-float pull-right" data-toggle="modal" data-target="#UserCreateModal">
@@ -79,35 +79,44 @@
7979
</h4>
8080
</div>
8181
<div class="modal-body">
82-
<div class="form-group">
83-
<label>@L("UserName")</label>
84-
<input class="form-control" type="text" name="UserName" required maxlength="@AbpUserBase.MaxUserNameLength" minlength="2">
82+
<div class="form-group form-float">
83+
<div class="form-line">
84+
<input class="form-control" type="text" name="UserName" required maxlength="@AbpUserBase.MaxUserNameLength" minlength="2">
85+
<label class="form-label">@L("UserName")</label>
86+
</div>
8587
</div>
86-
<div class="form-group">
87-
<label>@L("Name")</label>
88-
<input type="text" name="Name" class="form-control" required maxlength="@AbpUserBase.MaxNameLength">
88+
<div class="form-group form-float">
89+
<div class="form-line">
90+
<input type="text" name="Name" class="form-control" required maxlength="@AbpUserBase.MaxNameLength">
91+
<label class="form-label">@L("Name")</label>
92+
</div>
8993
</div>
90-
<div class="form-group">
91-
<label>@L("Surname")</label>
92-
<input type="text" name="Surname" class="form-control" required maxlength="@AbpUserBase.MaxSurnameLength">
94+
<div class="form-group form-float">
95+
<div class="form-line">
96+
<input type="text" name="Surname" class="form-control" required maxlength="@AbpUserBase.MaxSurnameLength">
97+
<label class="form-label">@L("Surname")</label>
98+
</div>
9399
</div>
94-
<div class="form-group">
95-
<label>@L("EmailAddress")</label>
96-
<input type="email" name="EmailAddress" class="form-control" maxlength="@AbpUserBase.MaxEmailAddressLength">
100+
<div class="form-group form-float">
101+
<div class="form-line">
102+
<input type="email" name="EmailAddress" class="form-control" required maxlength="@AbpUserBase.MaxEmailAddressLength">
103+
<label class="form-label">@L("EmailAddress")</label>
104+
</div>
97105
</div>
98-
<div class="form-group">
99-
<label>@L("Password")</label>
100-
<input type="password" name="Password" class="form-control" required maxlength="@AbpUserBase.MaxPlainPasswordLength">
106+
<div class="form-group form-float">
107+
<div class="form-line">
108+
<input type="password" name="Password" class="form-control" required maxlength="@AbpUserBase.MaxPlainPasswordLength">
109+
<label class="form-label">@L("Password")</label>
110+
</div>
101111
</div>
102-
<div class="checkbox">
103-
<label>
104-
<input type="checkbox" name="IsActive" value="true" value="true" checked="checked"> @L("IsActive")
105-
</label>
112+
<div class="demo-checkbox">
113+
<input type="checkbox" name="IsActive" value="true" id="CreateUserIsActive" class="filled-in" checked />
114+
<label for="CreateUserIsActive">@L("IsActive")</label>
106115
</div>
107116
</div>
108117
<div class="modal-footer">
109-
<button type="button" class="btn btn-default" data-dismiss="modal">@L("Cancel")</button>
110-
<button type="submit" class="btn btn-primary blue"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
118+
<button type="button" class="btn btn-default waves-effect" data-dismiss="modal">@L("Cancel")</button>
119+
<button type="submit" class="btn btn-primary waves-effect">@L("Save")</button>
111120
</div>
112121
</form>
113122
</div>

0 commit comments

Comments
 (0)