<form target="_blank" method="post" action="{service controller=bigbluebutton action=join}">
	<div style="overflow: hidden; width: 78px; float: left;">
		<input type="hidden" name="params" value="{$bbb_params|escape}"/>
		<input type="image" name="join" src="{$bbb_image|escape}" title="{tr}Join{/tr}"/>
	</div>

	{tr}Meeting ID:{/tr} {$bbb_meeting|escape}
	
	{permission type=bigbluebutton object=$bbb_meeting name=tiki_p_assign_perm_bigbluebutton}
		{button href="tiki-objectpermissions.php?objectId=`$bbb_meeting|escape:'url'`&amp;objectName=`$bbb_meeting|escape:'url'`&amp;objectType=bigbluebutton&amp;permType=bigbluebutton" _text="{tr}Permissions{/tr}"}
	{/permission}

	{if ! $user}
		<div>
			{tr}Name:{/tr} 
			<input type="text" name="bbb_name"/>
			<input type="submit" value="{tr}Join{/tr}"/>
		</div>
	{else}
		<div>
			<input type="submit" class="button" value="{tr}Join{/tr}"/>
		</div>
	{/if}

	<div class="clear"></div>

	{if $bbb_attendees}
		<div>
			<p>{tr}Current attendees:{/tr}</p>
			<ol>
				{foreach from=$bbb_attendees item=att}
					<li>{$att.fullName|escape} ({$att.role|escape})</li>
				{/foreach}
			</ol>
		</div>
	{else}
		<p>{tr}No attendees at this time.{/tr}</p>
	{/if}

	{include file="wiki-plugins/wikiplugin_bigbluebutton_view_recordings.tpl"}

</form>
