From da08149f6cdeb8fea9cc89fde75e4aab84cbcfd8 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 20 Jul 2016 01:28:55 +0000 Subject: [PATCH] confirmation when trying to delete record svn path=/trunk/; revision=127 --- pages/cards.sh | 3 ++- static/cards.css | 37 +++++++++++++++++++++++++++++++++---- templates/edit_client.sh | 1 + 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/pages/cards.sh b/pages/cards.sh index 17b8f73..106484b 100755 --- a/pages/cards.sh +++ b/pages/cards.sh @@ -25,19 +25,20 @@ medical) view_card="$_EXEC/templates/view_client.sh" edit_card="$_EXEC/templates/edit_client.sh" _GET[order]="${_GET[order]:-lastname}" + _GET[filtertype]="${_GET[filtertype]:-name}" profile_medical=x ;; circus) view_card="$_EXEC/templates/view_attendee.sh" edit_card="$_EXEC/templates/edit_attendee.sh" _GET[order]="${_GET[order]:-firstname}" + _GET[filtertype]="${_GET[filtertype]:-any}" profile_circus=x ;; esac edit="${_GET[edit]}" [ \! -f "vcard/$edit" -a \! -f "temp/$edit" ] && edit='' -_GET[filtertype]="${_GET[filtertype]:-any}" listcourses() { ls -1 ${_DATA}/ical/*ics |while read file; do diff --git a/static/cards.css b/static/cards.css index d85123f..0b50b5e 100644 --- a/static/cards.css +++ b/static/cards.css @@ -1,5 +1,5 @@ /* -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Confetti. # @@ -81,6 +81,7 @@ padding: 0 20ex 0 0; overflow: auto; background: #FFF; + min-height: 8em; } .card .control { display: inline-block; @@ -97,18 +98,46 @@ .card .control .item { display: inline-block; width: 100%; + min-height: 2em; color: #008; - margin: .25em 0 0 0; + margin: .25em 0; border: 1px solid black; background: #FFF; + padding: .25em .75ex 0 .75ex; + text-decoration: none; + font-size: .75em; } -.card .control a.item { padding: .25em .75ex 0 .75ex;} -.card .control a.item:hover{ border-color: #888;} +.card .control .item:hover{ border-color: #888; } +.card .control input.item { font-size: normal; } .card .control button.item { text-align: right;} .card .control button.item:hover{ border-color: #888;} .card .control .item[name=newfield] { width: 85%;} .card .control .item[value=addfield] { width: 15%;} +.card .control #delete + label + button, +.card .control #delete { display: none; } +.card .control #delete + label { background-color: #FEE; } +.card .control #delete:checked + label + button { + position: fixed; display: block; + left: 40%; top: 30%; width: 20%; + font-size: 1.5em; + text-align: center; + background-color: #FAA; + color: #333; + border-radius: .25em 0 0 .25em; +} +.card .control #delete:checked + label:after { + position: fixed; display: block; + left: 60%; top: 30%; width: 5%; + margin: .25em 0; padding: .5em .75ex 0 .75ex; + height: 1.5em; + font-size: 2em; + content: 'X'; + text-align: center; + color: #AAA; background-color: #000; + border-radius: 0 .25em .25em 0; +} + .card .section { display: inline-block; vertical-align: top; diff --git a/templates/edit_client.sh b/templates/edit_client.sh index 2b0c004..61b059d 100755 --- a/templates/edit_client.sh +++ b/templates/edit_client.sh @@ -155,6 +155,7 @@ cat < + -- 2.39.2