Changeset 982


Ignore:
Timestamp:
2008-12-06 09:19:06 (5 years ago)
Author:
mpo
Message:

move sample usage of styles to standard headerlinks snippet
+ include the forms.css to render the data-picker-trigger-icon correctly

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/router.groovy

    r957 r982  
    44            root: "module:/templates/" 
    55    ) 
    6      
     6 
    77    directory( 
    88            uri: "/",  
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/templates/snippet/headerlinks.xml

    r962 r982  
    22<t:if test="${true}"  
    33    xmlns:t="http://kauriproject.org/template"> 
    4      
     4 
    55    <t:include src="service:/jquery/templates/snippet/headerlinks-ui.xml"  /> 
    66    <script type="text/javascript" src="${publicUri('service:/main/js/kauri-forms.js')}"></script> 
    7  
     7     
     8    <!-- datepicker css --> 
     9    <link rel="stylesheet" type="text/css" href="${publicUri('service:/jquery/ui/jquery.ui-1.6rc2/themes/flora/flora.all.css')}" /> 
     10    <link rel="stylesheet" type="text/css" href="${publicUri('service:/jquery/ui/jquery.ui-1.6rc2/themes/ui.datepicker.css')}" /> 
     11    <link href="${publicUri('service:/main/css/forms.css')}" type="text/css" rel="stylesheet"/> 
     12    <style type="text/css"> 
     13      table.ui-datepicker td { 
     14        padding: 0; 
     15      } 
     16      table.ui-datepicker td a { 
     17        text-decoration: none; 
     18      } 
     19      table.ui-datepicker { 
     20        margin-bottom : 0; 
     21      } 
     22      .ui-slider { 
     23        margin: 10px 0; 
     24      } 
     25    </style> 
    826</t:if> 
  • trunk/samples/kauri-forms-sample/src/main/kauri/templates/layout/layout.xml

    r964 r982  
    1010        <!-- JQgrid css --> 
    1111        <link rel="stylesheet" type="text/css" media="screen" href="${publicUri('service:/jqgrid/themes/sand/grid.css')}"/> 
    12          
    13         <!-- datepicker css --> 
    14         <link rel="stylesheet" type="text/css" href="${publicUri('service:/jquery/ui/jquery.ui-1.6rc2/themes/flora/flora.all.css')}"> 
    15         </link> 
    16         <link rel="stylesheet" type="text/css" href="${publicUri('service:/jquery/ui/jquery.ui-1.6rc2/themes/ui.datepicker.css')}"> 
    17         </link> 
    18         <style type="text/css"> 
    19             table.ui-datepicker td { 
    20             padding: 0; 
    21             } 
    22             table.ui-datepicker td a { 
    23             text-decoration: none; 
    24             } 
    25             table.ui-datepicker { 
    26             margin-bottom : 0; 
    27             } 
    28             .ui-slider { 
    29             margin: 10px 0; 
    30             } 
    31         </style> 
    32         <t:include src="service:/jquery/templates/snippet/headerlinks-ui.xml"/> 
    33         <script type="text/javascript" src="${publicUri('service:/forms/js/kauri-forms.js')}"></script>  
     12 
     13        <t:include src="service:/forms/templates/snippet/headerlinks.xml"/> 
    3414    </t:block> 
    3515 
Note: See TracChangeset for help on using the changeset viewer.