Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
27.1
edited by Super Admin
on 2026/03/09 12:42
on 2026/03/09 12:42
Change comment:
There is no comment for this version
To version
28.1
edited by Super Admin
on 2026/03/09 12:54
on 2026/03/09 12:54
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -261,6 +261,14 @@ 261 261 <span class="badge badge-status-transferred"><svg class="ico" viewBox="0 0 24 24"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"/></svg> 転校済み</span> 262 262 #end 263 263 <span class="badge-info">最終編集: $!escapetool.xml($authorDisplayName) ($xwiki.formatDate($doc.date, "yyyy/MM/dd"))</span> 264 + ## 編集ボタン(権限があるユーザーのみ表示) 265 + #set($canEditSchool = false) 266 + #if(!$isGuest && ($isViewerAdmin || $viewerSchoolCode == $schoolCode)) 267 + #set($canEditSchool = true) 268 + #end 269 + #if($canEditSchool) 270 + <a href="$doc.getURL('view', 'sheet=SeitokaiCode.SchoolEditForm')" class="btn-school-edit"><svg class="ico" viewBox="0 0 24 24"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg> 学校情報を編集</a> 271 + #end 264 264 </div> 265 265 266 266 ## --- ① 学校基本情報 + 連絡先(左右グリッド・折りたたみ対応) ---