summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2014-11-19 16:19:41 -0500
committerspiderr <spider@viovio.com>2014-11-19 16:19:41 -0500
commit1aa50ff7a5aa67a002f7a266f5064288721824ec (patch)
tree63bf3a6d4665a8e64c60c74a79a241409411935f
parente78b507e1f15b3022f43f4e7d28059c1d138ced1 (diff)
downloadliberty-1aa50ff7a5aa67a002f7a266f5064288721824ec.tar.gz
liberty-1aa50ff7a5aa67a002f7a266f5064288721824ec.tar.bz2
liberty-1aa50ff7a5aa67a002f7a266f5064288721824ec.zip
add-forminput-label-param-for-bs3
-rw-r--r--templates/edit_format.tpl8
-rw-r--r--templates/mime/audio/edit.tpl4
-rw-r--r--templates/mime/image/edit.tpl4
3 files changed, 6 insertions, 10 deletions
diff --git a/templates/edit_format.tpl b/templates/edit_format.tpl
index 1f9922c..04b66af 100644
--- a/templates/edit_format.tpl
+++ b/templates/edit_format.tpl
@@ -42,8 +42,7 @@
{formlabel label="Content Format"}
{foreach name=formatPlugins from=$gLibertySystem->mPlugins item=plugin key=guid}
{if $plugin.is_active eq 'y' and $plugin.edit_field and $plugin.plugin_type eq 'format'}
- {forminput}
- <label class="radio">
+ {forminput label="radio"}
{if $numformat > 1}
<input type="radio" name="{$format_guid_variable|default:"format_guid"}" value="{$plugin.edit_field}"
{if $contentObject->mInfo.format_guid eq $plugin.plugin_guid} checked="checked"
@@ -77,7 +76,6 @@
{/if}
{/if}
{/if}
- </label>
{formhelp note=$plugin.edit_help}
{/forminput}
{/if}
@@ -96,9 +94,7 @@
<div class="form-group">
{formlabel label="Content Format"}
{forminput}
- <label>
- {$singleplugin.edit_label}
- </label>
+ {$singleplugin.edit_label}
{/forminput}
</div>
{/if}
diff --git a/templates/mime/audio/edit.tpl b/templates/mime/audio/edit.tpl
index 2df08b5..ef88d4c 100644
--- a/templates/mime/audio/edit.tpl
+++ b/templates/mime/audio/edit.tpl
@@ -36,10 +36,10 @@
{if $attachment.source_file}
<div class="form-group">
- <label class="checkbox">
+ {forminput label="checkbox"}
<input type="checkbox" id="remove_original" name="plugin[{$attachment.attachment_id}][mimeaudio][remove_original]" value="y" />Remove Original
{formhelp note="This will permanently remove the original file from the server. This will still allow you to listen to the audio file but not download it."}
- </label>
+ {/forminput}
</div>
{/if}
diff --git a/templates/mime/image/edit.tpl b/templates/mime/image/edit.tpl
index 557bdca..2085c88 100644
--- a/templates/mime/image/edit.tpl
+++ b/templates/mime/image/edit.tpl
@@ -1,10 +1,10 @@
{strip}
{if $gBitSystem->isFeatureActive( 'mime_image_panoramas' )}
<div class="form-group">
- <label class="checkbox">
+ {forminput label="checkbox"}
<input type="checkbox" value="y" name="plugin[{$attachment.attachment_id}][mimeimage][preference][is_panorama]" id="panorama" {if $attachment.thumbnail_url.panorama}checked="checked"{/if} />Panorama Image
{formhelp note="If this image is a 360&deg; panoramic image with equirectangular projection, check this box. This works best for images with a 360&deg; by 180&deg; field of view (FOV)"}
- </label>
+ {/forminput}
</div>
{/if}
{/strip}