1 # Copyright 2014 - 2016 Paul Hänsch
3 # This file is part of Confetti.
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti. If not, see <http://www.gnu.org/licenses/>.
19 [ "${_GET[filtertype]}" = "$1" ] && echo 'checked="checked"'
22 [ "${_GET[order]}" = "$1" ] && echo 'checked="checked"'
26 <form class="filter" action="?action=filter_card" method="POST">
27 <h1>$(l10n filter_label)</h1>
28 <input type="hidden" name="page" value="cards"/>
29 <fieldset class="item">
30 <legend>$(l10n filter_item):</legend>
31 <input id="any" type="radio" name="filtertype" value="any" $(check_type any)>
32 <label for="any" >$(l10n filter_all)</label>
34 <input id="name" type="radio" name="filtertype" value="name" $(check_type name)>
35 <label for="name">$(l10n filter_name)</label>
37 <input id="street" type="radio" name="filtertype" value="street" $(check_type street)>
38 <label for="street">$(l10n filter_street)</label>
40 <input id="zip" type="radio" name="filtertype" value="zip" $(check_type zip)>
41 <label for="zip">$(l10n filter_zip)</label>
43 <input id="telephone" type="radio" name="filtertype" value="telephone" $(check_type telephone)>
44 <label for="telephone">$(l10n filter_phone)</label>
46 <input id="birth" type="radio" name="filtertype" value="birth" $(check_type birth)>
47 <label for="birth">$(l10n filter_birthyear)</label>
50 <input id="course" type="radio" name="filtertype" value="course" $(check_type course)>
51 <label for="course">$(l10n filter_course)</label>
54 <input type="text" name="filter" value="${_GET[filter]}" placeholder="$(l10n filter_placeholder)"/>
57 <fieldset class="order">
58 <legend>$(l10n filter_order):</legend>
59 <label><input type="radio" name="order" value="firstname" $(check_order firstname)>$(l10n filter_firstname)</label>
60 <label><input type="radio" name="order" value="lastname" $(check_order lastname) >$(l10n filter_lastname)</label>
61 <label><input type="radio" name="order" value="bdate" $(check_order bdate) >$(l10n filter_bdate)</label>
63 <button type="submit" name="choice" value="new_filter">$(l10n filter_apply)</button>
64 <button type="submit" name="choice" value="del_filter">$(l10n filter_cancel)</button>
67 <form class="newcard" action="?action=new_card" method="POST">
68 <button type="submit">$(l10n newcard)</button>
71 ${edit:+$(edit_card "$edit")}
74 listcards |grep ${edit:+-v} "$edit" \
77 <div id="${card}" class="card">
78 $(view_card "$card")<!--
79 --><div class="control">
80 <a class="item" href="?action=edit_card&card=${card}">$(l10n edit)</a>
81 <a class="item" href="?action=export_vcard&card=${card}">$(l10n vcf_export)</a>
83 <a class="item" href="?action=new_prescription&client=${card}">$(l10n new_prescription)</a>
90 # vi:set filetype=html: