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
/*
-# Copyright 2014, 2015 Paul Hänsch
+# Copyright 2014 - 2016 Paul Hänsch
#
# This file is part of Confetti.
#
padding: 0 20ex 0 0;
overflow: auto;
background: #FFF;
+ min-height: 8em;
}
.card .control {
display: inline-block;
.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;
</select
><button class="item" type="submit" name="action" value="addfield">$(l10n edit_addfield)</button>
<button class="item" type="submit" name="action" value="update">$(l10n edit_update)</button>
+ <input type="checkbox" id="delete"><label class="item" for="delete">$(l10n edit_delete)</label>
<button class="item" type="submit" name="action" value="delete">$(l10n edit_delete)</button>
<button class="item" type="submit" name="action" value="cancel">$(l10n edit_cancel)</button>
</div>