Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Remove edit_bot.hbs and CSS for non-existent classes.

Sahil Batra9ac6160d354d
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 0b3934e14cb..f81fd041986 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -794,15 +794,6 @@ input[type="checkbox"] {
margin-bottom: 0 !important;
}
-.edit_bot h3 {
- margin: 0;
- font-weight: 400;
-}
-
-.bot_edit_errors {
- margin: 0;
-}
-
#bots_lists_navbar .active a {
background-color: hsl(0, 0%, 98%);
}
@@ -830,25 +821,6 @@ input[type="checkbox"] {
#bot-role-select:disabled {
opacity: 1;
}
-
- .edit-bot-name {
- margin-bottom: 20px;
- }
-
- .avatar-section {
- margin-bottom: 20px;
- }
-
- .edit_bot_email {
- font-weight: 400;
- text-align: left;
- margin-top: 0;
- margin-bottom: 20px;
-
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: pre;
- }
}
#create_bot_form,
diff --git a/static/templates/settings/edit_bot.hbs b/static/templates/settings/edit_bot.hbs
deleted file mode 100644
index 95fd0e03c7a..00000000000
--- a/static/templates/settings/edit_bot.hbs
+++ /dev/null
@@ -1,33 +0,0 @@
-<form id="edit_bot_form" class="new-style edit_bot_form form-horizontal" data-target="edit-bot" data-title="{{t 'Edit bot' }}" data-user-id="{{bot.user_id}}"
- data-email="{{bot.email}}" data-type="{{bot.bot_type}}">
- <div class="bot_edit_errors alert alert-error hide"></div>
- <div>
- <div>
- <label>{{t "Bot email" }}</label>
- <div class="edit_bot_email">{{bot.email}}</div>
- </div>
- <div class="edit-bot-form-box">
- <div class="edit-bot-owner">
- <label>{{t "Owner" }}</label>
- {{> dropdown_list_widget
- widget_name="bot_owner"
- list_placeholder=(t 'Filter users')}}
- </div>
- <div class="edit-bot-name">
- <label for="edit_bot_name">{{t "Full name" }}</label>
- <input id="edit_bot_name" type="text" name="bot_name" class="edit_bot_name required" value="{{bot.full_name}}" maxlength=50 />
- <div><label for="edit_bot_name" generated="true" class="text-error"></label></div>
- </div>
- <div id="service_data">
- </div>
- <div class="avatar-section">
- <label for="bot_avatar_file_input">Avatar</label>
- <input type="file" name="bot_avatar_file_input" class="notvisible edit_bot_avatar_file_input" value="{{t 'Upload profile picture' }}" />
- <div class="edit_bot_avatar_file"></div>
- <button type="button" class="button white rounded edit_bot_avatar_upload_button">{{t "Choose avatar" }}</button>
- <button type="button" class="button white rounded edit_bot_avatar_clear_button" style="display: none;">{{t "Clear profile picture" }}</button>
- <div><label for="edit_bot_avatar_file" generated="true" class="edit_bot_avatar_error text-error"></label></div>
- </div>
- </div>
- </div>
-</form>