changeset 842:de2ef47143a0

Blog list in group home can be folded by a checkbox
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 26 Jun 2020 08:42:42 +0900
parents 21200ed49e75
children a0dcf6477310
files examples/common/default/default.css s4-funcs.sh
diffstat 2 files changed, 13 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/examples/common/default/default.css	Thu Jun 25 16:56:26 2020 +0900
+++ b/examples/common/default/default.css	Fri Jun 26 08:42:42 2020 +0900
@@ -70,6 +70,7 @@
 input.action[value="mv"]:checked ~ span {display: none;}
 input.action[value="rm"]:checked ~ span {background: red;}
 label.confirm {display: none;}
+*.inline,
 input.action[value="rm"]:checked ~ label.confirm {
     display: inline;
 }
@@ -249,7 +250,7 @@
 }
 /* ---------------------------------------------------- */
 
-div.dumptable {max-height: 80vw; overflow: auto;}
+div.dumptable {max-height: 70vw; overflow: auto;}
 div.dumptable tr:hover {background-color: #fee;}
 table.dumpblogs td,
 div.lcto td {	/* LINK + CTIME + TITLE + OWNER + something... */
--- a/s4-funcs.sh	Thu Jun 25 16:56:26 2020 +0900
+++ b/s4-funcs.sh	Fri Jun 26 08:42:42 2020 +0900
@@ -2795,15 +2795,18 @@
 グループ管理者が承認操作をした後になります。" | html p 'class="warn"'
   fi
   echo '</div></div>'
-  echo '<h2>話題一覧</h2>'
   thelp="1ヶ月分のまとめには上部検索窓に @month と入れてください。"
   cat<<-EOF
-	<form class="summary" action="$myname" title="$thelp">
-	`cgi_hidden owner "$grp"`
-	`cgi_hidden kwd "@week"`
-	`cgi_hidden stage searchart`
-	`cgi_submit "一週間のまとめ"`
-	</form>
+	<div class="fold"> <!-- in showgroupsub -->
+	 <h2>話題一覧</h2>
+	 <form class="summary inline" action="$myname" title="$thelp">
+	 `cgi_hidden owner "$grp"`
+	 `cgi_hidden kwd "@week"`
+	 `cgi_hidden stage searchart`
+	 `cgi_submit "一週間のまとめ"`
+	 </form>
+	 <input type="checkbox" id="dtcheck" checked><label
+	  for="dtcheck">話題一覧表示</label>
 	EOF
   cond="where a.id in (select id from blog_s where key='owner' and val=$qgrp) order by ctime desc"
   colstate="state:稼動状態:frozen=rowclass=凍結"
@@ -2811,6 +2814,7 @@
 	 DT_QOWNER="$qgrp" \
 	 DT_VIEW=replyblog dumptable html blog \
 	 "ctime title heading team notify:通知$colmd $colstate" "$cond"
+  echo "</div>  <!-- in showgroupsub -->"
 
   getgname="(select gname from grp where rowid=$rowid)"
   c="group by a.name having a.name in (select user from grp_mem where gname=$getgname)"

yatex.org