- Timestamp:
- 07/05/10 12:56:53 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/loreality/loreality/templates/component/campaign.html
r2100 r2104 23 23 </%def> 24 24 25 <%def name="add_pilot(mission_id )">25 <%def name="add_pilot(mission_id, available_pilots)"> 26 26 % if h.auth.authorized(h.auth.is_creator): 27 27 ${h.form(h.url_for(controller='mission', action='addpilot', id=mission_id))} 28 28 <fieldset><legend>Add a new pilot</legend> 29 29 30 <label for="name_${name}">Name</label><br /> 31 ${h.text(name='name_pilot')} 32 ${h.submit(name="action", value='process')} 30 ${h.select( 31 "Pilot", 32 id='pilotid', 33 selected_values=[], 34 options=available_pilots, 35 )} 36 ${h.submit(name="action", value='Add')} 33 37 </fieldset> 34 38 ${h.end_form()} 35 39 %endif 36 40 </%def> 41 <%def name="add_pilot_to_squadron(squadron_id, available_pilots)"> 42 % if h.auth.authorized(h.auth.is_creator): 43 ${h.form(h.url_for(controller='squadron', action='addpilot', id=squadron_id))} 44 <fieldset><legend>Add a new pilot</legend> 45 46 ${h.select( 47 "Pilot", 48 id='pilotid', 49 selected_values=[], 50 options=available_pilots, 51 )} 52 ${h.submit(name="action", value='Add')} 53 </fieldset> 54 ${h.end_form()} 55 %endif 56 </%def>
Note: See TracChangeset
for help on using the changeset viewer.
