2013-10-21 01:04:25 +02:00
|
|
|
<li class="bot-information-box">
|
|
|
|
<div class="image">
|
|
|
|
<img src="{{avatar_url}}" class="avatar" />
|
|
|
|
</div>
|
|
|
|
<div class="bot_info">
|
|
|
|
<div class="name">{{name}}</div>
|
|
|
|
<div class="email">
|
2016-05-12 13:53:41 +02:00
|
|
|
<span class="field">{{t "Username" }}</span>
|
2013-10-21 01:04:25 +02:00
|
|
|
<span class="value">{{email}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="api_key">
|
2016-05-12 13:53:41 +02:00
|
|
|
<span class="field">{{t "API Key" }}</span>
|
2013-10-21 01:04:25 +02:00
|
|
|
<span class="api-key-value-and-button">
|
|
|
|
<span class="value">{{api_key}}
|
|
|
|
</span>
|
2016-05-12 13:53:41 +02:00
|
|
|
<button type="submit" class="btn btn-secondary regenerate_bot_api_key" title="{{t 'Generate new API key' }}" data-email="{{email}}">
|
2013-10-21 01:04:25 +02:00
|
|
|
<i class="icon-vector-refresh"></i>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
<div class="api_key_error text-error"></div>
|
|
|
|
</div>
|
|
|
|
<div class="edit-bot-buttons">
|
2016-05-12 13:53:41 +02:00
|
|
|
<button type="submit" class="btn btn-primary open_edit_bot_form" title="{{t 'Edit bot' }}" data-email="{{email}}">
|
2013-10-21 01:04:25 +02:00
|
|
|
<i class="icon-vector-pencil"></i>
|
|
|
|
</button>
|
2016-05-12 13:53:41 +02:00
|
|
|
<button type="submit" class="btn btn-danger delete_bot" title="{{t 'Delete bot' }}" data-email="{{email}}">
|
2013-10-21 01:04:25 +02:00
|
|
|
<i class="icon-vector-trash"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2014-02-19 16:07:28 +01:00
|
|
|
<div id="bot_delete_error{{id_suffix}}" class="alert alert-error hide"></div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
|
|
|
<div class='edit_bot'>
|
|
|
|
<form class="edit_bot_form form-horizontal" data-email="{{email}}">
|
|
|
|
<div class="bot_edit_errors alert alert-error hide"></div>
|
|
|
|
<div class="edit_bot_email">{{email}}</div>
|
|
|
|
<div class="edit-bot-form-box">
|
|
|
|
<div class="control-group">
|
2016-05-12 13:53:41 +02:00
|
|
|
<label for="edit_bot_name{{id_suffix}}" class="control-label">{{t "Full name" }}</label>
|
2013-10-21 01:04:25 +02:00
|
|
|
<div class="controls">
|
2014-02-19 16:07:28 +01:00
|
|
|
<input type="text" name="bot_name" id="edit_bot_name{{id_suffix}}" class="edit_bot_name required" maxlength=50 />
|
|
|
|
<div><label for="edit_bot_name{{id_suffix}}" generated="true" class="text-error"></label></div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-19 16:07:28 +01:00
|
|
|
<div class="control-group new-bot-ui">
|
2016-05-12 13:53:41 +02:00
|
|
|
<label for="edit_bot_default_sending_stream{{id_suffix}}" class="control-label">{{t "Send to stream" }}</label>
|
2014-02-19 16:07:28 +01:00
|
|
|
<select name="bot_default_sending_stream" class="edit_bot_default_sending_stream" id="edit_bot_default_sending_stream{{id_suffix}}"></select>
|
|
|
|
</div>
|
|
|
|
<div class="control-group new-bot-ui">
|
2016-05-12 13:53:41 +02:00
|
|
|
<label for="edit_bot_default_events_register_stream{{id_suffix}}" class="control-label">{{t "Listen on" }}</label>
|
2014-02-19 16:07:28 +01:00
|
|
|
<select name="bot_default_events_register_stream" class="edit_bot_default_events_register_stream" id="edit_bot_default_events_register_stream{{id_suffix}}"></select>
|
|
|
|
</div>
|
2013-10-21 01:04:25 +02:00
|
|
|
<div class="control-group">
|
2014-02-19 16:07:28 +01:00
|
|
|
<label for="bot_avatar_file_input{{id_suffix}}" class="control-label">Avatar</label>
|
2016-05-12 13:53:41 +02:00
|
|
|
<input type="file" id="bot_avatar_file_input{{id_suffix}}" name="bot_avatar_file_input" class="notvisible edit_bot_avatar_file_input" value="{{t 'Upload avatar' }}" />
|
2013-10-21 01:04:25 +02:00
|
|
|
<div class="controls">
|
|
|
|
<div class="edit_bot_avatar_file"></div>
|
2016-05-12 13:53:41 +02:00
|
|
|
<button type="button" class="btn btn-default edit_bot_avatar_upload_button">{{t "Choose avatar" }}</button>
|
|
|
|
<button type="button" class="btn btn-default edit_bot_avatar_clear_button">{{t "Clear avatar" }}</button>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
2014-02-19 16:07:28 +01:00
|
|
|
<div><label for="edit_bot_avatar_file{{id_suffix}}" generated="true" class="edit_bot_avatar_error text-error"></label></div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
2016-05-12 13:53:41 +02:00
|
|
|
<input type="submit" class="btn btn-primary edit_bot_button" value="{{t 'Save' }}" />
|
2014-03-05 23:43:00 +01:00
|
|
|
<button type="submit" class="btn btn-default reset_edit_bot">Cancel</button>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="edit_bot_spinner"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2013-07-22 20:09:34 +02:00
|
|
|
</li>
|