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">
|
2013-11-18 21:28:11 +01:00
|
|
|
<span class="field">Username</span>
|
2013-10-21 01:04:25 +02:00
|
|
|
<span class="value">{{email}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="api_key">
|
|
|
|
<span class="field">API Key</span>
|
|
|
|
<span class="api-key-value-and-button">
|
|
|
|
<span class="value">{{api_key}}
|
|
|
|
</span>
|
|
|
|
<button type="submit" class="btn btn-secondary regenerate_bot_api_key" title="Generate new API key" data-email="{{email}}">
|
|
|
|
<i class="icon-vector-refresh"></i>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
<div class="api_key_error text-error"></div>
|
|
|
|
</div>
|
|
|
|
<div class="edit-bot-buttons">
|
2015-08-21 22:26:41 +02:00
|
|
|
<button type="submit" class="btn btn-primary open_edit_bot_form" title="Edit bot" data-email="{{email}}">
|
2013-10-21 01:04:25 +02:00
|
|
|
<i class="icon-vector-pencil"></i>
|
|
|
|
</button>
|
|
|
|
<button type="submit" class="btn btn-danger delete_bot" title="Delete bot" data-email="{{email}}">
|
|
|
|
<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">
|
2014-02-19 16:07:28 +01:00
|
|
|
<label for="edit_bot_name{{id_suffix}}" class="control-label">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">
|
|
|
|
<label for="edit_bot_default_sending_stream{{id_suffix}}" class="control-label">Send to stream</label>
|
|
|
|
<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">
|
|
|
|
<label for="edit_bot_default_events_register_stream{{id_suffix}}" class="control-label">Listen on</label>
|
|
|
|
<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>
|
|
|
|
<input type="file" id="bot_avatar_file_input{{id_suffix}}" name="bot_avatar_file_input" class="notvisible edit_bot_avatar_file_input" value="Upload avatar" />
|
2013-10-21 01:04:25 +02:00
|
|
|
<div class="controls">
|
|
|
|
<div class="edit_bot_avatar_file"></div>
|
2014-03-05 23:43:00 +01:00
|
|
|
<button type="button" class="btn btn-default edit_bot_avatar_upload_button">Choose avatar</button>
|
|
|
|
<button type="button" class="btn btn-default edit_bot_avatar_clear_button">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">
|
|
|
|
<input type="submit" class="btn btn-primary edit_bot_button" value="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>
|