Show
Ignore:
Timestamp:
04/30/08 13:35:20 (23 months ago)
Author:
JensDiemer
Message:

Experimental new Preferences!

  • New editor used the newforms models in the plugin class
  • Doesn't realy use the preferences (in search and find_and_replace) only display it
  • the system_settings doesn't used, too. Only for display the data.
  • Not ready in all cases
  • there can exist some print debug!
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/media/PyLucid/internal_page/preferences/edit_form.html

    r1540 r1544  
    1 <fieldset><legend>{{ plugin_name }} - {{ pref_name }}</legend> 
    2 <p>{{ description }}</p> 
     1<fieldset><legend>{{ plugin_name }}</legend> 
    32<form method="post" action="."> 
    4 {{ form.as_p }} 
     3<ul id="input_fields"> 
     4    {% for field in form %} 
     5        <li title="{{ field.help_text }}" class="{{ field.html_name }}"> 
     6        <label for="{{ field.auto_id }}">{{ field.label }} :</label> 
     7        {{ field }} 
     8        <span class="field_help_text">{{ field.help_text }}</span> 
     9        {% if field.errors %}<li class="field_errors">{{ field.errors }}</li>{% endif %} 
     10    </li> 
     11    {% endfor %} 
     12</ul> 
    513<input type="submit" name="save" value="{% trans 'save' %}" /> 
    6 <input type="submit" name="validate" value="{% trans 'validate' %}" /> 
    714<input onclick="self.location.href='{{ url_abort }}'" name="abort" value="{% trans 'abort' %}" type="reset" /> 
    815</form> 
    9 <p><strong>Note:</strong><br /> 
    10 {% blocktrans %} 
    11 Validate checks only, if the input is a valid Python expression string.<br /> 
    12 It not examined if the data are logically correct. 
    13 {% endblocktrans %} 
    14 </p> 
    1516</fieldset>