Browse Source

修复:许可证和忽略文件内容为空表单提示

pull/313/head
yystopf 3 years ago
parent
commit
fa48e3f5ca
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      app/views/admins/project_ignores/_form.html.erb
  2. +2
    -2
      app/views/admins/project_licenses/_form.html.erb

+ 2
- 2
app/views/admins/project_ignores/_form.html.erb View File

@@ -13,7 +13,7 @@
</span>
</label>
<div class="mt-10">
<%= f.text_field :name, class: "form-control input-lg", maxlength: "60", placeholder: "请输入忽略文件的全称" %>
<%= f.text_field :name, class: "form-control input-lg", maxlength: "60", placeholder: "请输入忽略文件的全称", required: true%>
</div>

</div>
@@ -25,7 +25,7 @@
</span>
</label>
<div class="mt-10">
<%= f.text_area :content,class:"form-control", rows: "10", cols: "20",placeholer: "忽略文件的简要介绍,不得超过500字" %>
<%= f.text_area :content,class:"form-control", rows: "10", cols: "20",placeholer: "忽略文件的简要介绍,不得超过500字", required: true %>
</div>




+ 2
- 2
app/views/admins/project_licenses/_form.html.erb View File

@@ -13,7 +13,7 @@
</span>
</label>
<div class="mt-10">
<%= f.text_field :name, class: "form-control input-lg", maxlength: "60", placeholder: "请输入开源许可证的全称" %>
<%= f.text_field :name, class: "form-control input-lg", maxlength: "60", placeholder: "请输入开源许可证的全称", required: true %>
</div>

</div>
@@ -25,7 +25,7 @@
</span>
</label>
<div class="mt-10">
<%= f.text_area :content,class:"form-control", rows: "10", cols: "20",placeholer: "许可证的简要介绍,不得超过500字" %>
<%= f.text_area :content,class:"form-control", rows: "10", cols: "20",placeholer: "许可证的简要介绍,不得超过500字", required: true %>
</div>




Loading…
Cancel
Save