mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
Create property_types object for realm settings. In set_up function, iterate over property_types to find settings that were updated, send those new values to the server, and report that the changes were made.
64 lines
3.3 KiB
Handlebars
64 lines
3.3 KiB
Handlebars
<div id="organization-settings" data-name="organization-settings" class="settings-section">
|
|
<form class="form-horizontal admin-realm-form">
|
|
<h3 class="light">{{t "Organization settings" }}</h3>
|
|
|
|
<div class="alert" id="admin-realm-name-status"></div>
|
|
<div class="alert" id="admin-realm-description-status"></div>
|
|
<div class="alert" id="admin-realm-default-language-status"></div>
|
|
<div class="alert" id="admin-realm-waiting-period-threshold-status"></div>
|
|
|
|
<div class="m-10 inline-block organization-settings-parent">
|
|
<div class="input-group admin-realm">
|
|
<label for="realm_name">{{t "Your organization's name" }}</label>
|
|
<input type="text" id="id_realm_name" name="realm_name" class="admin-realm-name"
|
|
value="{{ realm_name }}" />
|
|
</div>
|
|
<div class="input-group admin-realm">
|
|
<label for="realm_description">{{t "Your organization's description" }}</label>
|
|
<textarea id="id_realm_description" name="realm_description" class="admin-realm-description"
|
|
maxlength="1000">{{ realm_description }}</textarea>
|
|
</div>
|
|
<div class="input-group">
|
|
<label for="realm_default_language">{{t "Default language" }}:</label>
|
|
<select name="realm_default_language" id="id_realm_default_language">
|
|
{{#each language_list}}
|
|
<option value='{{this.code}}'>{{this.name}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
<div class="input-group">
|
|
<label for="realm_waiting_period_threshold">{{t "Waiting period for stream creation (in days)" }}</label>
|
|
<input type="text" id="id_realm_waiting_period_threshold"
|
|
name="realm_waiting_period_threshold"
|
|
class="admin-realm-message-content-edit-limit-minutes"
|
|
value="{{ realm_waiting_period_threshold }}"/>
|
|
</div>
|
|
{{#if is_admin }}
|
|
<div class="input-group organization-submission">
|
|
<button type="submit" class="button white rounded sea-green">
|
|
{{t 'Save changes' }}
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<h3 class="light">{{t "Organization avatar" }}</h3>
|
|
|
|
<div class="realm-icon-section">
|
|
<div class="inline-block">
|
|
<img id="realm-settings-icon" src="{{ realm_icon_url }}"/>
|
|
<div id="realm_icon_file_input_error" class="text-error"></div>
|
|
<input type="file" name="realm_icon_file_input" class="notvisible"
|
|
id="realm_icon_file_input" value="{{t 'Upload icon' }}"/>
|
|
<div id="upload_icon_spinner"></div>
|
|
</div>
|
|
<div class="inline-block avatar-controls">
|
|
<button class="button white rounded sea-green w-200 block input-size"
|
|
id="realm_icon_upload_button">{{t 'Upload new icon' }}</button>
|
|
<button class="button white rounded btn-danger w-200 m-t-10 block input-size"
|
|
id="realm_icon_delete_button">{{t 'Delete icon' }}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|