|
|
@@ -21,7 +21,7 @@
|
|
|
<button class="tablinks" data-tab="kofi-settings" onclick="openTab(event, 'kofi-settings')">Kofi Settings</button>
|
|
|
{% endif %}
|
|
|
</div>
|
|
|
- <img src="/static/img/ownchatbotwide.png">
|
|
|
+ <img alt="Ownchat Bot logo, whimsical robot" src="/static/img/ownchatbotwide.png">
|
|
|
</div>
|
|
|
|
|
|
<div id='managerewards' class="tabcontent">
|
|
|
@@ -77,7 +77,7 @@
|
|
|
</table>
|
|
|
<br>
|
|
|
{% if rewards %}
|
|
|
- Rewards in <span style="color: red !important;">red</span> are inactive. To activate a reward, add it to an active category.
|
|
|
+ Rewards in <span style="color: #ee6677 !important;">red</span> are inactive. To activate a reward, add it to an active category.
|
|
|
<table>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
@@ -95,7 +95,7 @@
|
|
|
{% if reward in active_rewards %}
|
|
|
<tr>
|
|
|
{% else %}
|
|
|
- <tr style="color: red;">
|
|
|
+ <tr style="color: #ee6677;">
|
|
|
{% endif %}
|
|
|
<td>{{ prefix }}{{ reward }}</td>
|
|
|
<td>{{ reward_info["price"] }}</td>
|
|
|
@@ -108,8 +108,8 @@
|
|
|
{% endif %}
|
|
|
<td>{{ reward_info["categories"] | join(', ') }}</td>
|
|
|
<td>
|
|
|
- <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: green;">Edit</span></button></a> 
|
|
|
- <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Delete</span></button></a>
|
|
|
+ <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ccbb44;">Edit</span></button></a> 
|
|
|
+ <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Delete</span></button></a>
|
|
|
{% endif %}
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
@@ -133,15 +133,15 @@
|
|
|
{% if reward in active_rewards %}
|
|
|
<tr>
|
|
|
{% else %}
|
|
|
- <tr style="color: red;">
|
|
|
+ <tr style="color: #ee6677;">
|
|
|
{% endif %}
|
|
|
<td>{{ prefix }}{{ reward }}</td>
|
|
|
<td>{{ reward_info["target"] }}</td>
|
|
|
<td>{{ reward_info["info"] }}</td>
|
|
|
<td>{{ reward_info["categories"] | join(', ') }}</td>
|
|
|
<td>
|
|
|
- <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: green;">Edit</span></button></a> 
|
|
|
- <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Delete</span></button></a> 
|
|
|
+ <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Edit</span></button></a> 
|
|
|
+ <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ccbb44;">Delete</span></button></a> 
|
|
|
<a href="{{ url_for('web_panels.reset', reward_name=reward, reward_type=reward_info["type"]) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: orange;">Reset</span></button></a>
|
|
|
{% endif %}
|
|
|
</tr>
|
|
|
@@ -166,15 +166,15 @@
|
|
|
{% if reward in active_rewards %}
|
|
|
<tr>
|
|
|
{% else %}
|
|
|
- <tr style="color: red;">
|
|
|
+ <tr style="color: #ee6677;">
|
|
|
{% endif %}
|
|
|
<td>{{ prefix }}{{ reward }}</td>
|
|
|
<td>{{ reward_info["price"] }}</td>
|
|
|
<td>{{ reward_info["info"] }}</td>
|
|
|
<td>{{ reward_info["categories"] | join(', ') }}</td>
|
|
|
<td>
|
|
|
- <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: green;">Edit</span></button></a> 
|
|
|
- <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Delete</span></button></a> 
|
|
|
+ <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Edit</span></button></a> 
|
|
|
+ <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Delete</span></button></a> 
|
|
|
<a href="{{ url_for('web_panels.reset', reward_name=reward, reward_type=reward_info["type"]) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: orange;">Reset</span></button></a>
|
|
|
{% endif %}
|
|
|
</tr>
|
|
|
@@ -204,7 +204,7 @@
|
|
|
{% for user in users %}
|
|
|
<tr>
|
|
|
{% if not user[1] %}
|
|
|
- <td style="color: green;"> Temporary Account </td>
|
|
|
+ <td style="color: #ee6677;"> Temporary Account </td>
|
|
|
{% else %}
|
|
|
<td> {{ user[1] }} </td>
|
|
|
{% endif %}
|
|
|
@@ -213,7 +213,7 @@
|
|
|
<td>{{ user[2] }} {{ points_label }}</td>
|
|
|
{% if user[4] %}
|
|
|
{% if not user[1] %}
|
|
|
- <td style="color: green;">{{ user[4] }}</td>
|
|
|
+ <td style="color: #ee6677;">{{ user[4] }}</td>
|
|
|
{% else %}
|
|
|
<td>{{ user[4] }}</td>
|
|
|
{% endif %}
|
|
|
@@ -250,12 +250,12 @@
|
|
|
<tr>
|
|
|
<td>
|
|
|
{% for cat in active_categories %}
|
|
|
- {{ cat }} - <a href="/mgmt/deactivate/{{ cat }}"><span style="color: green;">Deactivate</span></a> <a href="/mgmt/delcat/{{ cat }}/active"><span style="color: red;">Delete</span></a><br>
|
|
|
+ {{ cat }} - <a href="/mgmt/deactivate/{{ cat }}"><span style="color: orange;">Deactivate</span></a> <a href="/mgmt/delcat/{{ cat }}/active"><span style="color: gray;">Delete</span></a><br>
|
|
|
{% endfor %}
|
|
|
</td>
|
|
|
<td>
|
|
|
{% for cat in inactive_categories %}
|
|
|
- {{ cat }} - <a href="/mgmt/activate/{{ cat }}"><span style="color: green;">Activate</span></a> <a href="/mgmt/delcat/{{ cat }}/inactive"><span style="color: red;">Delete</span></a><br>
|
|
|
+ {{ cat }} - <a href="/mgmt/activate/{{ cat }}"><span style="color: #ee6677;">Activate</span></a> <a href="/mgmt/delcat/{{ cat }}/inactive"><span style="color: gray;">Delete</span></a><br>
|
|
|
{% endfor %}
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -267,7 +267,7 @@
|
|
|
|
|
|
<div id='announcements' class="tabcontent">
|
|
|
<body>
|
|
|
- <form method="POST" action="/mgmt/announcements">
|
|
|
+ <form id="announcements form" method="POST" action="/mgmt/announcements">
|
|
|
<table>
|
|
|
<h3>Manage Announcements</h3>
|
|
|
<table>
|
|
|
@@ -281,26 +281,26 @@
|
|
|
<tr>
|
|
|
<td> <label for="announce_enable">Enable:</label> </td>
|
|
|
{% if settings_info[8] %}
|
|
|
- <td> <input type="checkbox" name="announce_enable" value="{{ settings_info[8] }}" checked> </td>
|
|
|
+ <td> <input id="announce_enable" type="checkbox" name="announce_enable" value="{{ settings_info[8] }}" checked> </td>
|
|
|
{% else %}
|
|
|
- <td> <input type="checkbox" name="announce_enable" value="{{ settings_info[8] }}"> </td>
|
|
|
+ <td> <input id="announce_enable" type="checkbox" name="announce_enable" value="{{ settings_info[8] }}"> </td>
|
|
|
{% endif %}
|
|
|
<td>Enable periodic announcements</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="announce_interval">Interval:</label> </td>
|
|
|
- <td> <input type="number" name="announce_interval" value="{{ settings_info[9] }}" size="2" required> minutes</td>
|
|
|
+ <td> <input id="announce_interval" type="number" name="announce_interval" value="{{ settings_info[9] }}" size="2" required> minutes</td>
|
|
|
<td>How long between each announcement?</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="announcements">Announcements:</label> </td>
|
|
|
<td>
|
|
|
- <textarea name="announcements" rows="5" cols="50">{{ announcements | join('\n') }}</textarea>
|
|
|
+ <textarea id="announcements" name="announcements" rows="5" cols="50">{{ announcements | join('\n') }}</textarea>
|
|
|
</td>
|
|
|
<td>Enter your announcements, one per line. May contain html <a href=https://www.w3schools.com/tags/tag_img.asp>IMG tags</a> to display images.</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
- <br><button class="button button2" type="submit">Save Changes</button><br>
|
|
|
+ <br><button id="announcements form" class="button button2" type="submit">Save Changes</button><br>
|
|
|
</form>
|
|
|
<br><br>
|
|
|
</body>
|
|
|
@@ -308,7 +308,7 @@
|
|
|
|
|
|
<div id='settings' class="tabcontent">
|
|
|
<body style="text-align: left;">
|
|
|
- <form method="POST" action="/mgmt/settings">
|
|
|
+ <form id="settings form" method="POST" action="/mgmt/settings">
|
|
|
<table>
|
|
|
<h3>OwnchatBot Settings</h3>
|
|
|
<thead>
|
|
|
@@ -320,22 +320,22 @@
|
|
|
</thead>
|
|
|
<tr>
|
|
|
<td> <label for="points_interval">Points Interval:</label> </td>
|
|
|
- <td> <input type="number" name="points_interval" value="{{ settings_info[1] }}" size="5" required> minutes</td>
|
|
|
+ <td> <input id="points_interval" type="number" name="points_interval" value="{{ settings_info[1] }}" size="5" required> minutes</td>
|
|
|
<td>How often do you want to award your viewers points?</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="points_award">Points Award:</label> </td>
|
|
|
- <td> <input type="number" name="points_award" value="{{ settings_info[2] }}" size="5" required> points</td>
|
|
|
+ <td> <input id="points_award" type="number" name="points_award" value="{{ settings_info[2] }}" size="5" required> points</td>
|
|
|
<td>How many points do you want to award them?</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="prefix">Chat Command Prefix:</label> </td>
|
|
|
- <td> <input type="text" name="prefix" maxlength="1" size="1" value="{{ settings_info[3] }}" required> </td>
|
|
|
+ <td> <input id="prefix" type="text" name="prefix" maxlength="1" size="1" value="{{ settings_info[3] }}" required> </td>
|
|
|
<td>Character that preceeds chat commands, so OwnchatBot knows what to look for.<br>Example: "{{ settings_info[3] }}points"</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td> <label for=ocb_url>External URL:</label> </td>
|
|
|
- <td> <input type="text" name="ocb_url" size="40" value="{{ settings_info[10] }}" required> </td>
|
|
|
+ <td> <label for="ocb_url">External URL:</label> </td>
|
|
|
+ <td> <input id="ocb_url" type="text" name="ocb_url" size="40" value="{{ settings_info[10] }}" required> </td>
|
|
|
<td>What is the external URL of your OwnchatBot?</td>
|
|
|
</tr>
|
|
|
|
|
|
@@ -352,17 +352,17 @@
|
|
|
</thead>
|
|
|
<tr>
|
|
|
<td> <label for="access_id">Access Token Name:</label> </td>
|
|
|
- <td style="padding: 5px;"> <input type="text" name="access_id" value="{{ settings_info[0] }}" size="40"> </td>
|
|
|
+ <td style="padding: 5px;"> <input id="access_id" type="text" name="access_id" value="{{ settings_info[0] }}" size="40"> </td>
|
|
|
<td>Create in Owncast Admin panel. Integrations -> Access Tokens (check all three boxes)</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="access_token">Access Token:</label> </td>
|
|
|
- <td style="padding: 5px;"> <input type="password" name="access_token" value="{{ settings_info[4] }}" size="40"> </td>
|
|
|
+ <td style="padding: 5px;"> <input id="access_tokens" type="password" name="access_token" value="{{ settings_info[4] }}" size="40"> </td>
|
|
|
<td>The token you created above.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="owncast_url">Your Owncast URL:</label> </td>
|
|
|
- <td> <input type="text" name="owncast_url" value="{{ settings_info[5] }}" size="40"> </td>
|
|
|
+ <td> <input type="text" id="owncast_url" name="owncast_url" value="{{ settings_info[5] }}" size="40"> </td>
|
|
|
<td>The external URL of your Owncast instance, with "http://" or "https://".</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
@@ -379,29 +379,29 @@
|
|
|
<tr>
|
|
|
<td> <label for="kofi_integration">Enable:</label> </td>
|
|
|
{% if settings_info[7] %}
|
|
|
- <td> <input type="checkbox" name="kofi_integration" value="{{ settings_info[7] }}" checked> </td>
|
|
|
+ <td> <input id="kofi_integration" type="checkbox" name="kofi_integration" value="{{ settings_info[7] }}" checked> </td>
|
|
|
<td>Enable Ko-fi integration.</td>
|
|
|
{% else %}
|
|
|
- <td> <input type="checkbox" name="kofi_integration" value="{{ settings_info[7] }}"> </td>
|
|
|
+ <td> <input id="kofi_integration" type="checkbox" name="kofi_integration" value="{{ settings_info[7] }}"> </td>
|
|
|
<td>Enable Ko-fi integration. ("Kofi Settings" button will appear in the navigation bar when enabled.)</td>
|
|
|
{% endif %}
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="kofi_token">Verification Token:</label> </td>
|
|
|
- <td style="padding: 5px;"> <input type="password" name="kofi_token" value="{{ settings_info[6] }}" size="40"> </td>
|
|
|
+ <td style="padding: 5px;"> <input id="kofi_token" type="password" name="kofi_token" value="{{ settings_info[6] }}" size="40"> </td>
|
|
|
<td>Get from Kofi -> More -> API -> Webhooks -> Advanced -> Verification Token.</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
|
- <br><button class="button button2" type="submit">Save Changes</button><br>
|
|
|
+ <br><button id="settings form" class="button button2" type="submit">Save Changes</button><br>
|
|
|
</form>
|
|
|
<br><br>
|
|
|
</body>
|
|
|
</div>
|
|
|
|
|
|
- <div id='kofi-settings' class="tabcontent">
|
|
|
+ <div id="kofi-settings" class="tabcontent">
|
|
|
<body style="text-align: left;">
|
|
|
- <form method="POST" action="/mgmt/ksettings">
|
|
|
+ <form id='kofi-settings_form' method="POST" action="/mgmt/ksettings">
|
|
|
<table>
|
|
|
<h3>Kofi Settings</h3>
|
|
|
|
|
|
@@ -416,20 +416,20 @@
|
|
|
<tr>
|
|
|
<td> <label for="enable_donations">Enable points for donations:</label> </td>
|
|
|
{% if kofi_settings['donations'] %}
|
|
|
- <td> <input type="checkbox" name="enable_donations" value="{{ kofi_settings['donations'] }}" checked> </td>
|
|
|
+ <td> <input id="enable_donations" type="checkbox" name="enable_donations" value="{{ kofi_settings['donations'] }}" checked> </td>
|
|
|
{% else %}
|
|
|
- <td> <input type="checkbox" name="enable_donations" value="{{ kofi_settings['donations'] }}"> </td>
|
|
|
+ <td> <input id="enable_donations" type="checkbox" name="enable_donations" value="{{ kofi_settings['donations'] }}"> </td>
|
|
|
{% endif %}
|
|
|
<td>Enable awarding points for donations</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="set_donation_points">Points per dollar:</label> </td>
|
|
|
- <td> <input type="number" name="set_donation_points" value="{{ kofi_settings['donation_points'] }}" size="5" required> points</td>
|
|
|
+ <td> <input id="set_donation_points" type="number" name="set_donation_points" value="{{ kofi_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="kofi_url">Kofi Page:</label> </td>
|
|
|
- <td style="padding: 5px;"> <input type="text" name="kofi_url" value="{{ kofi_settings['kofi_url'] }}" size="30"> </td>
|
|
|
+ <td style="padding: 5px;"> <input id="kofi_url" type="text" name="kofi_url" value="{{ kofi_settings['kofi_url'] }}" size="30"> </td>
|
|
|
<td>What is your Kofi page URL?</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -439,22 +439,22 @@
|
|
|
<tr>
|
|
|
<td> <label for="enable_subs">Enable points for subscriptions:</label> </td>
|
|
|
{% if kofi_settings['subs'] %}
|
|
|
- <td> <input type="checkbox" name="enable_subs" value="{{ kofi_settings['subs'] }}" checked> </td>
|
|
|
+ <td> <input id="enable_subs" type="checkbox" name="enable_subs" value="{{ kofi_settings['subs'] }}" checked> </td>
|
|
|
{% else %}
|
|
|
- <td> <input type="checkbox" name="enable_subs" value="{{ kofi_settings['subs'] }}"> </td>
|
|
|
+ <td> <input id="enable_subs" type="checkbox" name="enable_subs" value="{{ kofi_settings['subs'] }}"> </td>
|
|
|
{% endif %}
|
|
|
<td>Enable awarding points for monthly subscriptions</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td> <label for="sub_points">Points per month:</label> </td>
|
|
|
- <td> <input type="number" name="sub_points" value="{{ kofi_settings['sub_points'] }}" size="6" required> points</td>
|
|
|
+ <td> <input id="sub_points" type="number" name="sub_points" value="{{ kofi_settings['sub_points'] }}" size="6" required> points</td>
|
|
|
<td>How many points should subscribers recieve every month?</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</tr>
|
|
|
</table>
|
|
|
- <br><button class="button button2" type="submit">Save Changes</button><br>
|
|
|
+ <br><button id="kofi-settings_form" class="button button2" type="submit">Save Changes</button><br>
|
|
|
</form>
|
|
|
<br><br>
|
|
|
</body>
|
|
|
@@ -469,7 +469,7 @@
|
|
|
<body onload="focusInput()">
|
|
|
<h1>To-Do List</h1>
|
|
|
<form id="todo-item-form" method="POST" onsubmit="focusInput()" action="/mgmt/addtodoitem">
|
|
|
- <input type="text" id="itemInput" name="item" placeholder="Add a new item">
|
|
|
+ <input type="text" id="itemInput" name="item" aria-label="Add a new item" placeholder="Add a new item">
|
|
|
<button id="todo-item-form" class="button button2" type="submit">Add</button>
|
|
|
</form>
|
|
|
<ul>
|
|
|
@@ -478,18 +478,18 @@
|
|
|
{% if item.crossed == 'no' %}
|
|
|
<li style="text-decoration:none;">
|
|
|
{{ item.name }}
|
|
|
- <a href="{{ url_for('web_panels.cross', item_id=loop.index0) }}">[Cross Off]</a> <a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: red;">[Remove]</span></a>
|
|
|
+ <a href="{{ url_for('web_panels.cross', item_id=loop.index0) }}">[Cross Off]</a> <a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: #ccbb44;">[Remove]</span></a>
|
|
|
</li>
|
|
|
{% else %}
|
|
|
<li> <span style="text-decoration:line-through;">
|
|
|
{{ item.name }}</span>
|
|
|
- <a href="{{ url_for('web_panels.uncross', item_id=loop.index0) }}">[Un-Cross]</a> <a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: red;">[Remove]</span></a>
|
|
|
+ <a href="{{ url_for('web_panels.uncross', item_id=loop.index0) }}">[Un-Cross]</a> <a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: #ccbb44;">[Remove]</span></a>
|
|
|
{% endif %}
|
|
|
{% endfor %}
|
|
|
{% endif %}
|
|
|
</ul>
|
|
|
- <form action="/mgmt/clearlist" method="get" style="display: inline;">
|
|
|
- <button class="button button2" type="submit" class="button">Clear List</button>
|
|
|
+ <form id="clear_list_form" action="/mgmt/clearlist" method="get" style="display: inline;">
|
|
|
+ <button id="clear_list_form" class="button button2" type="submit" class="button">Clear List</button>
|
|
|
</form>
|
|
|
<hr>
|
|
|
<h3>Stream Overlay</h3>
|
|
|
@@ -535,58 +535,58 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tr>
|
|
|
- <form id="nf_upload" action="/mgmt/alertupload/FOLLOWER_ALERT" method="post" enctype="multipart/form-data">
|
|
|
+ <form id="new_follow_image_upload" action="/mgmt/alertupload/FOLLOWER_ALERT" method="post" enctype="multipart/form-data">
|
|
|
<td>New Follower:</td>
|
|
|
{% set follower_alert = alerts_dict["FOLLOWER_ALERT"] %}
|
|
|
{% if follower_alert %}
|
|
|
{% if "webm" in follower_alert %}
|
|
|
<td><video height="100" autoplay loop><source src="{{ url_for('web_panels.assets', asset_name=follower_alert) }}" type="video/webm"></video></td>
|
|
|
{% else %}
|
|
|
- <td><img src="{{ url_for('web_panels.assets', asset_name=follower_alert) }}"></td>
|
|
|
+ <td><img alt="User Configurable Image" src="{{ url_for('web_panels.assets', asset_name=follower_alert) }}"></td>
|
|
|
{% endif %}
|
|
|
{% else %}
|
|
|
<td>Empty</td>
|
|
|
{% endif %}
|
|
|
<td><input type="file" name="FOLLOWER_ALERT" accept=".gif, .jpg, .jpeg, .png, .webm" required></td>
|
|
|
- <td><button id="nf_upload" class="button button2" type="submit">Upload</button>
|
|
|
+ <td><button id="new_follow_image_upload" class="button button2" type="submit">Upload</button>
|
|
|
</form> 
|
|
|
- <a href="{{ url_for('web_panels.del_alert', alert_type='FOLLOWER_ALERT') }}"><button class="button button2" onclick="openTab(event, 'alerts')"><span style="color: red;">Clear</span></button></a></td>
|
|
|
+ <a href="{{ url_for('web_panels.del_alert', alert_type='FOLLOWER_ALERT') }}"><button id="new_follow_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: #ccbb44;">Clear</span></button></a></td>
|
|
|
<td>{{ settings_info[10] }}/alert/follower</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <form id="nms_upload" action="/mgmt/alertupload/MILESTONE_ALERT" method="post" enctype="multipart/form-data">
|
|
|
+ <form id="new_milestone_image_upload" action="/mgmt/alertupload/MILESTONE_ALERT" method="post" enctype="multipart/form-data">
|
|
|
<td>Milestone Reached:</td>
|
|
|
{% set milestone_alert = alerts_dict["MILESTONE_ALERT"] %}
|
|
|
{% if milestone_alert %}
|
|
|
{% if "webm" in milestone_alert %}
|
|
|
<td><video height="100" autoplay loop><source src="{{ url_for('web_panels.assets', asset_name=milestone_alert) }}" type="video/webm"></video></td>
|
|
|
{% else %}
|
|
|
- <td><img src="{{ url_for('web_panels.assets', asset_name=milestone_alert) }}"></td>
|
|
|
+ <td><img alt="User Configurable Image" src="{{ url_for('web_panels.assets', asset_name=milestone_alert) }}"></td>
|
|
|
{% endif %}
|
|
|
{% else %}
|
|
|
<td>Empty</td>
|
|
|
{% endif %}
|
|
|
<td><input type="file" name="MILESTONE_ALERT" accept=".gif, .jpg, .jpeg, .png, .webm" required></td>
|
|
|
- <td><button id="nms_upload" class="button button2" type="submit">Upload</button></form> 
|
|
|
- <a href="{{ url_for('web_panels.del_alert', alert_type='MILESTONE_ALERT') }}"><button class="button button2" onclick="openTab(event, 'alerts')"><span style="color: red;">Clear</span></button></a></td>
|
|
|
+ <td><button id="new_milestone_image_upload" class="button button2" type="submit">Upload</button></form> 
|
|
|
+ <a href="{{ url_for('web_panels.del_alert', alert_type='MILESTONE_ALERT') }}"><button id="new_milestone_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: #ccbb44;">Clear</span></button></a></td>
|
|
|
<td>{{ settings_info[10] }}/alert/milestone</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <form id="ng_upload" action="/mgmt/alertupload/GOAL_ALERT" method="post" enctype="multipart/form-data">
|
|
|
+ <form id="new_goal_image_upload" action="/mgmt/alertupload/GOAL_ALERT" method="post" enctype="multipart/form-data">
|
|
|
<td>Goal Reached:</td>
|
|
|
{% set goal_alert = alerts_dict["GOAL_ALERT"] %}
|
|
|
{% if goal_alert %}
|
|
|
{% if "webm" in goal_alert %}
|
|
|
<td><video height="100" autoplay loop><source src="{{ url_for('web_panels.assets', asset_name=goal_alert) }}" type="video/webm"></video></td>
|
|
|
{% else %}
|
|
|
- <td><img src="{{ url_for('web_panels.assets', asset_name=goal_alert) }}"></td>
|
|
|
+ <td><img alt="User Configurable Image" src="{{ url_for('web_panels.assets', asset_name=goal_alert) }}"></td>
|
|
|
{% endif %}
|
|
|
{% else %}
|
|
|
<td>Empty</td>
|
|
|
{% endif %}
|
|
|
<td><input type="file" name="GOAL_ALERT" accept=".gif, .jpg, .jpeg, .png, .webm" required></td>
|
|
|
- <td><button id="ng_upload" class="button button2" type="submit">Upload</button></form> 
|
|
|
- <a href="{{ url_for('web_panels.del_alert', alert_type='GOAL_ALERT') }}"><button class="button button2" onclick="openTab(event, 'alerts')"><span style="color: red;">Clear</span></button></a></td>
|
|
|
+ <td><button id="new_goal_image_upload" class="button button2" type="submit">Upload</button></form> 
|
|
|
+ <a href="{{ url_for('web_panels.del_alert', alert_type='GOAL_ALERT') }}"><button id="new_goal_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: #ccbb44;">Clear</span></button></a></td>
|
|
|
<td>{{ settings_info[10] }}/alert/goal</td>
|
|
|
</tr>
|
|
|
</table>
|