Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
ClientServerProject
提交
b9fe93d8
C
ClientServerProject
项目概览
jobily
/
ClientServerProject
2023-09-12 01:32:09同步失败
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClientServerProject
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b9fe93d8
编写于
8月 07, 2017
作者:
Richard__Hu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
注册账户界面设计,等待调试
上级
123b5456
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
51 addition
and
17 deletion
+51
-17
软件系统浏览器模版/Controllers/AccountController.cs
软件系统浏览器模版/Controllers/AccountController.cs
+14
-0
软件系统浏览器模版/Controllers/HomeController.cs
软件系统浏览器模版/Controllers/HomeController.cs
+0
-11
软件系统浏览器模版/Views/Account/RegisterAccount.cshtml
软件系统浏览器模版/Views/Account/RegisterAccount.cshtml
+35
-4
软件系统浏览器模版/Views/Shared/_Layout.cshtml
软件系统浏览器模版/Views/Shared/_Layout.cshtml
+1
-1
软件系统浏览器模版/软件系统浏览器模版.csproj
软件系统浏览器模版/软件系统浏览器模版.csproj
+1
-1
未找到文件。
软件系统浏览器模版/Controllers/AccountController.cs
浏览文件 @
b9fe93d8
...
...
@@ -252,5 +252,18 @@ namespace 软件系统浏览器模版.Controllers
}
}
//GET
/// <summary>
/// 注册新的账户界面
/// </summary>
[
HttpGet
]
[
AuthorizeAdmin
]
public
ActionResult
RegisterAccount
()
{
return
View
();
}
}
}
\ No newline at end of file
软件系统浏览器模版/Controllers/HomeController.cs
浏览文件 @
b9fe93d8
...
...
@@ -236,16 +236,6 @@ namespace 软件系统浏览器模版.Controllers
//GET
/// <summary>
/// 注册新的账户界面
/// </summary>
[
HttpGet
]
[
AuthorizeAdmin
]
public
ActionResult
RegisterAccount
()
{
return
View
();
}
}
}
\ No newline at end of file
软件系统浏览器模版/Views/
Home
/RegisterAccount.cshtml
→
软件系统浏览器模版/Views/
Account
/RegisterAccount.cshtml
浏览文件 @
b9fe93d8
...
...
@@ -35,16 +35,47 @@
<input
type=
"password"
class=
"form-control"
id=
"password"
name=
"password"
placeholder=
"用户登录的密码"
required
/>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"factory"
class=
"col-lg-2 control-label"
>
工厂:
</label>
<div
class=
"col-lg-10"
>
<input
type=
"text"
class=
"form-control"
id=
"factory"
name=
"factory"
required
/>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"
Announcement"
class=
"col-lg-2 control-label"
>
</label>
<label
for=
"
grade"
class=
"col-lg-2 control-label"
>
权限:
</label>
<div
class=
"col-lg-10"
>
<textarea
class=
"form-control"
id=
"Announcement"
name=
"Announcement"
placeholder=
"1000字以内"
required
rows=
"10"
>
@ClientsLibrary.UserClient.Announcement
</textarea>
<select
class=
"form-control"
id=
"grade"
name=
"grade"
>
<option
value=
"@CommonLibrary.AccountGrade.SuperAdministrator"
>
@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.SuperAdministrator)
</option>
<option
value=
"@CommonLibrary.AccountGrade.Admin"
>
@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.Admin)
</option>
<option
value=
"@CommonLibrary.AccountGrade.Technology"
>
@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.Technology)
</option>
<option
value=
"@CommonLibrary.AccountGrade.General"
>
@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.General)
</option>
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"loginEnable"
class=
"col-lg-2 control-label"
>
能否登录:
</label>
<div
class=
"col-lg-10"
>
<select
class=
"form-control"
id=
"loginEnable"
name=
"loginEnable"
>
<option
value=
"True"
>
允许登录
</option>
<option
value=
"False"
>
禁止登录
</option>
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"loginEnable"
class=
"col-lg-2 control-label"
>
禁止原因:
</label>
<div
class=
"col-lg-10"
>
<textarea
class=
"form-control"
name=
"reason"
id=
"reason"
placeholder=
"禁止登录的原因,在禁止登录时将会显示这个信息"
rows=
"3"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-lg-10 col-lg-offset-2"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
公告
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
信息
</button>
</div>
</div>
</fieldset>
...
...
软件系统浏览器模版/Views/Shared/_Layout.cshtml
浏览文件 @
b9fe93d8
...
...
@@ -28,7 +28,7 @@
<ul
class=
"dropdown-menu"
>
<li>
@Html.ActionLink("公告更改", "ChangeAnnouncement", "Home")
</li>
<li>
@Html.ActionLink("账号管理", "ManagementAccount", "Home")
</li>
<li>
@Html.ActionLink("注册账户", "
About", "Home
")
</li>
<li>
@Html.ActionLink("注册账户", "
RegisterAccount", "Account
")
</li>
<li
role=
"separator"
class=
"divider"
></li>
<li>
@Html.ActionLink("日志查看", "About", "Home")
</li>
<li>
@Html.ActionLink("消息发送", "About", "Home")
</li>
...
...
软件系统浏览器模版/软件系统浏览器模版.csproj
浏览文件 @
b9fe93d8
...
...
@@ -229,7 +229,7 @@
<Content
Include=
"Views\Home\ChangeAnnouncement.cshtml"
/>
<Content
Include=
"Views\Home\ManagementAccount.cshtml"
/>
<Content
Include=
"Views\Home\LackOfAuthority.cshtml"
/>
<Content
Include=
"Views\
Home
\RegisterAccount.cshtml"
/>
<Content
Include=
"Views\
Account
\RegisterAccount.cshtml"
/>
</ItemGroup>
<ItemGroup>
<Folder
Include=
"App_Data\"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录