<section class="dashboard-page">
    <div class="container">
        <div class="row">
            <div class="col-sm-3 hidden-xs">
                <% include Dashboard_SideNav %>
            </div>
            <div class="col-sm-9">
                <div class="dashboard-page-content">
                    <% if $RegistrationAlertContent %>
                        <div class="alert alert-bad">
                            <i class="fa fa-warning"></i>
                            {$RegistrationAlertContent}
                            <div class="alert-close">
                                <div class="sr-only">Close alert</div>
                                $SVG('alert-close').Size('16','16')
                            </div>
                        </div>
                    <% end_if %>
                    <article>
                        <h1>Registration Form.</h1>
                        {$RegistrationContent}
                     </article>
                    <div class="table-show-container">
                        <% if $RegistrableShows %>
                            <table class="table-show table-show-simple hidden-xs">
                                <tr>
                                    <th>
                                        Show name
                                    </th>
                                    <th>
                                        Performer name
                                    </th>
                                    <th>
                                        &nbsp;
                                    </th>
                                </tr>
                                <% loop $RegistrableShows %>
                                    <tr>
                                        <td><span class="charcoal">$Title</span></td>
                                        <td>
                                            <% loop $Comedians %><% if $Pos > 1 %>, <% end_if %>$Name<% end_loop %>
                                        </td>
                                        <td class="btn-cell">
                                            <% if $RegistrationRequestID == 0 %>
                                                <a class="btn btn-yellow btn-sm btn-block" href="{$Top.Link('registration_form')}?showID={$ID}">Register Show</a>
                                            <% else %>
                                                <% if $RegistrationRequest.Status == 'Draft' %>
                                                    <a class="btn btn-yellow btn-sm btn-block" href="{$Top.Link('registration_form')}?registrationID={$RegistrationRequestID}">Continue Registration</a>
                                                <% else %>
                                                    <span style="float: left;width: 100%;font-size: 16px;text-align: center;">Registered</span>
                                                <% end_if %>
                                            <% end_if %>
                                        </td>
                                    </tr>
                                <% end_loop %>
                            </table>
                            <table class="table-show table-show-simple visible-xs">
                                <% loop $RegistrableShows %>
                                    <tr>
                                        <td>
                                            <span class="charcoal">$Title</span><br/>
                                            <% loop $Comedians %><% if $Pos > 1 %>, <% end_if %>$Name<% end_loop %><br/>
                                            <% if $RegistrationRequestID == 0 %>
                                                <a class="btn btn-yellow btn-sm btn-block" href="{$Top.Link('registration_form')}?showID={$ID}">Register Show</a>
                                            <% else %>
                                                <% if $RegistrationRequest.Status == 'Draft' %>
                                                    <a class="btn btn-yellow btn-sm btn-block" href="{$Top.Link('registration_form')}?registrationID={$RegistrationRequestID}">Continue Registration</a>
                                                <% else %>
                                                    <span style="float: left;width: 100%;font-size: 16px;text-align: center;">Registered</span>
                                                <% end_if %>
                                            <% end_if %>
                                        </td>
                                    </tr>
                                <% end_loop %>
                            </table>
                        <% else %>
                            <h3>You have nothing to register right now.</h3>
                        <% end_if %>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>