mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-03 12:30:45 +00:00
27 lines
802 B
HTML
27 lines
802 B
HTML
$def with (method, url, title, image='')
|
|
<div class="deluge_button">
|
|
<form method="$method" action="$url" class="deluge_button">
|
|
<input type="hidden" name="redir" value="$self_url()">
|
|
$if (get_config('button_style') == 0):
|
|
<button type="submit" class="deluge_button" alt="$title">
|
|
$title
|
|
$if image:
|
|
<image src="/static/images/$image" class="button" alt="$title"/>
|
|
</button>
|
|
|
|
$if (get_config('button_style') == 1):
|
|
$if image:
|
|
<input type="image" image src="/static/images/$image" class="img_button" alt="$title"/>
|
|
$else:
|
|
<button type="submit" class="deluge_button" alt="$title">
|
|
$title
|
|
</button>
|
|
|
|
$if (get_config('button_style') == 2):
|
|
<button type="submit" class="deluge_button" alt="$title">
|
|
$title
|
|
</button>
|
|
|
|
</form>
|
|
</div>
|