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