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

Show
Ignore:
Timestamp:
09/08/10 14:48:02 (21 months ago)
Author:
johnnyoffline
Message:

1. Added _doNotEdit.php partial to layout.php for easy toggling of the editing message for staging sites after we launch production
2. Added app.yml flag app_a_do_not_edit true/false for toggling the doNotEdit partial
3. Moved .a-options to a-components.css from a-area-slot.css. Cleaned up the CSS so that it's less specific to areas because it's being re-used for the page settings and add page menus as well as variant options etc.
4. Fixed menu toggle for Add Page so that you can actually add a page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/a/templates/_createPage.php

    r2146 r2149  
    55<?php use_helper('I18N') ?> 
    66 
    7 <a href="#" class="a-btn icon a-add" id="a-create-page-button" onclick="return false;"><span class="icon"></span><?php echo __("Add Page", null, 'apostrophe') ?></a> 
     7<a href="#" class="a-btn icon a-add a-create-page" id="a-create-page-button" onclick="return false;"><span class="icon"></span><?php echo __("Add Page", null, 'apostrophe') ?></a> 
    88 
    99<form method="POST" action="<?php echo url_for('a/create') ?>" id="a-create-page-form" class="a-ui a-options a-page-form a-create-page-form dropshadow"> 
    10          
    11         <div class="a-form-row a-hidden"> 
    12                 <?php echo $form->renderHiddenFields() ?> 
    13         </div> 
    14         <?php echo $form->renderGlobalErrors() ?> 
    15         <div class="a-form-row a-hidden">        
    16                 <?php echo $form['parent']->render(array('id' => 'a-create-page-parent', )) ?> 
     10 
     11        <div class="a-form-row a-hidden"><?php echo $form->renderHiddenFields() ?></div> 
     12        <div class="a-form-row a-hidden"><?php echo $form['parent']->render(array('id' => 'a-create-page-parent', )) ?></div> 
     13 
     14        <?php echo $form->renderGlobalErrors() ?>        
     15 
     16        <div class="a-options-section">  
     17                <div class="a-form-row a-page-title"> 
     18                        <div class="a-form-field"> 
     19                                <?php echo $form['title']->render(array('id' => 'a-create-page-title',  'class' => 'a-page-title-field')) ?> 
     20                        </div> 
     21                        <?php echo $form['title']->renderError() ?> 
     22                </div> 
    1723        </div> 
    1824         
    19         <div class="a-form-row a-page-title"> 
    20                 <div class="a-form-field"> 
    21                         <?php echo $form['title']->render(array('id' => 'a-create-page-title',  'class' => 'a-page-title-field')) ?> 
    22                 </div> 
    23                 <?php echo $form['title']->renderError() ?> 
    24         </div> 
     25        <hr/> 
    2526 
    26  
    27         <div class="a-page-options">     
     27        <div class="a-options-section">  
    2828                <div class="a-form-row a-page-type"> 
    2929                        <?php echo $form['engine']->renderLabel(__('Page Type', array(), 'apostrophe')) ?> 
     
    4242                </div> 
    4343        </div>   
     44 
     45        <hr/>    
     46 
     47        <div class="a-options-section"> 
     48                <ul class="a-ui a-controls"> 
     49                <li><input type="submit" class="a-btn a-submit" value="<?php echo __('Create Page', null, 'apostrophe') ?>" /></li> 
     50                <li><a href="#" onclick="return false;" class="a-btn icon a-cancel"><?php echo __("Cancel", null, 'apostrophe') ?></a></li> 
     51                </ul> 
     52        </div> 
    4453         
    45         <ul class="a-ui a-controls"> 
    46           <li><input type="submit" class="a-btn a-submit" value="<?php echo __('Create Page', null, 'apostrophe') ?>" /></li> 
    47           <li><a href="#" onclick="return false;" class="a-btn icon a-cancel"><?php echo __("Cancel", null, 'apostrophe') ?></a></li> 
    48         </ul> 
    4954</form> 
    5055 
     
    5358 
    5459                var aPageTypeSelect = $('#a-create-page-type'); 
    55                 var aPageTemplateSelect = $('.a-create-page-template'); 
     60                var aPageTemplateSelect = $('.a-form-row.a-page-template'); 
    5661 
    5762                if (aPageTypeSelect.attr('selectedIndex'))