Skip to content
Snippets Groups Projects
susignup-admin.tpl 2.16 KiB
Newer Older
Thomas Lake's avatar
Thomas Lake committed
{if $staff == TRUE}
 {if $mode == 'error'}
	<div class='errorbar'>
		<strong>Error: </strong> {$error_text}
	</div>
 {/if}
 {if $mode == 'renew'}
	<div class='errorbar'>
		<strong>Error: </strong> Not implemented yet
	</div>
 {elseif $mode == 'renewals'}
	<div class='errorbar'>
		<strong>Error: </strong> Not implemented yet
	</div>
 {elseif $mode == 'search'}
<div style='text-align: center'>
 <div class='cbb' style='text-align: left'>
	Student {$sid} appears to have paid, and a signup slip has been generated.<br />
	The details are:<br />
	<strong>Slip ID: </strong> {$slipid}<br />
	<strong>Slip Password: </strong> {$slippass} <br />
	<form action="https://sucs.org/signup/" method="post">
		<input type=hidden name="signupid" id="id" value="{$slipid}" />
		<input type=hidden name="signuppw" id="pass" value="{$slippass}" />
		<input type=submit name="submit" value="Proceed" />
	</form>
 </div>
</div>
 {elseif $mode == 'menu' || $mode == 'error'} 
	<p>
This component allows staff members to sort out memberships and renewals that have been paid for via the SU payments system. </p>
<p>Renew an individual member, generate a list of members that look like they've paid via the SU system or begin the signup process for a newbie who doesn't have their transaction ID by selecting the appropriate option below.
	</p>
<div style='text-align: center'>
<div class='susignup-admin-menu cbb'>
<h3>Renew existing account:</h3>
Username selector
Submit Button
</div>
<div class='susignup-admin-menu cbb'> 
<h3>Suggest probable renewals</h3>
Submit Button
</div>
<div class='susignup-admin-menu cbb'>
<h3>Signup a newbie</h3>
<form action='{$componentpath}' method='post'>
	<label for='sid'>Student Number:</label>
	<input type='text' name='sid' id='sid' maxlength=6 /> 
	<input type='hidden' name='mode' id='mode' value="search" />
	<input type='submit' name='snsubmit' id='snsubmit' value="Start" />
</form>
</div>
</div>
 {else}
	<div class="errorbar">
		Invalid mode - {$mode}
	</div>
 {/if}
{else}
        <div class="errorbar">
                <div><div><div>
                        You must be logged in and be a staff member to use this component;
                </div></div></div>
        </div>
{/if}