Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove misplaced form tag #3115

Merged
merged 2 commits into from
Nov 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 48 additions & 49 deletions custom/panel_templates/Default/integrations/discord/discord.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,56 +39,55 @@
<!-- Success and Error Alerts -->
{include file='includes/alerts.tpl'}

<h4>{$REQUIREMENTS}</h4>
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr>
<td>{$BOT_SETUP}</td>
<td class="text-right">{if $BOT_URL_SET && $GUILD_ID_SET &&
$BOT_USERNAME_SET}
<i class="fas fa-check-circle text-success"></i>
{else}
<i class="fas fa-times-circle text-danger"></i>
{/if}
</td>
</tr>
</tbody>
</table>
</div>
<hr>

<form id="settings" action="" method="post">
<div class="form-group custom-control custom-switch">
<input id="inputEnableDiscord" name="enable_discord" type="checkbox"
class="custom-control-input" value="1" {if $DISCORD_ENABLED eq 1}
checked{/if} />
<label for="inputEnableDiscord" class="custom-control-label">
{$ENABLE_DISCORD_INTEGRATION}
</label>
</div>
<div class="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" value="{$SUBMIT}" class="btn btn-primary" {if !$BOT_URL_SET
|| !$GUILD_ID_SET} disabled {/if}>
</div>
</form>

<hr>
<form action="" method="POST">
samerton marked this conversation as resolved.
Show resolved Hide resolved
<h4>{$REQUIREMENTS}</h4>
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr>
<td>{$BOT_SETUP}</td>
<td class="text-right">{if $BOT_URL_SET && $GUILD_ID_SET &&
$BOT_USERNAME_SET}
<i class="fas fa-check-circle text-success"></i>
{else}
<i class="fas fa-times-circle text-danger"></i>
{/if}
</td>
</tr>
</tbody>
</table>
<div class="form-group">
<label for="inputDiscordId">{$DISCORD_GUILD_ID} <span class="badge badge-info"
data-toggle="popover" data-title="{$INFO}"
data-content="{$ID_INFO|escape}"><i class="fa fa-question"></i></label>
<input class="form-control" type="number" name="discord_guild_id"
id="inputDiscordId" value="{$DISCORD_GUILD_ID_VALUE}">
</div>
<div type="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" class="btn btn-primary" value="{$SUBMIT}">
</div>
<hr>

<form id="settings" action="" method="post">
<div class="form-group custom-control custom-switch">
<input id="inputEnableDiscord" name="enable_discord" type="checkbox"
class="custom-control-input" value="1" {if $DISCORD_ENABLED eq 1}
checked{/if} />
<label for="inputEnableDiscord" class="custom-control-label">
{$ENABLE_DISCORD_INTEGRATION}
</label>
</div>
<div class="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" value="{$SUBMIT}" class="btn btn-primary" {if !$BOT_URL_SET
|| !$GUILD_ID_SET} disabled {/if}>
</div>
</form>

<hr>
<form action="" method="POST">
<div class="form-group">
<label for="inputDiscordId">{$DISCORD_GUILD_ID} <span class="badge badge-info"
data-toggle="popover" data-title="{$INFO}"
data-content="{$ID_INFO|escape}"><i class="fa fa-question"></i></label>
<input class="form-control" type="number" name="discord_guild_id"
id="inputDiscordId" value="{$DISCORD_GUILD_ID_VALUE}">
</div>
<div type="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" class="btn btn-primary" value="{$SUBMIT}">
</div>
</form>
</form>

</div>
</div>
Expand All @@ -114,4 +113,4 @@

</body>

</html>
</html>