generated from League-of-Foundry-Developers/FoundryVTT-Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
171cdb7
commit 4a2323b
Showing
3 changed files
with
67 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,62 @@ | ||
<form autocomplete="off"> | ||
<div> | ||
{{#unless valid_config}} | ||
<h2>Installation Instructions</h2> | ||
<ol> | ||
<li>Invite the <a | ||
href="https://discord.com/api/oauth2/authorize?client_id=1064553830810923048&permissions=18547851095248&scope=bot"> | ||
{{localize "oronder.Discord-Bot-Link-Title"}}</a> to your Discord. | ||
</li> | ||
<li>Subscribe to the <a href="https://discord.gg/27npDAXaCA\"> | ||
{{localize "oronder.Discord-Server-Link-Title"}} | ||
</a> to gain access to advanced features. | ||
</li> | ||
<li>From your Discord, run "<code>/admin init</code>"</li> | ||
<li>Copy your Discord server id, and the generated token into the fields below.</li> | ||
<li>Clicking "<code>Fetch Discord User Ids</code>" will populate Discord user ids for players whose Discord name | ||
matches their Foundry | ||
name. For everyone else, you will need to manually add their user id. | ||
</li> | ||
</ol> | ||
<hr> | ||
{{/unless}} | ||
<div> | ||
{{#unless valid_config}} | ||
<h2>Installation Instructions</h2> | ||
<ol> | ||
<li>Invite the <a | ||
href="https://discord.com/api/oauth2/authorize?client_id=1064553830810923048&permissions=18547851095248&scope=bot"> | ||
{{localize "oronder.Discord-Bot-Link-Title"}}</a> to your Discord. | ||
</li> | ||
<li>Subscribe to the <a href="https://discord.gg/27npDAXaCA\"> | ||
{{localize "oronder.Discord-Server-Link-Title"}} | ||
</a> to gain access to advanced features. | ||
</li> | ||
<li>From your Discord, run "<code>/admin init</code>"</li> | ||
<li>Copy your Discord server id, and the generated token into the fields below.</li> | ||
<li>Clicking "<code>Fetch Discord User Ids</code>" will populate Discord user ids for players whose | ||
Discord name | ||
matches their Foundry | ||
name. For everyone else, you will need to manually add their user id. | ||
</li> | ||
</ol> | ||
<hr> | ||
{{/unless}} | ||
|
||
</div> | ||
<div class="form-group"> | ||
<label for="guild_id">{{localize "oronder.Discord-Server-Id"}}</label> | ||
<input type="text" name="guild_id" value="{{guild_id}}" required inputmode="numeric"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="auth">{{localize "oronder.Auth-Token"}}</label> | ||
<input type="password" name="auth" value="{{auth}}" required> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<button type="button" class='control' data-action='fetch' style="{{button_style}}"> | ||
<i class="{{fetch_button_icon}}"></i> {{fetch_button_msg}} | ||
</button> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="guild_id">{{localize "oronder.Discord-Server-Id"}}</label> | ||
<input type="text" name="guild_id" value="{{guild_id}}" required inputmode="numeric"> | ||
</div> | ||
|
||
{{#if players}} | ||
<hr> | ||
<h3 class="border">{{localize "oronder.Discord-Ids"}}</h3> | ||
{{/if}} | ||
<div class="form-group"> | ||
<label for="auth">{{localize "oronder.Auth-Token"}}</label> | ||
<input type="password" name="auth" value="{{auth}}" required> | ||
</div> | ||
|
||
{{#each players}} | ||
<div class="form-group"> | ||
<label for="{{this.foundry_id}}">{{this.foundry_name}}</label> | ||
<input type="text" name="{{this.foundry_id}}" inputmode="numeric" value="{{this.discord_id}}"> | ||
<button type="button" class='control' data-action='fetch' style="{{button_style}}"> | ||
<i class="{{fetch_button_icon}}"></i> {{fetch_button_msg}} | ||
</button> | ||
<button type="button" class='control' data-action='sync-all' style="{{button_style}}"> | ||
<i class="{{full_sync_button_icon}}"></i> {{full_sync_button_msg}} | ||
</button> | ||
</div> | ||
{{/each}} | ||
|
||
<hr> | ||
<button type="submit"> | ||
<i class="far fa-save"></i> {{ localize "Save Changes" }} | ||
</button> | ||
{{#if players}} | ||
<hr> | ||
<h3 class="border">{{localize "oronder.Discord-Ids"}}</h3> | ||
{{/if}} | ||
|
||
{{#each players}} | ||
<div class="form-group"> | ||
<label for="{{this.foundry_id}}">{{this.foundry_name}}</label> | ||
<input type="text" name="{{this.foundry_id}}" inputmode="numeric" value="{{this.discord_id}}"> | ||
</div> | ||
{{/each}} | ||
|
||
<hr> | ||
<button type="submit"> | ||
<i class="far fa-save"></i> {{ localize "Save Changes" }} | ||
</button> | ||
|
||
</form> |