Changeset 924 for trunk/template/yoga


Ignore:
Timestamp:
Nov 7, 2005, 11:54:49 PM (19 years ago)
Author:
plg
Message:
  • improvement: use a "filter" form for adding user comments.
Location:
trunk/template/yoga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/default-layout.css

    r919 r924  
    145145}
    146146
    147 FORM.filter FIELDSET LABEL INPUT, FORM.filter FIELDSET LABEL SELECT {
     147FORM.filter FIELDSET LABEL INPUT,
     148FORM.filter FIELDSET LABEL SELECT,
     149FORM.filter FIELDSET LABEL TEXTAREA {
    148150  display: block;
    149151  margin: 0.5em 0;
    150152}
    151153
    152 FORM.filter FIELDSET P, FORM.filter FIELDSET INPUT {
     154FORM.filter FIELDSET P,
     155FORM.filter FIELDSET INPUT,
     156FORM.filter FIELDSET TEXTAREA {
    153157  clear: left;
    154158  display: block;
     
    248252  display: none;
    249253}
     254
     255FORM#addComment FIELDSET LABEL {
     256  clear: both;
     257}
     258
     259FORM#addComment FIELDSET INPUT[type="hidden"] {
     260  display: none;
     261}
  • trunk/template/yoga/picture.tpl

    r888 r924  
    175175
    176176<!-- BEGIN add_comment -->
    177 <h2>{L_ADD_COMMENT}</h2>
    178 <form  method="post" action="{U_ADD_COMMENT}">
    179   <!-- BEGIN author_field -->
    180 <p><label>{L_AUTHOR}:<input type="text" name="author"></label>
    181   <!-- END author_field -->
    182   <!-- BEGIN author_known -->
    183   <input type="hidden" name="author"  value="{comments.add_comment.author_known.KNOWN_AUTHOR}">
    184   <!-- END author_known -->
    185 <p><label>{L_COMMENT}:
    186 <textarea name="content" rows="7" style="width:100%;"></textarea></label>
    187 <p><input type="submit" value="{L_SUBMIT}">
     177<form  method="post" action="{U_ADD_COMMENT}" class="filter" id="addComment">
     178  <fieldset>
     179    <legend>{L_ADD_COMMENT}</legend>
     180
     181    <!-- BEGIN author_field -->
     182    <label>{L_AUTHOR}<input type="text" name="author"></label>
     183    <!-- END author_field -->
     184
     185    <!-- BEGIN author_known -->
     186    <input type="hidden" name="author"  value="{comments.add_comment.author_known.KNOWN_AUTHOR}">
     187    <!-- END author_known -->
     188
     189    <label>{L_COMMENT}<textarea name="content" rows="10" cols="80"></textarea></label>
     190
     191    <input type="submit" value="{L_SUBMIT}">
     192  </fieldset>
    188193</form>
    189        <!-- END add_comment -->
     194<!-- END add_comment -->
    190195<!-- END comments -->
    191196
Note: See TracChangeset for help on using the changeset viewer.