|
|
|
|
@ -3,49 +3,42 @@
|
|
|
|
|
<a href="/sound"><span class="button-back">Back</span></a>
|
|
|
|
|
<div class="hspace-20"</div>
|
|
|
|
|
|
|
|
|
|
<h3>Edit sound files</h3>
|
|
|
|
|
<h3>Edit sound files for sound set [% set.name %]</h3>
|
|
|
|
|
[% IF messages.sound_set_err %]<div class="error">[% messages.sound_set_err %]</div>[% END %]
|
|
|
|
|
[% IF messages.sound_set_msg %]<div class="success">[% messages.sound_set_msg %]</div>[% END %]
|
|
|
|
|
|
|
|
|
|
<ul class="cleanlist">
|
|
|
|
|
<li class="ui-state-default">
|
|
|
|
|
<div class="span-2">Setname</div>
|
|
|
|
|
<div class="prepend-1 span-2">Handle</div>
|
|
|
|
|
<div class="span-2">Handle</div>
|
|
|
|
|
<div class="prepend-1 span-1">Loopplay</div>
|
|
|
|
|
<div class="prepend-1 span-4">Filename</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="ui-state-default">
|
|
|
|
|
<div class="span-5">
|
|
|
|
|
[% set.name %]
|
|
|
|
|
[% count = set.mapped.domains + set.mapped.subscribers + set.mapped.peers %]
|
|
|
|
|
[% IF count > 0 %]
|
|
|
|
|
[% plural = 's' IF count > 1 %]
|
|
|
|
|
<font class="small"><i>(mapped [% count %] time[% plural %])</i></font>
|
|
|
|
|
[% END %]
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
[% FOREACH h IN set.handles %]
|
|
|
|
|
<li class="ui-state-default">
|
|
|
|
|
<div class="span-2"></div>
|
|
|
|
|
<div class="prepend-1 span-2">[% h.name %]</div>
|
|
|
|
|
<div class="span-2">[% h.name %]</div>
|
|
|
|
|
|
|
|
|
|
[% IF NOT h.filename.length %] [%# kein file %]
|
|
|
|
|
<form action="/sound/set/[% set.id %]/handle/[% h.id %]/soundfile/upload" method="post" enctype="multipart/form-data">
|
|
|
|
|
<div class="prepend-1 span-1"></div>
|
|
|
|
|
<form action="/sound/set/[% set.id %]/handle/[% h.id %]/save" method="post" enctype="multipart/form-data">
|
|
|
|
|
<div class="prepend-1 span-1"><input type="checkbox" class="checkbox" id="loopplay_"[% h.id %] name="loopplay"></div>
|
|
|
|
|
<div class="prepend-1 span-2"></div>
|
|
|
|
|
<div class="prepend-1 span-6">
|
|
|
|
|
[%# value='' is ignored by browsers for security reasons for file-input-fields %]
|
|
|
|
|
<input id="soundfile" name="soundfile" class="file" type="file" size="10" value="[% IF h.filename.length %][% h.filename %][% END %]">
|
|
|
|
|
<input id="soundfile" name="soundfile" class="file" type="file" size="10" value="">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="prepend-1 span-1">
|
|
|
|
|
<button class="button-add" id="soundadd" />
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</form>
|
|
|
|
|
[% ELSIF handle_id == h.id %] [%# edit %]
|
|
|
|
|
<form action="/sound/set/[% set.id %]/handle/[% h.id %]/save" method="post">
|
|
|
|
|
<div class="prepend-1 span-1"><input type="checkbox" class="checkbox" id="loopplay_"[% h.id %] name="loopplay" [% IF h.loopplay %]checked="checked"[% END %]></div>
|
|
|
|
|
<div class="prepend-1 span-4">[% h.filename %]</div>
|
|
|
|
|
<div class="prepend-3 span-1">
|
|
|
|
|
<form action="/sound/set/[% set.id %]/handle/[% h.id %]/save" method="post" enctype="multipart/form-data">
|
|
|
|
|
<div class="prepend-1 span-1"><input type="checkbox" class="checkbox" id="loopplay_"[% h.id %] name="loopplay" [% IF h.loopplay %]checked=
|
|
|
|
|
"checked"[% END %]></div>
|
|
|
|
|
<div class="prepend-1 span-2">[% h.filename %]</div>
|
|
|
|
|
<div class="prepend-1 span-6">
|
|
|
|
|
[%# value='' is ignored by browsers for security reasons for file-input-fields %]
|
|
|
|
|
<input id="soundfile" name="soundfile" class="file" type="file" size="10" value="">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="prepend-1 span-1">
|
|
|
|
|
<button class="button-save" id="handlesave[% id %]">Save</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="span-1">
|
|
|
|
|
@ -53,19 +46,21 @@
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
[% ELSE %] [%# view %]
|
|
|
|
|
<div class="prepend-1 span-1"><input type="checkbox" class="checkbox" id="loopplay_"[% h.id %] name="loopplay" [% IF h.loopplay %]checked="checked"[% END %] disabled="disabled"></div>
|
|
|
|
|
<div class="prepend-1 span-4"><a href="/sound/set/[% set.id %]/handle/[% h.id %]/soundfile/get">[% h.filename %]</a></div>
|
|
|
|
|
<div class="prepend-1 span-1"><input type="checkbox" class="checkbox" id="loopplay_"[% h.id %] name="loopplay" [% IF h.loopplay %]checked="che
|
|
|
|
|
cked"[% END %] disabled="disabled"></div>
|
|
|
|
|
<div class="prepend-1 span-2"><a href="/sound/set/[% set.id %]/handle/[% h.id %]/soundfile/get">[% h.filename %]</a></div>
|
|
|
|
|
<form action="/sound/set/[% set.id %]/handle/[% h.id %]/delete" method="post">
|
|
|
|
|
[% UNLESS Catalyst.session.admin.read_only %]
|
|
|
|
|
<div class="prepend-3 span-1">
|
|
|
|
|
<div class="prepend-1 span-6"></div>
|
|
|
|
|
<div class="prepend-1 span-1">
|
|
|
|
|
<a href="/sound/set/[% set.id %]/handle/[% h.id %]/edit"><span class="button-edit">Edit</span></a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="span-1">
|
|
|
|
|
<button class="button-delete" id="setdel[% id %]">Delete</button>
|
|
|
|
|
</div>
|
|
|
|
|
[% END %]
|
|
|
|
|
</form>
|
|
|
|
|
</form>
|
|
|
|
|
[% END %]
|
|
|
|
|
</li>
|
|
|
|
|
[% END %]
|
|
|
|
|
</ul>
|
|
|
|
|
[% END %]
|
|
|
|
|
</ul>
|
|
|
|
|
|