To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
09/09/10 15:24:39 (21 months ago)
Author:
jake
Message:

replace image button in file edit form, starting generic file icons

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/aMedia/templates/_edit.php

    r2134 r2169  
    3030    <div class="a-form-row preview"> 
    3131      <?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() ?> 
    4332    </div> 
    4433 
     
    10089 
    10190                </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> 
    102108 
    103109   <?php if ($item): ?>