Kaynağa Gözat

add change pagin number

Seiya Tashiro 7 yıl önce
ebeveyn
işleme
22fd44e974

+ 3 - 1
resource/locales/en-US/translation.json

@@ -486,7 +486,9 @@
     "Custom script": "Custom script",
     "Custom script": "Custom script",
     "write_java": "You can write Javascript that is applied to whole system.",
     "write_java": "You can write Javascript that is applied to whole system.",
     "attach_title_header": "Add h1 section when create new page automatically",
     "attach_title_header": "Add h1 section when create new page automatically",
-    "attach_title_header_desc": "Add page path to the first line as h1 section when create new page"
+    "attach_title_header_desc": "Add page path to the first line as h1 section when create new page",
+    "show_document_number": "Manage the number of documents to be displayed",
+    "show_document_number_desc": "Set the number of items to display on one page in Recent Created on the home screen"
   },
   },
 
 
   "user_management": {
   "user_management": {

+ 3 - 1
resource/locales/ja/translation.json

@@ -503,7 +503,9 @@
     "Custom script": "カスタムスクリプト",
     "Custom script": "カスタムスクリプト",
     "write_java": "システム全体に適用されるJavaScriptを記述できます。",
     "write_java": "システム全体に適用されるJavaScriptを記述できます。",
     "attach_title_header": "新規ページ作成時の h1 セクション自動挿入",
     "attach_title_header": "新規ページ作成時の h1 セクション自動挿入",
-    "attach_title_header_desc": "新規作成したページの1行目に、ページのパスを h1 セクションとして挿入します。"
+    "attach_title_header_desc": "新規作成したページの1行目に、ページのパスを h1 セクションとして挿入します。",
+    "show_document_number": "表示ドキュメント数管理",
+    "show_document_number_desc": "ホーム画面の Recent Created で、1ページに表示する件数を設定します。"
   },
   },
 
 
   "user_management": {
   "user_management": {

+ 16 - 0
src/server/views/admin/customize.html

@@ -289,6 +289,22 @@
           </div>
           </div>
         </div>
         </div>
 
 
+        <div class="form-group">
+          <label for="settingForm[customize:showRecentCreatedNumber]" class="col-xs-3 control-label">{{ t("customize_page.show_document_number") }}</label>
+          <div class="col-xs-5">
+            <select class="form-control selectpicker" name="settingForm[customize:showRecentCreatedNumber]" value="{{ settingForm['customize:showRecentCreatedNumber'] }}">
+              <!-- TODO GC-1065 対応でモデルを作成後に、動的に生成するように修正 -->
+              <option value="10" selected>10</option>
+              <option value="30">30</option>
+              <option value="50">50</option>
+            </select>
+
+            <p class="help-block">
+              {{ t("customize_page.show_document_number_desc") }}
+            </p>
+          </div>
+        </div>
+
         <div class="form-group">
         <div class="form-group">
           <div class="col-xs-offset-3 col-xs-6">
           <div class="col-xs-offset-3 col-xs-6">
             <input type="hidden" name="_csrf" value="{{ csrf() }}">
             <input type="hidden" name="_csrf" value="{{ csrf() }}">