2013-07-05 21:52:38 +02:00
|
|
|
<li>
|
2013-07-05 22:31:39 +02:00
|
|
|
<div class="image">
|
2013-10-08 13:15:07 +02:00
|
|
|
<img src="{{avatar_url}}" class=avatar />
|
2013-07-05 22:31:39 +02:00
|
|
|
</div>
|
|
|
|
<div class="bot_info">
|
|
|
|
<div class="name">{{name}}</div>
|
|
|
|
<div class="email">
|
|
|
|
<span class="field">Email</span>
|
|
|
|
<span class="value">{{email}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="api_key">
|
|
|
|
<span class="field">API Key</span>
|
2013-07-22 17:12:35 +02:00
|
|
|
<span class="value">{{api_key}}</span>
|
2013-07-26 05:07:59 +02:00
|
|
|
<button type="submit" class="btn btn-secondary regenerate_bot_api_key" data-email="{{email}}">
|
|
|
|
Generate new API Key
|
2013-07-22 17:12:35 +02:00
|
|
|
</button>
|
|
|
|
<div class="api_key_error text-error"></div>
|
2013-07-05 22:31:39 +02:00
|
|
|
</div>
|
2013-07-22 20:09:34 +02:00
|
|
|
<button type="submit" class="btn btn-primary open_edit_bot_form">
|
|
|
|
Edit Bot
|
|
|
|
</button>
|
|
|
|
<button type="submit" class="btn btn-secondary delete_bot" data-email="{{email}}">
|
2013-07-10 17:26:30 +02:00
|
|
|
Delete Bot
|
|
|
|
</button>
|
2013-07-10 22:30:03 +02:00
|
|
|
<div id="bot_delete_error" class="alert alert-error hide"></div>
|
2013-07-05 22:31:39 +02:00
|
|
|
</div>
|
2013-07-22 20:09:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
<div class='edit_bot'>
|
|
|
|
<form class="edit_bot_form form-horizontal" data-email="{{email}}">
|
|
|
|
<div class="bot_edit_errors alert alert-error hide"></div>
|
2013-07-29 16:27:18 +02:00
|
|
|
|
|
|
|
<div class="edit_bot_email">{{email}}</div>
|
|
|
|
<label for="edit_bot_name" class="control-label">Full name</label>
|
|
|
|
<input type="text" name="bot_name" class="edit_bot_name required"
|
|
|
|
maxlength=50 />
|
|
|
|
<div><label for="edit_bot_name" generated="true" class="text-error"></label></div>
|
|
|
|
|
|
|
|
|
|
|
|
<br clear="left" />
|
|
|
|
|
|
|
|
<label for="bot_avatar_file_input" class="control-label">Avatar</label>
|
|
|
|
<input type="file" name="bot_avatar_file_input" class="notdisplayed edit_bot_avatar_file_input" value="Upload avatar" />
|
|
|
|
<button type="button" class="btn edit_bot_avatar_upload_button">Choose avatar</button>
|
|
|
|
<button type="button" class="btn edit_bot_avatar_clear_button">Clear avatar</button>
|
|
|
|
<span class="edit_bot_avatar_file"></span>
|
|
|
|
<div><label for="edit_bot_avatar_file" generated="true" class="edit_bot_avatar_error text-error"></label></div>
|
|
|
|
|
|
|
|
|
|
|
|
<br clear="left" />
|
|
|
|
|
|
|
|
<input type="submit" class="btn btn-primary edit_bot_button" value="Save" />
|
|
|
|
<button type="submit" class="btn btn-secondary reset_edit_bot">Cancel</button>
|
|
|
|
<div class="edit_bot_spinner"></div>
|
2013-07-22 20:09:34 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</li>
|