All pastes #799165 Raw Edit

Mine

public text v1 · immutable
#799165 ·published 2007-11-27 11:03 UTC
rendered paste body
wizardista:

%if len(c.users_pictures) > 25:
	
		<div id='wizardRadioButtons' style='float: right;'>
			${h.start_form(h.url_for(controller='calendar', action='new'), method='post')}
			
			${h.hidden_field('default_pics', value='0')}
			
			${h.radio_button('startingpoint', value='0')}
			<label for="startingpoint">${(_(u'From Own'))}</label><br />
					
			${h.radio_button('startingpoint', value='1', checked=True )}
			<label for="startingpoint">${(_(u'From Public And Own'))}</label>
			
		<br />
		<br />
		<div id='NewSubmit'>
		   	${h.submit(_(u'Create Random Calendar'), class_='smallBtn')}
		</div>
		</div>

		${h.end_form()}

	%else:
		<div class='wizardButton'>
		${h.link_to(_(u'Create Random Calendar'), h.url_for(controller='calendar', action='new', default_pics='0', startingpoint=1), class_='smallBtn')}	 
		</div>
	%endif

muokkauksesta:

%if len(c.users_pictures) > 25:
		
			${h.start_form(h.url_for(controller='calendar', action='randomize_calendar_pictures', id=c.calendar.id), method='post')}
		<div class='objectEditPanelGroup'>
			
			<div id='newSubmit'>
				<input class="smallBtn" name="commit" onclick="return confirm('${(_(u'Are you sure you want to reselect all the calendar pictures? Action cannot be undone.'))}');" type="submit" value="${(_(u'Randomize all pictures'))}" />
			</div>
			
			<div id='wizardRadioButtons'>
	
			${h.hidden_field('default_pics', value='0')}
			${h.hidden_field('calendar_edit', value='1')}
	
			<div id="radiobutton">
			${h.radio_button('startingpoint', value='0')}
			<label for="startingpoint">${(_(u'From Own'))}</label><br />
			</div>
			
			<div id="radiobutton">
			${h.radio_button('startingpoint', value='1')}
			<label for="startingpoint">${(_(u'From Public And Own'))}</label>
			</div>
			</div>	
			
		</div>
			${h.end_form()}

		%else:
			<div class='objectEditPanelGroup'>
			${h.link_to(_(u'Randomize all pictures'), h.url_for(controller='calendar', action='randomize_calendar_pictures', default_pics='0', startingpoint=1), confirm=_(u'Are you sure you want to reselect all the calendar pictures? Action cannot be undone.'), class_='smallBtn')}
			</div>
		%endif