1<?php
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
3/**
4 *
5 * LICENSE: GNU Affero General Public License, version 3 (AGPL-3.0-or-later)
6 * Copyright 2001 - 2020 Ampache.org
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 *
21 */
22
23use Ampache\Config\AmpConfig;
24use Ampache\Module\Util\Ui;
25
26?>
27<?php Ui::show_box_top(T_('Configure License')); ?>
28<form method="post" enctype="multipart/form-data" action="<?php echo AmpConfig::get('web_path'); ?>/admin/license.php?action=edit">
29<?php if (isset($license)) { ?>
30<input type="hidden" name="license_id" value="<?php echo $license->id; ?>" />
31<?php
32} ?>
33<table class="tabledata">
34<tr>
35    <td class="edit_dialog_content_header"><?php echo T_('Name') ?></td>
36    <td><input type="text" name="name" value="<?php if (isset($license)) {
37    echo $license->name;
38} ?>" autofocus /></td>
39</tr>
40<tr>
41    <td><?php echo T_('Description:'); ?></td>
42    <td><textarea rows="5" cols="70" maxlength="250" name="description"><?php if (isset($license)) {
43    echo $license->description;
44} ?></textarea></td>
45</tr>
46<tr>
47    <td class="edit_dialog_content_header"><?php echo T_('External Link') ?></td>
48    <td><input type="text" name="external_link" value="<?php if (isset($license)) {
49    echo $license->external_link;
50} ?>" /></td>
51</tr>
52<tr>
53    <td><input type="submit" value="<?php echo T_('Confirm'); ?>" /></td>
54</tr>
55</table>
56</form>
57<?php Ui::show_box_bottom(); ?>
58