Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/views/developers/previews.thtml
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/views/developers/previews.thtml')
-rw-r--r--site/app/views/developers/previews.thtml13
1 files changed, 7 insertions, 6 deletions
diff --git a/site/app/views/developers/previews.thtml b/site/app/views/developers/previews.thtml
index e229be3..2cbdccf 100644
--- a/site/app/views/developers/previews.thtml
+++ b/site/app/views/developers/previews.thtml
@@ -21,7 +21,6 @@
*
* Contributor(s):
* Justin Scott <fligtar@mozilla.com> (Original Author)
- * Frederic Wenzel <fwenzel@mozilla.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -71,15 +70,16 @@
'loaded' => false
);
- foreach ($previews as &$preview) {
+ foreach ($previews as $preview) {
?>
<div class="preview-box graybox rounded spaced field">
<table style="width: 100%;"><tr><td style="width: 200px; text-align: center; vertical-align: top;">
<img src="<?=$this->controller->Image->getPreviewURL($preview['Preview']['id'])?>/0" alt="<?=___('devcp_previews_thumbnail')?>" />
</td><td style="vertical-align: top;">
<h5 style="margin-top: 0; margin-bottom: 2px;"><?=___('devcp_previews_header_caption')?></h5>
+ <div class="translation-box">
<?php
- echo $this->renderElement('translationbox', array(
+ echo $this->renderElement('developers/translationbox', array(
'field' => 'caption',
'id' => $preview['Preview']['id'],
'translations' => !empty($translations[$preview['Preview']['id']]['caption']) ? $translations[$preview['Preview']['id']]['caption'] : array(),
@@ -87,11 +87,12 @@
'graybox' => false
));
?>
+ </div>
<table style="width: 100%; padding-top: 10px;"><tr><td>
<label><input type="radio" name="data[Preview][highlight]" value="<?=$preview['Preview']['id']?>" style="vertical-align: top;"<?=($preview['Preview']['highlight'] == 1 ? ' checked="checked"' : '')?>/>
<?=___('devcp_previews_label_default')?></label>
- </td><td class="preview-buttons">
+ </td><td style="text-align: right;">
<a href="#" onclick="previews.showReplaceBox(this); return false;" class="edit-button rounded"><?=___('devcp_previews_a_replace')?></a>&nbsp;
<a href="#" onclick="previews.deletePreview(this); return false;" class="remove-button rounded"><?=___('devcp_previews_a_delete')?></a>
</td></tr></table>
@@ -118,7 +119,7 @@
<label class="new-preview"><?=___('devcp_previews_label_upload')?><input type="file" name="data[Preview][New][]" size="40" /></label>
</div>
<div class="add-button-container"><a href="#" onclick="previews.addUploadBox(); return false;" class="add-button rounded"><?=___('devcp_previews_a_another')?></a></div>
- <div class="preview-add-button-description"><?=___('devcp_previews_click_below')?></div>
+ <div style="text-align: right;"><?=___('devcp_previews_click_below')?></div>
</div>
<div class="add-button-container" style="<?=(empty($previews) ? 'display: none;' : '')?>"><a href="#add-preview-box" onclick="previews.showAddBox(this);" class="add-button rounded"><?=___('devcp_previews_add_new')?></a></div>
@@ -126,4 +127,4 @@
<div class="action-button-container centered"><a href="#" onclick="previews.save(); return false;" class="action-button rounded"><?=___('devcp_previews_a_update')?></a></div>
</form>
</div>
-</div>
+</div> \ No newline at end of file