Changeset 29 in ExiteCMS8


Ignore:
Timestamp:
02/21/11 00:42:30 (15 months ago)
Author:
WanWizard
Message:

added support for an 'extra' field to the crud view files
added example output to the datetime form using the extra field

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/exitecms/config/exitecms.php

    r26 r29  
    1414 
    1515return array ( 
    16     'install' => 
     16    'install' =>  
    1717    array ( 
    1818        'mail_hostname' => '', 
     
    2929        'maint_text' => '', 
    3030    ), 
    31     'security' => 
     31    'security' =>  
    3232    array ( 
    3333        'account_registration' => '0', 
     
    4545        'encryption_seed' => 'sup3rs3Cr3tk3y564', 
    4646    ), 
    47     'locales' => 
     47    'locales' =>  
    4848    array ( 
    4949        'language_default' => 'en', 
     
    5252        'server_country' => 'us', 
    5353    ), 
     54    'datetime' =>  
     55    array ( 
     56        'shortdate' => '%d/%m/%Y', 
     57        'longdate' => '%B %d %Y', 
     58        'shorttime' => '%H:%M', 
     59        'longtime' => '%H:%M:%S', 
     60        'shortdatetime' => '%d/%m/%Y %H:%M', 
     61        'longdatetime' => '%B %d %Y %H:%M:%S', 
     62    ), 
    5463); 
    5564 
  • trunk/exitecms/views/crud/add.php

    r25 r29  
    7575                            <?php echo Asset::img('form_help.png', array('title' => $_line['help'], 'class' => 'tooltip')); ?> 
    7676                        <?php endif; ?> 
     77 
     78                        <?php if ( ! empty($_line['extra']) ): ?> 
     79                            <br /><span class="extra"><?php echo $_line['extra']; ?></span> 
     80                        <?php endif; ?> 
    7781                    </td> 
    7882                </tr> 
  • trunk/exitecms/views/crud/edit.php

    r25 r29  
    7575                            <?php echo Asset::img('form_help.png', array('title' => $_line['help'], 'class' => 'tooltip')); ?> 
    7676                        <?php endif; ?> 
     77 
     78                        <?php if ( ! empty($_line['extra']) ): ?> 
     79                            <br /><span class="extra"><?php echo $_line['extra']; ?></span> 
     80                        <?php endif; ?> 
    7781                    </td> 
    7882                </tr> 
  • trunk/modules/exitecms/classes/controller/datetime.php

    r28 r29  
    196196        { 
    197197            $record[$field]['value'] = \Config::get('exitecms.datetime.'.$field, $value['value']); 
    198             $record[$field]['extra'] = '&nbsp;&raquo;&nbsp;' . strftime($record[$field]['value']); 
     198            $record[$field]['extra'] = strftime($record[$field]['value']); 
    199199        } 
    200200 
  • trunk/modules/exitecms/views/datetime.php

    r28 r29  
    7373 
    7474                        <?php if ( ! empty($_line['help']) ): ?> 
    75                             <?php echo Asset::img('form_help.png', array('title' => $_line['help'], 'class' => 'tooltip', 'style' => 'float:right;')); ?> 
     75                            <?php echo Asset::img('form_help.png', array('title' => $_line['help'], 'class' => 'tooltip')); ?> 
    7676                        <?php endif; ?> 
    7777 
    7878                        <?php if ( ! empty($_line['extra']) ): ?> 
    79                             <span class="extra"><?php echo $_line['extra']; ?></span> 
     79                            <input type="text" name="<?php echo $_name; ?>_result" value="<?php echo $_line['extra']; ?>" class="extra" disabled="disabled" readonly="readonly" style="margin-left:10px;width:200px" /> 
    8080                        <?php endif; ?> 
    8181                    </td> 
  • trunk/modules/exitecms/views/settings.php

    r25 r29  
    7575                            <?php echo Asset::img('form_help.png', array('title' => $_line['help'], 'class' => 'tooltip')); ?> 
    7676                        <?php endif; ?> 
     77 
     78                        <?php if ( ! empty($_line['extra']) ): ?> 
     79                            <br /><span class="extra"><?php echo $_line['extra']; ?></span> 
     80                        <?php endif; ?> 
    7781                    </td> 
    7882                </tr> 
  • trunk/public/themes/exitecms/css/global.css

    r25 r29  
    167167    cursor: pointer; 
    168168    cursor: hand; 
     169} 
     170 
     171form input.extra { 
     172    color: #fff; 
     173    background-color: #444; 
    169174} 
    170175 
Note: See TracChangeset for help on using the changeset viewer.