Changes for page 新しい学校ページを作成
Last modified by Super Admin on 2026/03/22 00:39
From version
18.1
edited by Super Admin
on 2026/03/08 18:52
on 2026/03/08 18:52
Change comment:
There is no comment for this version
To version
7.1
edited by XWikiGuest
on 2026/03/06 16:47
on 2026/03/06 16:47
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +XWiki.XWikiGuest - Content
-
... ... @@ -3,7 +3,7 @@ 3 3 4 4 #set($currentUser = $xcontext.user) 5 5 #if($currentUser == 'XWiki.XWikiGuest') 6 - {{error}}学校ページの作成にはログインが必要です。[[ログイン>>path:/bin/login/XWiki/XWikiLogin]]してください。{{/error}} 6 + {{error}}学校ページの作成にはログインが必要です。[[ログイン>>path:/xwiki/bin/login/XWiki/XWikiLogin]]してください。{{/error}} 7 7 #stop 8 8 #end 9 9 ... ... @@ -46,7 +46,7 @@ 46 46 <div class="form-group"> 47 47 <label class="form-label">学校を検索 <span class="required-mark">*</span></label> 48 48 <div class="search-input-wrap"> 49 - <input type="text" id="schoolSearchInput" class="form-input se arch-input-padded"49 + <input type="text" id="schoolSearchInput" class="form-input" style="padding-left:36px;" 50 50 placeholder="学校名で検索(例: 日比谷、渋谷、北野...)" 51 51 autocomplete="off" /> 52 52 <span class="search-input-icon"><svg class="ico" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></span> ... ... @@ -81,7 +81,7 @@ 81 81 <div class="create-ready-box"> 82 82 <svg class="ico" viewBox="0 0 24 24" stroke-width="2.5"><path d="M20 6L9 17l-5-5"/></svg> この学校のページはまだ作成されていません。 83 83 </div> 84 - <button type="submit" class="btn-save btn-full-width">ページを作成</button>84 + <button type="submit" class="btn-save" style="width:100%;">ページを作成</button> 85 85 </div> 86 86 </form> 87 87 ... ... @@ -100,7 +100,7 @@ 100 100 101 101 // schools.json をロード(XWiki添付ファイルとして配置) 102 102 // 配置先: SeitokaiCode.SchoolMasterData の添付ファイル 103 - fetch('/rest/wikis/xwiki/spaces/SeitokaiCode/pages/SchoolMasterData/attachments/schools.json') 103 + fetch('/xwiki/rest/wikis/xwiki/spaces/SeitokaiCode/pages/SchoolMasterData/attachments/schools.json') 104 104 .then(function(r) { return r.json(); }) 105 105 .then(function(data) { schools = data; schoolsLoaded = true; }) 106 106 .catch(function() { ... ... @@ -167,13 +167,13 @@ 167 167 168 168 // 重複チェック(XWikiにページが存在するか確認) 169 169 var targetPage = 'Schools.' + school.code + '.WebHome'; 170 - fetch('/rest/wikis/xwiki/spaces/Schools/spaces/' + school.code + '/pages/WebHome') 170 + fetch('/xwiki/rest/wikis/xwiki/spaces/Schools/spaces/' + school.code + '/pages/WebHome') 171 171 .then(function(r) { 172 172 if (r.ok) { 173 173 // 既存ページあり 174 174 document.getElementById('duplicateWarning').style.display = 'block'; 175 175 document.getElementById('duplicateLink').href = 176 - '/bin/view/Schools/' + school.code + '/'; 176 + '/xwiki/bin/view/Schools/' + school.code + '/'; 177 177 document.getElementById('submitArea').style.display = 'none'; 178 178 } else { 179 179 // 新規作成OK