summaryrefslogtreecommitdiff
path: root/templates/edit_storage_list.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-12-26 08:38:35 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-12-26 08:38:35 +0000
commit07fae7bc3dceabb76e5bb1c00d9ed7d36ac849d5 (patch)
tree62af3f5c70bee9efa74977d281a0ebebde101eba /templates/edit_storage_list.tpl
parent6f501bc7a41d30e96becb73b294faebfe893d8f8 (diff)
downloadliberty-07fae7bc3dceabb76e5bb1c00d9ed7d36ac849d5.tar.gz
liberty-07fae7bc3dceabb76e5bb1c00d9ed7d36ac849d5.tar.bz2
liberty-07fae7bc3dceabb76e5bb1c00d9ed7d36ac849d5.zip
clean up HTML code. the attribute 'name' is not XHTML 1.0 Strict and should be removed if possible.
Diffstat (limited to 'templates/edit_storage_list.tpl')
-rw-r--r--templates/edit_storage_list.tpl48
1 files changed, 22 insertions, 26 deletions
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl
index cc765e9..768ca45 100644
--- a/templates/edit_storage_list.tpl
+++ b/templates/edit_storage_list.tpl
@@ -73,54 +73,50 @@
</td>
</tr>
{if $gBitThemes->isJavascriptEnabled()}
+ {capture name=inputhelp}
+ <tr>
+ <td colspan="2">
+ {formhelp note="copy this code into your edit window to embed the file into your text"}
+ </td>
+ </tr>
+ {/capture}
+
<tr id="wiki_attachment_code_{$storage.attachment_id}" style="display:none;">
- <td colspan=3>
+ <td colspan=4>
<table>
- {if $smarty.foreach.atts.first}
- <tr>
- <td colspan=2 style="text-align:center">
- {formhelp note="copy this code into your edit window to embed the file into your text"}
- </td>
- </tr>
- {/if}
+ {$smarty.capture.inputhelp}
<tr>
- <td style="text-align:center; width:125px">wiki code</td>
- <td style="text-align:right"><input name="attachment_source_wiki_{$storage.attachment_id}" value="{$storage.wiki_plugin_link}" readonly style="width:305px"/></td>
+ <td class="width15p">{tr}Wiki code{/tr}</td>
+ <td class="width85p"><input name="attachment_source_wiki_{$storage.attachment_id}" value="{$storage.wiki_plugin_link}" readonly="readonly" class="width100p"/></td>
</tr>
</table>
</td>
</tr>
<tr id="html_attachment_code_{$storage.attachment_id}" style="display:none;">
- <td colspan=3>
+ <td colspan=4>
<table>
- {if $smarty.foreach.atts.first}
- <tr>
- <td colspan=2 style="text-align:center">
- {formhelp note="copy this code into the html source to embed the file into your text"}
- </td>
- </tr>
- {/if}
-
+ {$smarty.capture.inputhelp}
<tr>
- <th>Size</th><th>Code</th>
+ <th class="width15p">{tr}Size{/tr}</th>
+ <th class="width85p">{tr}Code{/tr}</th>
</tr>
{if $storage.attachment_plugin_guid eq 'mimeimage'}
{foreach name=size key=size from=$storage.thumbnail_url item=url}
<tr>
- <td style="text-align:center; width:125px">{$size}</td>
- <td style="text-align:right"><input name="attachment_source_{$size}_{$storage.attachment_id}" value="&lt;img src={$url|escape} /&gt;" readonly style="width:305px"/></td>
+ <td>{$size}</td>
+ <td><input name="attachment_source_{$size}_{$storage.attachment_id}" value='&lt;img src="{$url|escape}" /&gt;' readonly="readonly" class="width100p"/></td>
</tr>
{/foreach}
{if ( $storage.source_url ) }
<tr>
- <td style="text-align:center">original</td>
- <td style="text-align:right"><input name="attachment_source_original_{$storage.attachment_id}" value="&lt;img src={$storage.source_url|escape} /&gt;" readonly style="width:305px"/></td>
+ <td>original</td>
+ <td><input name="attachment_source_original_{$storage.attachment_id}" value='&lt;img src="{$storage.source_url|escape}" /&gt;' readonly="readonly" class="width100p"/></td>
</tr>
{/if}
{else}
<tr>
- <td style="text-align:center; width:125px">icon</td>
- <td style="text-align:right"><input name="attachment_source_icon_{$storage.attachment_id}" value='&lt;a href="{$storage.download_url}" &gt;&lt;img src={$storage.thumbnail_url.icon} /&gt;&lt;/a&gt;&lt;br /&gt;{$storage.filename}' readonly style="width:305px"/></td>
+ <td class="width15p">icon</td>
+ <td class="width85p"><input name="attachment_source_icon_{$storage.attachment_id}" value='&lt;a href="{$storage.download_url}" &gt;&lt;img src="{$storage.thumbnail_url.icon}" /&gt;&lt;/a&gt;&lt;br /&gt;{$storage.filename}' readonly="readonly" class="width100p"/></td>
</tr>
{/if}
</table>