From 484d769f1bb59c718d425b78bbb42e35ad6c9458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B1=E5=91=B1=E5=91=B1?= Date: Mon, 28 Aug 2023 10:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=B8=BB=E9=A2=98=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/admins/page_themes/_form_modal.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/admins/page_themes/_form_modal.html.erb b/app/views/admins/page_themes/_form_modal.html.erb index 720566d9e..3308387e8 100644 --- a/app/views/admins/page_themes/_form_modal.html.erb +++ b/app/views/admins/page_themes/_form_modal.html.erb @@ -12,7 +12,7 @@ <% if type == "create"%>
<% state_options = [['hugo', "hugo"], ['jeklly', "jeklly"],['hexo',"hexo"]] %> <%= select_tag('page_theme[language_frame]', options_for_select(state_options), class: 'form-control') %> @@ -26,9 +26,9 @@
- <%= p.text_field :clone_url, class: "form-control",placeholder: ""%> + <%= p.text_field :clone_url, class: "form-control",placeholder: "https://gitlink.org.cn/XXXX/xxxx.git",required: true, pattern: "https://gitlink.org.cn/.*"%>
@@ -41,12 +41,12 @@ <% logo_img = @page_theme.image %>
- <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "display: none", value: params[:image]) %> + <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "display: none", value: params[:image], required: true) %>
-
logo
-
格式:PNG、JPG
+
logo *
+
格式:PNG、JPG、JPEG、SVG