2017-02-23 01:58:50 +01:00
|
|
|
<li class="bot-information-box">
|
|
|
|
<div class="image overflow-hidden">
|
2013-10-21 01:04:25 +02:00
|
|
|
<img src="{{avatar_url}}" class="avatar" />
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="details">
|
|
|
|
<div class="name">{{name}}</div>
|
|
|
|
<div class="edit-bot-buttons">
|
|
|
|
<button type="submit" class="btn open_edit_bot_form" title="{{t 'Edit bot' }}" data-email="{{email}}">
|
|
|
|
<i class="icon-vector-pencil danger-red"></i>
|
|
|
|
</button>
|
|
|
|
<a type="submit" download="{{zuliprc}}" class="btn download_bot_zuliprc" title="{{t 'Download .zuliprc' }}" data-email="{{email}}">
|
|
|
|
<i class="icon-vector-download-alt sea-green"></i>
|
|
|
|
</a>
|
|
|
|
<button type="submit" class="btn delete_bot" title="{{t 'Delete bot' }}" data-email="{{email}}">
|
|
|
|
<i class="icon-vector-trash blue"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="bot_info">
|
2013-10-21 01:04:25 +02:00
|
|
|
<div class="email">
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="field">{{t "Username" }}</div>
|
|
|
|
<div class="value">{{email}}</div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</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-09-14 02:20:13 +02:00
|
|
|
<button type="submit" class="button no-style 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>
|
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>
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class='edit_bot display-none'>
|
2013-10-21 01:04:25 +02:00
|
|
|
<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">
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="">
|
|
|
|
<label for="edit_bot_name{{id_suffix}}">{{t "Full name" }}</label>
|
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>
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="edit-bot-owner">
|
|
|
|
<label for="bot_owner_select">{{t "Owner" }}</label>
|
|
|
|
<div class="select-form"></div>
|
2017-02-25 08:49:12 +01:00
|
|
|
</div>
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class=" new-bot-ui">
|
|
|
|
<label for="edit_bot_default_sending_stream{{id_suffix}}">{{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>
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class=" new-bot-ui">
|
|
|
|
<label for="edit_bot_default_events_register_stream{{id_suffix}}">{{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>
|
2017-02-23 01:58:50 +01:00
|
|
|
<div>
|
|
|
|
<label for="bot_avatar_file_input{{id_suffix}}">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' }}" />
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="edit_bot_avatar_file"></div>
|
|
|
|
<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 display-none">{{t "Clear avatar" }}</button>
|
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>
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="buttons">
|
2016-05-12 13:53:41 +02:00
|
|
|
<input type="submit" class="btn btn-primary edit_bot_button" value="{{t 'Save' }}" />
|
2017-01-21 20:19:20 +01:00
|
|
|
<button type="button" class="btn btn-default reset_edit_bot">Cancel</button>
|
2013-10-21 01:04:25 +02:00
|
|
|
<div class="edit_bot_spinner"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2013-07-22 20:09:34 +02:00
|
|
|
</li>
|