Ignore:
Timestamp:
Apr 25, 2006, 9:14:47 PM (19 years ago)
Author:
chrisaga
Message:
  • fix : bug 353 (radio and date in search.tpl
Location:
branches/branch-1_6/template/yoga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/template/yoga/default-layout.css

    r1262 r1267  
    126126/**
    127127 * Filter forms are displayed label by label with the input (or select...)
    128  * below the label. Use a SPAN to group objects in a single line.
     128 * below the label. Use an UL to make a group (radiobox for instance).
     129 * Use a SPAN to group objects in line
    129130 */
    130131FIELDSET {
     
    134135}
    135136
     137FORM.filter FIELDSET UL {
     138  margin: 0;
     139}
     140FORM.filter FIELDSET UL,
    136141FORM.filter FIELDSET LABEL {
    137142  display: block;
    138143  float: left;
    139   width: auto;
    140144  margin-right: 1em;
    141145  padding: 0;
    142146}
    143 FORM.filter FIELDSET UL LABEL {
     147
     148FORM.filter FIELDSET LI {
     149  list-style: none;
     150  margin-bottom: 0.5em;
     151}
     152
     153FORM.filter FIELDSET LI LABEL {
     154  display: inline;
     155  float: none;
     156}
     157
     158FORM.filter FIELDSET UL.tagSelection LABEL {
    144159  display: inline;
    145160  float: none;
     
    155170}
    156171FORM.filter FIELDSET * LABEL INPUT,
    157 FORM.filter FIELDSET LABEL * INPUT,
    158172FORM.filter FIELDSET * LABEL SELECT,
    159 FORM.filter FIELDSET LABEL * SELECT,
    160173FORM.filter FIELDSET * LABEL TEXTAREA,
    161 FORM.filter FIELDSET LABEL * TEXTAREA {
     174FORM.filter FIELDSET LABEL SPAN INPUT,
     175FORM.filter FIELDSET LABEL SPAN SELECT,
     176FORM.filter FIELDSET LABEL SPAN TEXTAREA {
    162177  display: inline;
    163178  vertical-align: top;
  • branches/branch-1_6/template/yoga/search.tpl

    r1258 r1267  
    2525    <input type="text" style="width: 300px" name="search_allwords" size="30"  onfocus="this.className='focus';" onblur="this.className='nofocus';"/>
    2626  </label>
    27   <label>
    28     <span><input type="radio" name="mode" value="AND" checked="checked" /> {lang:search_mode_and}</span>
    29     <span><input type="radio" name="mode" value="OR" /> {lang:search_mode_or}</span>
    30   </label>
     27  <ul>
     28    <li><label>
     29      <input type="radio" name="mode" value="AND" checked="checked" />{lang:search_mode_and}
     30    </label></li>
     31    <li><label>
     32      <input type="radio" name="mode" value="OR" />{lang:search_mode_or}
     33    </label></li>
     34  </ul>
    3135  <label>{lang:search_author}
    3236    <input type="text" style="width: 300px" name="search_author" size="30"  onfocus="this.className='focus';" onblur="this.className='nofocus';"/>
     
    4246<fieldset>
    4347  <legend>{lang:search_date}</legend>
    44   <label>{lang:search_date_type}
    45     <span>
     48  <ul>
     49    <li><label>{lang:search_date_type}</label></li>
     50    <li><label>
    4651      <input type="radio" name="date_type" value="date_creation" checked="checked" />{lang:Creation date}
    47     </span>
    48     <span>
     52    </label></li>
     53    <li><label>
    4954      <input type="radio" name="date_type" value="date_available" />{lang:Post date}
    50     </span>
    51   </label>
    52   <label>{lang:search_date_from}
    53     <span>
     55    </li></label>
     56  </ul>
     57  <ul>
     58    <li><label>{lang:search_date_from}</label></li>
     59    <li>
    5460      <select name="start_day">
    5561        <!-- BEGIN start_day -->
     
    6369      </select>
    6470      <input name="start_year" type="text" size="4" maxlength="4" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    65     </span>
    66     <a href="#" onClick="document.search.start_day.value={TODAY_DAY};document.search.start_month.value={TODAY_MONTH};document.search.start_year.value={TODAY_YEAR};">{lang:today}</a>
    67   </label>
    68   <label>{lang:search_date_to}
    69     <span>
     71    </li>
     72    <li>
     73      <a href="#" onClick="document.search.start_day.value={TODAY_DAY};document.search.start_month.value={TODAY_MONTH};document.search.start_year.value={TODAY_YEAR};">{lang:today}</a>
     74    </li>
     75  </ul>
     76  <ul>
     77    <li><label>{lang:search_date_to}</label></li>
     78    <li>
    7079      <select name="end_day">
    7180        <!-- BEGIN end_day -->
     
    7988      </select>
    8089      <input name="end_year" type="text" size="4" maxlength="4" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    81     </span>
    82     <a href="#" onClick="document.search.end_day.value={TODAY_DAY};document.search.end_month.value={TODAY_MONTH};document.search.end_year.value={TODAY_YEAR};">{lang:today}</a>
    83   </label>
     90    </li>
     91    <li>
     92      <a href="#" onClick="document.search.end_day.value={TODAY_DAY};document.search.end_month.value={TODAY_MONTH};document.search.end_year.value={TODAY_YEAR};">{lang:today}</a>
     93    </li>
     94  </ul>
    8495</fieldset>
    8596
     
    93104    </select>
    94105  </label>
    95   <label>{lang:search_subcats_included}
    96     <span>
    97     <input type="radio" name="subcats-included" value="1" checked="checked" />{lang:yes}
    98     </span>
    99     <span>
    100     <input type="radio" name="subcats-included" value="0" />{lang:no}
    101     </span>
    102   </label>
    103   <label>{lang:search_sort}
    104     <span><input type="radio" name="sd" value="AND" />{lang:search_ascending}</span>
    105     <span><input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending}</span>
    106   </label>
     106  <ul>
     107    <li><label>{lang:search_subcats_included}</label></li>
     108    <li><label>
     109      <input type="radio" name="subcats-included" value="1" checked="checked" />{lang:yes}
     110    </label></li>
     111    <li><label>
     112      <input type="radio" name="subcats-included" value="0" />{lang:no}
     113    </label></li>
     114  </ul>
     115  <ul>
     116    <li><label>{lang:search_sort}</li></label>
     117    <li><label>
     118      <input type="radio" name="sd" value="AND" />{lang:search_ascending}
     119    </li></label>
     120    <li><label>
     121      <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending}
     122    </li></label>
     123  </ul>
    107124</fieldset>
    108125<p>
     
    113130
    114131<script type="text/javascript"><!--
    115 document.post.search_allwords.focus();
     132document.search.search_allwords.focus();
    116133//--></script>
    117134
Note: See TracChangeset for help on using the changeset viewer.