|
|
@@ -458,6 +458,56 @@
|
|
|
<br><button id="kofi-settings_form" class="button button2" type="submit">Save</button><br>
|
|
|
</form>
|
|
|
<br><br>
|
|
|
+ <form id='gb-settings_form' method="POST" action="/mgmt/gbsettings">
|
|
|
+ <table>
|
|
|
+ <h3><img style="height: 25px; width: auto; padding-right: 8px; !important" alt="Give Butter Logo" src="/static/img/givebutter.png"> <u>GiveButter</u></h3>
|
|
|
+
|
|
|
+ <h4> Donations </h4>
|
|
|
+ <thead>
|
|
|
+ <tr style="border-bottom: none;">
|
|
|
+ <th style="width: 20%;"></th>
|
|
|
+ <th></th>
|
|
|
+ <th style="width: 50%;"></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tr>
|
|
|
+ <td> <label for="gb_integration">Enable:</label> </td>
|
|
|
+ {% if gb_settings['integration'] %}
|
|
|
+ <td> <input id="gb_integration" type="checkbox" name="gb_integration" value="{{ gb_settings['integration'] }}" checked> </td>
|
|
|
+ <td>Enable GiveButter integration.</td>
|
|
|
+ {% else %}
|
|
|
+ <td> <input id="gb_integration" type="checkbox" name="gb_integration" value="{{ gb_settings['integration'] }}"> </td>
|
|
|
+ <td>Enable GiveButter integration.</td>
|
|
|
+ {% endif %}
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td> <label for="gb_secret">Signing Secret:</label> </td>
|
|
|
+ <td style="padding: 5px;"> <input id="gb_secret" type="password" name="gb_secret" value="{{ gb_settings['secret'] }}" size="40"> </td>
|
|
|
+ <td>Get this from your GiveButter dashboard. Click on the eye icon (View) next to the webhook you set up for OwnchatBot.</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td> <label for="gb_enable_donations">Enable points for donations:</label> </td>
|
|
|
+ {% if gb_settings['donations'] %}
|
|
|
+ <td> <input id="gb_enable_donations" type="checkbox" name="gb_enable_donations" value="{{ gb_settings['donations'] }}" checked> </td>
|
|
|
+ {% else %}
|
|
|
+ <td> <input id="gb_enable_donations" type="checkbox" name="gb_enable_donations" value="{{ gb_settings['donations'] }}"> </td>
|
|
|
+ {% endif %}
|
|
|
+ <td>Enable awarding points for donations</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td> <label for="gb_donation_points">Points per dollar:</label> </td>
|
|
|
+ <td> <input id="gb_donation_points" type="number" name="gb_donation_points" value="{{ gb_settings['donation_points'] }}" size="5" required> points</td>
|
|
|
+ <td>How many points should viewers recieve, for every dollar they donate?</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td> <label for="gb_url">GiveButter URL:</label> </td>
|
|
|
+ <td style="padding: 5px;"> <input id="gb_url" type="text" name="gb_url" value="{{ gb_settings['gb_url'] }}" size="30"> </td>
|
|
|
+ <td>What is your GiveButter URL?</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <br><button id="gb-settings_form" class="button button2" type="submit">Save</button><br>
|
|
|
+ </form>
|
|
|
+ <br><br>
|
|
|
</body>
|
|
|
</div>
|
|
|
|