Changeset 5253
- Timestamp:
- Feb 12, 2009, 1:17:26 PM (15 years ago)
- Location:
- customfieldadminplugin/0.11/customfieldadmin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
customfieldadminplugin/0.11/customfieldadmin/htdocs/js/customfieldadmin.js
r5252 r5253 13 13 break; 14 14 case 1: // select 15 label('#options , #cols, #rows').show();16 label('# format').hide();15 label('#options').show(); 16 label('#cols, #rows, #format').hide(); 17 17 break; 18 18 case 2: // checkbox 19 label('#options, #cols, #rows').hide(); 20 label('#format').hide(); 19 label('#options, #cols, #rows, #format').hide(); 21 20 break; 22 21 case 3: // radio -
customfieldadminplugin/0.11/customfieldadmin/templates/customfieldadmin.html
r5252 r5253 26 26 <label>Type:<br /> 27 27 <select name="type" id="type"> 28 <option value="text" selected="${cfadmin.customfield.type=='text' and 'selected' or None}"> 29 Text</option> 30 <option value="select" selected="${cfadmin.customfield.type=='select' and 'selected' or None}"> 31 Select</option> 32 <option value="checkbox" selected="${cfadmin.customfield.type=='checkbox' and 'selected' or None}"> 33 Checkbox</option> 34 <option value="radio" selected="${cfadmin.customfield.type=='radio' and 'selected' or None}"> 35 Radio</option> 36 <option value="textarea" selected="${cfadmin.customfield.type=='textarea' and 'selected' or None}"> 37 Textarea</option> 28 <option py:for="value in ['text', 'select', 'checkbox', 'radio', 'textarea']" 29 value="${value}" selected="${cfadmin.customfield.type==value and 'selected' or None}"> 30 ${value.capitalize()}</option> 38 31 </select> 39 32 </label>
Note: See TracChangeset
for help on using the changeset viewer.