Jump to content

Recommended Posts

Posted

I have two sub airlines that I would prefer not to show up on the registration page. Is there a way to not have them show up when a pilot registers and have all pilots assigned to the main airline? I searched and was not successful finding what I'm looking for.

Thanks in advance for you help!

  • Members
Posted

in core/templates/registration_mainform.tpl around line 31 is this pice of code

<dt>Select Airline: *</dt>
<dd>
<select name="code" id="code">
<?php
foreach($allairlines as $airline)
{
echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>';
}
?>
</select>
</dd>

you can alter it to


<dd>
<input type="hidden" name="code" value="InsertYour3letterVaCOde" />
</dd>

By this the input box will be hidden and the value will be always the same

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...