1 # Copyright 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/>.
18 client="${_GET[client]}"
20 [ -n "$edit" ] && client="${edit%.*.mpx}.vcf"
24 <div id="${card}" class="card">$(view_card "$client")</div>
26 <!--h1>$(l10n prescriptions_current)</h1-->
28 <div class="newprescription">
29 <form action="?action=new_prescription" method="POST">
30 <input type="hidden" name="client" value="$client">
31 <button type="submit">$(l10n newprescription)</button>
35 $(list_prescriptions "$client" |grep -q "$edit" || edit_prescription "$edit")
37 $(list_prescriptions "$client" \
39 [ "$pre" = "$edit" ] \
40 && edit_prescription "$pre" \
41 || view_prescription "$pre"
45 <!--h1>$(l10n prescriptions_past)</h1-->
49 # vi:set filetype=html: