Changeset 4484
- Timestamp:
- 10/13/08 12:44:29 (1 month ago)
- Files:
-
- clientsplugin/0.11/clients/action_email.py (modified) (1 diff)
- clientsplugin/0.11/clients/templates/admin_client_events.html (modified) (1 diff)
- clientsplugin/0.11/clients/templates/admin_clients.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
clientsplugin/0.11/clients/action_email.py
r4481 r4484 33 33 def options(self, client=None): 34 34 if client is None: 35 yield {'name': 'XSLT', 'description': 'Formatting XSLT to convert the summary to an email' }35 yield {'name': 'XSLT', 'description': 'Formatting XSLT to convert the summary to an email', 'type': 'large'} 36 36 else: 37 yield {'name': 'Email Addresses', 'description': 'Comma separated list of email addresses' }37 yield {'name': 'Email Addresses', 'description': 'Comma separated list of email addresses', 'type': 'medium'} 38 38 39 39 clientsplugin/0.11/clients/templates/admin_client_events.html
r4445 r4484 37 37 <div py:for="option in options.values()" class="field"> 38 38 <label>$option.name</label><br /> 39 <!-- Todo: Support more modes other than textarea... --> 40 <textarea name="${field}-option-${option.md5}" rows="10" cols="100">$option.value</textarea> 39 <py:choose test="option.type"> 40 <textarea py:when="'large'" name="${field}-option-${option.md5}" rows="10" cols="70">$option.value</textarea> 41 <input py:when="'small'" name="${field}-option-${option.md5}" type="text" size="5" value="$option.value" /> 42 <input py:otherwise="" name="${field}-option-${option.md5}" type="text" size="60" value="$option.value" /> 43 </py:choose> 41 44 <p class="help">$option.description</p> 42 45 </div> clientsplugin/0.11/clients/templates/admin_clients.html
r4449 r4484 58 58 <label>$option.name</label><br /> 59 59 <!-- Todo: Support more modes other than intput type=text... --> 60 <input type="text" name="${field}-option-${event.md5}-${option.md5}" size="60" value="$option.value"/> 60 <py:choose test="option.type"> 61 <textarea py:when="'large'" name="${field}-option-${event.md5}-${option.md5}" rows="10" cols="70">$option.value</textarea> 62 <input py:when="'small'" name="${field}-option-${event.md5}-${option.md5}" type="text" size="5" value="$option.value" /> 63 <input py:otherwise="" name="${field}-option-${event.md5}-${option.md5}" type="text" size="60" value="$option.value" /> 64 </py:choose> 61 65 <p class="help">$option.description</p> 62 66 </div>
