Changeset 2169
- Timestamp:
- 09/09/10 15:24:39 (17 months ago)
- Location:
- plugins/apostrophePlugin/trunk
- Files:
-
- 3 added
- 7 modified
-
lib/form/BaseaMediaEditForm.class.php (modified) (1 diff)
-
modules/aMedia/templates/_edit.php (modified) (2 diffs)
-
modules/aMedia/templates/_mediaItem.php (modified) (1 diff)
-
web/css/a-buttons.css (modified) (2 diffs)
-
web/css/a-components.css (modified) (1 diff)
-
web/css/a-engines.css (modified) (4 diffs)
-
web/css/a-forms.css (modified) (1 diff)
-
web/images/a-icon-alt-replace.png (added)
-
web/images/a-icon-replace.png (added)
-
web/images/a-media-icon.png (added)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/trunk/lib/form/BaseaMediaEditForm.class.php
r2134 r2169 36 36 // to try to read a button on top of 37 37 38 $this->getWidget('file')->setLabel(' Replace File');38 $this->getWidget('file')->setLabel('Select a new file'); 39 39 if (!$item->isNew()) 40 40 { -
plugins/apostrophePlugin/trunk/modules/aMedia/templates/_edit.php
r2134 r2169 30 30 <div class="a-form-row preview"> 31 31 <?php echo image_tag($form['file']->getWidget()->getPreviewUrl($form['file']->getValue(), aMediaTools::getOption('gallery_constraints'))) ?> 32 <?php if (!$item): ?>33 <a class="a-media-remove-file" href="#">x</a>34 <?php a_js_call('apostrophe.mediaEnableRemoveButton(?)', $i) ?>35 <?php endif ?>36 </div>37 38 <?php // The label says 'Replace File' now, see BaseaMediaEditForm ?>39 <div class="a-form-row file">40 <?php echo $form['file']->renderLabel() ?>41 <?php echo $form['file']->renderError() ?>42 <?php echo $form['file']->render() ?>43 32 </div> 44 33 … … 100 89 101 90 </div> 91 92 <div class="a-form-row replace"> 93 <?php // The label says 'Replace File' now, see BaseaMediaEditForm ?> 94 <div class="a-options-container a-ui"> 95 <a href="#replace-image" onclick="return false;" id="a-media-replace-image-<?php echo $i ?>" class="a-btn icon alt no-bg a-replace">Replace File</a> 96 <div class="a-options dropshadow"> 97 <?php echo $form['file']->renderLabel() ?> 98 <?php echo $form['file']->renderError() ?> 99 <?php echo $form['file']->render() ?> 100 </div> 101 <?php a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-media-replace-image-'.$i, 'classname' => '', 'overlay' => false)) ?> 102 </div> 103 <?php if (!$item): ?> 104 <a class="a-btn no-bg icon a-delete a-media-delete-image-btn" href="#">Delete File</a> 105 <?php a_js_call('apostrophe.mediaEnableRemoveButton(?)', $i) ?> 106 <?php endif ?> 107 </div> 102 108 103 109 <?php if ($item): ?> -
plugins/apostrophePlugin/trunk/modules/aMedia/templates/_mediaItem.php
r2168 r2169 40 40 <?php // We can't render this format on this server but we need a placeholder thumbnail ?> 41 41 <?php $type = $mediaItem->getType() ?> 42 <img class="a-media-icon-as-thumbnail" src="/apostrophePlugin/images/a-<?php echo $type ?>-icon-tiny.png" />42 <span class="a-media-type"><b><?php echo $type ?></b></span> 43 43 <?php endif ?> 44 44 </a> -
plugins/apostrophePlugin/trunk/web/css/a-buttons.css
r2135 r2169 158 158 .a-users > .icon { background-image: url(/apostrophePlugin/images/a-icon-users.png); } 159 159 .a-video > .icon { background-image: url(/apostrophePlugin/images/a-icon-video.png); } 160 .a-replace > .icon { background-image: url(/apostrophePlugin/images/a-icon-replace.png); } 160 161 161 162 … … 212 213 .alt .a-users > .icon, .a-users.alt > .icon { background-image: url(/apostrophePlugin/images/a-icon-alt-users.png); } 213 214 .alt .a-video > .icon, .a-video.alt > .icon { background-image: url(/apostrophePlugin/images/a-icon-alt-video.png); } 215 .alt .a-replace > .icon, .a-replace.alt > .icon { background-image: url(/apostrophePlugin/images/a-icon-alt-replace.png); } 214 216 215 217 -
plugins/apostrophePlugin/trunk/web/css/a-components.css
r2159 r2169 25 25 position: absolute; 26 26 float: left; 27 display: none ;27 display: none !important; 28 28 top: -6px; 29 29 left: -6px; -
plugins/apostrophePlugin/trunk/web/css/a-engines.css
r2168 r2169 434 434 } 435 435 436 .a-media-item-edit-form .a-form-row.help 437 { 438 width:340px; 439 } 440 436 441 #a-media-plugin .a-form-row input[type="text"], 437 442 #a-media-plugin .a-form-row select, … … 459 464 } 460 465 461 462 466 #a-media-plugin .a-form-row.image 463 467 { … … 470 474 top: 10px; 471 475 left: 10px; 476 } 477 478 #a-media-plugin .a-form-row.replace 479 { 480 width:340px; 481 } 482 483 .a-form-row.replace .a-replace, 484 .a-form-row.replace .a-delete 485 { 486 clear:none; 487 color:#000 !important; 488 } 489 490 .a-form-row.replace a:hover.a-replace, 491 .a-form-row.replace a:hover.a-delete, 492 .a-form-row.replace a:focus.a-replace, 493 .a-form-row.replace a:focus.a-delete 494 { 495 background-color: #fff !important; 496 color:#666 !important; 472 497 } 473 498 … … 581 606 position: relative; 582 607 float: left; 608 } 609 610 a:hover.a-media-thumb-link 611 { 612 text-decoration: none; 583 613 } 584 614 -
plugins/apostrophePlugin/trunk/web/css/a-forms.css
r2129 r2169 150 150 font: 12px/normal arial, sans-serif; 151 151 padding: 0px 4px; 152 z-index: 2; 152 /*z-index: 2;*/ /* TODO: Figure out why this is here */ 153 153 width: auto; 154 154 cursor: pointer;

